createrawtransaction - Dash
Example code for the createrawtransaction json-rpc method. Сomplete guide on how to use createrawtransaction json-rpc in GetBlock.io Web3 documentation.
Parameters
inputs - array
An array of objects, each one to be used as an input to the transaction
Outputs - array
A JSON array with outputs as key-value pairs.
Locktime - numeric (int)
Optional.
Added in Bitcoin Core 0.12.0
Indicates the earliest time a transaction can be added to the block chain.
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "createrawtransaction",
"params": [[{"txid": "061ec99eb641ffdeaa05a1a724a255103bebc445b15c6c8c028b19c08608496b", "vout": 1}], [{"ySutkc49Khpz1HQN8AfWNitVBLwqtyaxvv": 800}, {"yY6AmGopsZS31wy1JLHR9P6AC6owFaXwuh": 74.99}], 0],
"id": "getblock.io"}'Response
Last updated
Was this helpful?