Validate a recipient address
validate_addressCheck a recipient address, and its memo when the asset needs one, against the format the network requires, before any order exists. Call this on every address the user gives. A valid-looking address on the wrong network is the one mistake in a swap that destroys the funds with no way back, so when the address belongs to another network the answer names that network instead of just refusing. A few assets carry no address format in the catalogue; for those the answer says the address could not be checked rather than calling it valid.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"asset": "<asset>",
"address": "<address>"
},
"name": "validate_address"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | Memo or destination tag, when the asset needs one. | |
| asset | Yes | Asset that will be received at this address, canonical id. | |
| address | Yes | Recipient address to check. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | ||
| valid | Yes | ||
| reason | Yes | ||
| network | Yes | ||
| warning | Yes | ||
| memo_name | Yes | ||
| memo_valid | Yes | ||
| network_hint | Yes | ||
| memo_required | Yes | ||
| format_checked | Yes |