Komodo DeFi Framework Method: Validate Address
API-v1validateaddress
The validateaddress method checks if an input string is a valid address of the specified coin.
| Parameter | Type | Required | Description |
|---|---|---|---|
| coin | string | ✓ | The coin to validate address for |
| address | string | ✓ | The input string to validate |
| Parameter | Type | Description |
|---|---|---|
| is_valid | bool | Whether input string is a valid coin address. |
| reason | string (optional) | Only present if not valid. The reason why input string is not a valid address. |
validateaddress
POST
validateaddress{
"userpass": "RPC_UserP@SSW0RD",
"method": "validateaddress",
"coin": "DOC",
"address": "RRnMcSeKiLrNdbp91qNVQwwXx5azD4S4CD"
}