📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

btg
Bitcoin Gold (BTG)

Method: POST utxoupdatepsbt

dropdown

方法 RPC utxoupdatepsbt 例如 Bitcoin Gold (BTG)

POST utxoupdatepsbt

更新PSBT中的所有SEGWIT输入和输出,其中包括来自输出描述符,UTXO集或Mempool的数据。

Parameters

psbt - 字符串,需要

PSBT的基本64字符串

descriptors - Json Array,可选

字符串或对象的数组

Request

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


Response

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