Verify that the address is a valid NEO address.
{
"jsonrpc": "2.0",
"method": "validateaddress",
"params": [address],
"id": 1
}
- address: Address.
Request body:
{
"jsonrpc": "2.0",
"method": "validateaddress",
"params": ["AQVh2pG732YvtNaxEGkQUei3YA4cvo7d2i"],
"id": 1
}
Response body:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"address": "AQVh2pG732YvtNaxEGkQUei3YA4cvo7d2i",
"isvalid": true
}
}
Request body:
{
"jsonrpc": "2.0",
"method": "validateaddress",
"params": ["152f1muMCNa7goXYhYAQC61hxEgGacmncB"],
"id": 1
}
Response body:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"address": "152f1muMCNa7goXYhYAQC61hxEgGacmncB",
"isvalid": false
}
}