Skip to main content

getrawchangeaddress

getrawchangeaddress ( "address_type" )

Returns a new bitgesell address, for receiving change.

This is for use with raw transactions, NOT normal use.

Argument #1 - address_type

Type: string, optional, default=set by -changetype

The address type to use. Options are "legacy", "p2sh-segwit", and "bech32".

Result

NameTypeDescription
strstringThe address

Example usage (with RPC call)

BGL-cli getrawchangeaddress
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getrawchangeaddress", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8334/