Fundrawtransaction
fundrawtransaction
Add inputs to a transaction until it has enough in value to meet its out value.
Arguments
| Position | Name | Type | Required | Default | Description |
|---|---|---|---|---|---|
Result
{ (json object)
"hex" : "hex", (string) The resulting raw transaction (hex-encoded string)
"fee" : n, (numeric) Fee in RTM the resulting transaction pays
"changepos" : n (numeric) The position of the added change output, or -1
}
Examples
Create a transaction with no inputs
raptoreum-cli createrawtransaction "[]" "{\"myaddress\":0.01}"
Add sufficient unsigned inputs to meet the output value
raptoreum-cli fundrawtransaction "rawtransactionhex"
Sign the transaction
raptoreum-cli signrawtransaction "fundedtransactionhex"
Send the transaction
raptoreum-cli sendrawtransaction "signedtransactionhex"