dcr

Decred (DCR)

Method: POST sendrawtransaction

dropdown
POST

sendrawtransaction

Submits the serialized, hex-encoded transaction to the local peer and relays it to the network.

Parameters

signedhex - string

serialized, hex-encoded signed transaction.

allowhighfees - boolean

Optional, default=false

whether or not to allow insanely high fees.

Request

curl --location --request POST 'https://dcr.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "sendrawtransaction",
"params": ["03000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff02000000000000000000000e6a0cc1ff0800b3e0fccf37a786b7c6ed842b0000000000001976a91469ed0fbcc41348fef05385091d9d4a306387b2bd88ac00000000000000000170cf592b0000000000000000ffffffff0800002f646372642f", false],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "1697a19cede08694278f19584e8dcc87945f40c6b59a942dd8906f133ad3f9cc"
}