On this page

latest contributor to this doc

Last Edit:

@gcharang

convertaddress

convertaddress coin from to_address_format

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 this can be used to convert an ETH address from single to mixed case checksum format.

StructureTypeDescription
coinstringthe name of the coin address context
fromstringinput address
to_address_formatobjectA standard AddressFormat object

StructureTypeDescription
addressstringthe result of address conversion