Skip to main content

getrawchangeaddress

Overview

The 'getrawchangeaddress' method allows you to generate a new Bitcoin address for receiving change. This method is primarily used with raw transactions and not for normal use.

Request

wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'X-CoinAPI-Key: 73034021-THIS-IS-SAMPLE-KEY' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"getrawchangeaddress","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

  • address_type (string, optional): The type of address to generate. The options available are "legacy", "p2sh-segwit", and "bech32". The default value is set by the -changetype parameter.

Response

{
"address": "string"
}