simulaterawtransaction (wallet command)

Bitcoin Core 24.0 RPC

simulaterawtransaction ( ["rawtx",...] {"include_watchonly":bool,...} )

Calculate the balance change resulting in the signing and broadcasting of the given transaction(s).


1. rawtxs                            (json array, optional) An array of hex strings of raw transactions.
       "rawtx",                      (string)
2. options                           (json object, optional) Options
       "include_watchonly": bool,    (boolean, optional, default=true for watch-only wallets, otherwise false) Whether to include watch-only addresses (see RPC importaddress)


{                          (json object)
  "balance_change" : n     (numeric) The wallet balance change (negative means decrease).


> bitcoin-cli simulaterawtransaction ["myhex"]
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "simulaterawtransaction", "params": [["myhex"]]}' -H 'content-type: text/plain;'