Convert Address
API-v1convertaddress
The convertaddress
method converts an input address to a specified address format.
For example, this method can be used to convert a BCH address from legacy to cash address format and vice versa, or to convert an ETH address from single to mixed case checksum format.
Parameter | Type | Required | Description |
---|---|---|---|
coin | string | ✓ | The name of the coin address context |
from | string | ✓ | Input address |
to_address_format | object | ✓ | A standard AddressFormat object |
Parameter | Type | Description |
---|---|---|
address | string | The result of address conversion |
convertaddress
POST
convertaddress{
"userpass": "RPC_UserP@SSW0RD",
"method": "convertaddress",
"coin": "ETH",
"from": "0xfb6916095ca1df60bb79ce92ce3ea74c37c5d359",
"to_address_format": {
"format": "mixedcase"
}
}