bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/getnewaddress
Wallet

getnewaddress

Returns a new Bitcoin address for receiving payments.

Parameters

labelstringoptional
A label for the address. Default: ""
address_typestringoptional
"legacy", "p2sh-segwit", "bech32", or "bech32m"

Returns

stringNew bitcoin address

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"getnewaddress","params":[]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

"bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4"
← Previous
getbalance
Next →
gettransaction

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegettransactiongetwalletinfo

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗