⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
Bitcoin-SV (BSV)

Method: POST signrawtransactionwithwallet


# signrawtransactionwithwallet example for Bitcoin-SV (BSV)

POST signrawtransactionwithwallet

Method not allowed

Sign inputs for raw transaction (serialized, hex-encoded).

The second optional argument (may be null) is an array of previous transaction outputs that this transaction depends on but may not yet be in the block chain.

Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.


hexstring - string, required

The transaction hex string

prevtxs - json array, optional

The previous dependent transaction outputs

sighashtype - string, optional, default=ALL



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


    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"