sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode" avoid_reuse fee_rate verbose )
Send an amount to a given address.
Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.
Type: string, required
The bitcoin address to send to.
Type: numeric or string, required
The amount in DGB to send. eg 0.1
Type: string, optional
Type: string, optional
Type: boolean, optional, default=false
Type: boolean, optional, default=wallet default
Allow this transaction to be replaced by a transaction with higher fees via BIP 125
Type: numeric, optional, default=wallet -txconfirmtarget
Confirmation target in blocks
Type: string, optional, default=unset
Type: boolean, optional, default=true
Name | Type | Description |
---|---|---|
hex | string | The transaction id. |
{ (json object) "txid" : "hex", (string) The transaction id. "fee reason" : "str" (string) The transaction fee reason. }
Send 0.1 DGB:
digibyte-cli sendtoaddress "SXXgn4BX1wTXrCxAtwtiB2r3DPg7nnhjYA" 0.1
Send 0.1 DGB with a confirmation target of 6 blocks in economical fee estimate mode using positional arguments:
digibyte-cli sendtoaddress "SXXgn4BX1wTXrCxAtwtiB2r3DPg7nnhjYA" 0.1 "donation" "sean's outpost" false true 6 economical
Send 0.1 DGB with a fee rate of 1.1 sat/vB, subtract fee from amount, BIP125-replaceable, using positional arguments:
digibyte-cli sendtoaddress "SXXgn4BX1wTXrCxAtwtiB2r3DPg7nnhjYA" 0.1 "drinks" "room77" true true null "unset" null 1.1
Send 0.2 DGB with a confirmation target of 6 blocks in economical fee estimate mode using named arguments:
digibyte-cli -named sendtoaddress address="SXXgn4BX1wTXrCxAtwtiB2r3DPg7nnhjYA" amount=0.2 conf_target=6 estimate_mode="economical"
Send 0.5 DGB with a fee rate of 25 sat/vB using named arguments:
digibyte-cli -named sendtoaddress address="SXXgn4BX1wTXrCxAtwtiB2r3DPg7nnhjYA" amount=0.5 fee_rate=25
digibyte-cli -named sendtoaddress address="SXXgn4BX1wTXrCxAtwtiB2r3DPg7nnhjYA" amount=0.5 fee_rate=25 subtractfeefromamount=false replaceable=true avoid_reuse=true comment="2 pizzas" comment_to="jeremy" verbose=true