Documentation exported from Syscoin Core 4.1.2

convertaddress (4.1.2 RPC)

blockchain

control

generating

governance

governancewallet

mining

network

rawtransactions

syscoin

syscoinwallet

util

wallet

zmq

convertaddress "address"

Convert between Syscoin 3 and Syscoin 4 formats. This should only be used with addressed based on compressed private keys only. P2WPKH can be shown as P2PKH in Syscoin 3.

Arguments:
1. address    (string, required) The syscoin address to get the information of.

Result:
{
  "v3address" : "address",        (string) The syscoin 3 address validated
  "v4address" : "address",        (string) The syscoin 4 address validated
}

Examples:
> syscoin-cli convertaddress "sys1qw40fdue7g7r5ugw0epzk7xy24tywncm26hu4a7"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "convertaddress", "params": ["sys1qw40fdue7g7r5ugw0epzk7xy24tywncm26hu4a7"] }' -H 'content-type: text/plain;' http://127.0.0.1:8370/