Language

Choose a language

/build/rpc / btc

importprunedfunds

importprunedfunds "rawtransaction" "txoutproof" Imports funds without rescan. Corresponding address or script must previously be included in wallet. Aimed towards pruned wallets. The end-user is responsible to import additional transactions that subsequently spend the imported outputs or rescan after the point in the blockchain the transaction is included. Arguments: 1. rawtransaction (string, required) A raw transaction in hex funding an already-existing address in wallet 2. txoutproof (string, required) The hex output from gettxoutproof that contains the transaction Result: null (json null)

Signature

importprunedfunds(rawtransaction: string, txoutproof: string) → any

Code samples

curl --user "$RPC_USER:$RPC_PASS" \
  --data-binary '{"jsonrpc":"1.0","id":"docs","method":"importprunedfunds","params":["\"<rawtransaction>\"","\"<txoutproof>\""]}' \
  -H 'content-type: text/plain;' \
  http://127.0.0.1:8332/

Parameters

NameTypeReq.Description
rawtransactionstringyesA raw transaction in hex funding an already-existing address in wallet
txoutproofstringyesThe hex output from gettxoutproof that contains the transaction

Result

Type:  any

null (json null)

Source: services/core-node/bcore/src/wallet/rpc/backup.cpp:37

C++ symbol: importprunedfunds