validateaddress

Verifies that the address is a valid NEO address.

Parameters

Object NameRequiredTypeDetail
ADDRESSStringThe NEO address.

📘

The NEO standard address begins with N because AddressVersion in Neo N3 has been modified to 53.

"params": ["NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n"]

Result

true if address is a valid NEO address, false if address is not valid.

Example

Request

curl <your-endpoint> \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{"jsonrpc": "2.0", "method": "validateaddress", "params":["NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n"],"id": 1}'

Return

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "address": "NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n",
        "isvalid": true
    }
}
Language
Click Try It! to start a request and see the response here!