Skip to main content

getNewAddress

Overview

The 'getNewAddress' method allows you to generate a new Bitcoin address for receiving payments. It is beneficial for users who want to manage multiple transactions or maintain privacy.

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-KE' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"getNewAddress","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

  • abel (optional): A label for the address. It is used to assign a name to the address for your reference.
  • address_type (optional): Specifies the type of the address. It can be 'legacy', 'p2sh-segwit', or 'bech32'.

Response

{
"result": "newBitcoinAddressHere",
"error": null,
"id": 1
}