⚡ We welcome businesses to test our enterprise-grade service

bch
Bitcoin Cash (BCH)

Method: POST createpsbt

dropdown

方法 RPC createpsbt 例如 Bitcoin Cash (BCH)

POST createpsbt

创建部分签名交易格式的交易。

实现创建者角色。

Parameters

inputs - json 数组,必需

json 对象的 json 数组

outputs - json 数组,必需

一个带有输出(键值对)的 json 数组,其中没有重复的键。

locktime - 数字,可选,默认=0

原始锁定时间。非 0 值也会锁定时间激活输入

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

将此事务标记为 BIP125 可替换。

Request

curl --location --request POST 'https://bch.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "createpsbt",
"params": [[{"txid": "myid", "vout": 0}], [{"data": "00010203"}], null, null],
"id": "getblock.io"}'


Response

null