On this page

latest contributor to this doc

Last Edit:

@smk762↗

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.

ParameterTypeRequiredDescription
coinstring✓The name of the coin address context
fromstring✓Input address
to_address_formatobject✓A standard AddressFormat object

ParameterTypeDescription
addressstringThe result of address conversion

convertaddress

POST
convertaddress
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "convertaddress",
  "coin": "ETH",
  "from": "0xfb6916095ca1df60bb79ce92ce3ea74c37c5d359",
  "to_address_format": {
    "format": "mixedcase"
  }
}