Hi,
I am trying to RPC interface with Core and use walletcreatefundedpsbt with the following JSON:
{
"jsonrpc": "1.0",
"id": 6,
"method": "walletcreatefundedpsbt",
"params": [
[{
"txid": "a77564bb72336febc5fe620bc67586dcc014bad6bb1c3aa53e3b01bb6159f241",
"vout": 0,
"sequence": 0
}, {
"txid": "a77564bb72336febc5fe620bc67586dcc014bad6bb1c3aa53e3b01bb6159f241",
"vout": 1,
"sequence": 0
}],
[{
"tb1qgz5yfluv3n0sjcadxhmm3dk4xrwlglr88vsj8k": 0.00349723
}], {
"subtractFeeFromOutputs": ["tb1qgz5yfluv3n0sjcadxhmm3dk4xrwlglr88vsj8k"]
}
]
}
It fails with: Expected type number, got object.But, it works if subtractFeeFromOutputs option is not used, so I assume options should be included somewhat differently.
Unfortunatelly docs or google didn't help me to solve this
Can you please tell my how to modify this JSON?
Thanks