Share your feedback on Twitter and claim 5M Free GetBlock Requests

banner image
dash

Dash

DASH

POST

GET

attention-sign-fillabandontransactionattention-sign-fillabortrescanattention-sign-filladdmultisigaddressattention-sign-filladdnodeattention-sign-fillbackupwalletattention-sign-fillbls_fromsecretattention-sign-fillbls_generateattention-sign-fillclearbannedattention-sign-fillcoinjoinattention-sign-fillcreatemultisigattention-sign-fillcreatewalletattention-sign-filldebugattention-sign-filldisconnectnodeattention-sign-filldumphdinfoattention-sign-filldumpprivkeyattention-sign-filldumpwalletattention-sign-fillencryptwalletattention-sign-fillfundrawtransactionattention-sign-fillgenerateattention-sign-fillgeneratetoaddressattention-sign-fillgetaddednodeinfoattention-sign-fillgetaddressbalanceattention-sign-fillgetaddressdeltasattention-sign-fillgetaddressesbylabelattention-sign-fillgetaddressinfoattention-sign-fillgetaddressmempoolattention-sign-fillgetaddresstxidsattention-sign-fillgetaddressutxosattention-sign-fillgetbalanceattention-sign-fillgetconnectioncountattention-sign-fillgetmemoryinfoattention-sign-fillgetnettotalsattention-sign-fillgetnetworkinfoattention-sign-fillgetnewaddressattention-sign-fillgetpeerinfoattention-sign-fillgetrawchangeaddressattention-sign-fillgetreceivedbyaddressattention-sign-fillgetreceivedbylabelattention-sign-fillgettransactionattention-sign-fillgetunconfirmedbalanceattention-sign-fillgetwalletinfoattention-sign-fillgobject_list-preparedattention-sign-fillgobject_prepareattention-sign-fillgobject_submitattention-sign-fillgobject_vote-aliasattention-sign-fillgobject_vote-confattention-sign-fillgobject_vote-manyattention-sign-fillgobjectattention-sign-fillimportaddressattention-sign-fillimportelectrumwalletattention-sign-fillimportmultiattention-sign-fillimportprivkeyattention-sign-fillimportprunedfundsattention-sign-fillimportpubkeyattention-sign-fillimportwalletattention-sign-fillkeepassattention-sign-fillkeypoolrefillattention-sign-filllistaddressbalancesattention-sign-filllistaddressgroupingsattention-sign-filllistbannedattention-sign-filllistlabelsattention-sign-filllistlockunspentattention-sign-filllistreceivedbyaddressattention-sign-filllistreceivedbylabelattention-sign-filllistsinceblockattention-sign-filllisttransactionsattention-sign-filllistunspentattention-sign-filllistwalletsattention-sign-fillloadwalletattention-sign-filllockunspentattention-sign-fillloggingattention-sign-fillmasternode_currentattention-sign-fillmasternode_outputsattention-sign-fillmasternode_winnerattention-sign-fillpingattention-sign-fillprioritisetransactionattention-sign-fillprotx_diffattention-sign-fillprotx_infoattention-sign-fillprotx_listattention-sign-fillprotx_register_fundattention-sign-fillprotx_register_prepareattention-sign-fillprotx_register_submitattention-sign-fillprotx_registerattention-sign-fillprotx_update_registrarattention-sign-fillprotx_update_serviceattention-sign-fillpruneblockchainattention-sign-fillquorum_dkgstatusattention-sign-fillquorum_getrecsigattention-sign-fillquorum_hasrecsigattention-sign-fillquorum_infoattention-sign-fillquorum_isconflictingattention-sign-fillquorum_listattention-sign-fillquorum_memberofattention-sign-fillquorum_selectquorumattention-sign-fillquorum_signattention-sign-fillquorum_verifyattention-sign-fillremoveprunedfundsattention-sign-fillrescanblockchainattention-sign-fillsavemempoolattention-sign-fillsendmanyattention-sign-fillsendtoaddressattention-sign-fillsetbanattention-sign-fillsetcoinjoinamountattention-sign-fillsetcoinjoinroundsattention-sign-fillsetlabelattention-sign-fillsetnetworkactiveattention-sign-fillsettxfeeattention-sign-fillsignmessageattention-sign-fillsignmessagewithprivkeyattention-sign-fillsignrawtransactionattention-sign-fillsignrawtransactionwithwalletattention-sign-fillstopattention-sign-fillsubmitblockattention-sign-fillunloadwalletattention-sign-fillupgradetohdattention-sign-fillverifychainlockattention-sign-fillverifyislockattention-sign-fillvoterawattention-sign-fillwalletlockattention-sign-fillwalletpassphraseattention-sign-fillwalletpassphrasechange
chevron-right

Last updated on January 1, 1970

2 min read

Method signrawtransaction Dash (DASH)
connect with JSON-RPC protocol

signrawtransaction

info-circle-fill

Method not allowed

info-circle-fill

This RPC is deprecated as of Dash Core 0.17.0. It will be removed in afuture release.Signs a transaction in the serialized transaction format using privatekeys stored in the wallet or provided in the call.

Parameters

Transaction - string (hex)

The transaction to sign as a serialized transaction.

Dependencies - array

Optional.

The previous outputs being spent by this transaction.

{ "txid":"id" (string) - The TXID of the transaction the output appeared in. The TXID must be encoded in hex in RPC byte order. "vout":n (numeric) - The index number of the output (vout) as it appeared in its transaction, with the first output being 0. "scriptPubKey":"key" (string) - The output's pubkey script encoded as hex. "redeemScript":"script" (string, optional) - If the pubkey script was a script hash, this must be the corresponding redeem script. "amount":n (numeric) - The amount of Dash spent. }

Private Keys - array

Optional.

An array holding private keys. If any keys are provided, only they will be used to sign the transaction (even if the wallet has other matching keys). If this array is empty or not used, and wallet support is enabled, keys from the wallet will be used.

SigHash - string

Optional.

The type of signature hash to use for all of the signatures performed.

You must use separate calls to the signrawtransaction RPC if you want to use different signature hash types for different signatures. The allowed values are: ALL, NONE, SINGLE

Request

curl --location --request POST 'https://dash.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "signrawtransaction",
"params": ["03000500010000000000000000000000000000000000000000000000000000000000000000ffffffff2703716d170423ce39610800004440830900000fe4b883e5bda9e7a59ee4bb99e9b1bc04f09f909f40440fa802203d5807000000001976a9147c086eada12bdb10a265c16c08a7ae87366bd48188aca03c9f08000000001976a91406c7111117f7b797528485b64772d3ffcff919ec88ac209af41f460200716d1700efc371b5251f5bae393e5962fe092f8b2003732a56eda3e1a2babe8413d17ce7ce2396a41c1f833c0cd00a0d8e900dfc4962805706e70a35074dcd30fafbd4c6", null, null, "ALL"],
"id": "getblock.io"}'

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}
banner icon

Start Building with GetBlock RPCs for Free