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

btg
Bitcoin Gold (BTG)

Method: POST converttopsbt

dropdown

方法 RPC converttopsbt 例如 Bitcoin Gold (BTG)

POST converttopsbt

将网络序列化交易转换为PSBT。 仅应与Createrawtransaction和FunDrawTransaction createpsbt和WalletCreateFundedPSBT一起使用。

Parameters

hexstring - 字符串,需要

原始交易的十六进制字符串

permitsigdata - 布尔值,可选,默认值= false

如果为true,则输入中的任何签名将被丢弃,并将继续转换。 如果错误,则RPC如果存在任何签名。

iswitness - 布尔值,可选,默认值=取决于启发式测试

交易十六进制是否是串行的证人交易。

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": "converttopsbt",
"params": ["rawtransaction", null, null],
"id": "getblock.io"}'


Response

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