bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/sendtoaddress
Wallet

sendtoaddress

Send an amount to a given address.

Parameters

addressstringREQUIRED
The bitcoin address to send to
amountnumberREQUIRED
The amount in BTC to send
commentstringoptional
A comment for the transaction
comment_tostringoptional
A comment for the recipient
subtractfeefromamountbooleanoptional
Subtract fee from amount. Default: false
replaceablebooleanoptional
Allow BIP125 replacement. Default: wallet default
conf_targetnumberoptional
Confirmation target for fee estimation
estimate_modestringoptional
Fee estimate mode
fee_ratenumberoptional
Fee rate in sat/vB

Returns

stringThe transaction id

Code Examples

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

Example Response

"a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
← Previous
loadwallet
Next →
walletpassphrase

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗