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

coins coins coins coins
Zcash (ZEC)

Method: POST fundrawtransaction


# fundrawtransaction example for Zcash (ZEC)

POST fundrawtransaction

Add inputs to a transaction until it has enough in value to meet its out value.

This will not modify existing inputs, and will add one change output to the outputs.

Note that inputs which were signed may need to be resigned after completion since in/outputs have been added.

The inputs added will not be signed, use signrawtransaction for that.

Note that all existing inputs must have their previous output transaction be in the wallet.

Note that all inputs selected must be of standard form and P2SH scripts must bein the wallet using importaddress or addmultisigaddress (to calculate fees).

Only pay-to-pubkey, multisig, and P2SH versions thereof are currently supported for watch-only


hexstring - string

The hex string of the raw transaction.

includeWatching - boolean

Optional, default=false

Also select inputs which are watch only.


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


    "error": null,
    "id": "getblock.io",
    "result": null