Compare two addresses character by character
compare_addressesCompare a trusted address against the one you are about to send to, reporting all differing positions and flagging look-alikes to prevent address poisoning.
Instructions
Catch address poisoning: compare the address you meant (from a trusted source) with the one you are about to send to. Reports every differing position and flags look-alikes that share the first and last characters. Runs locally.
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": {
"expected": "<expected>",
"actual": "<actual>"
},
"name": "compare_addresses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actual | Yes | The address you are about to use. | |
| expected | Yes | The address from the trusted source. |