⚡ We welcome businesses to test our enterprise-grade service

bch
Bitcoin Cash (BCH)

Method: POST createmultisig

dropdown

方法 RPC createmultisig 例如 Bitcoin Cash (BCH)

POST createmultisig

方法不允许

创建一个需要 m 个密钥的 n 个签名的多重签名地址。

它返回一个带有地址和redeemScript 的json 对象。

Parameters

nrequired - 数字,必填

n 个密钥中所需签名的数量。

keys - json 数组,必需

十六进制编码的公钥。

address_type - 字符串,可选,默认=传统

要使用的地址类型。选项是“legacy”、“p2sh-segwit”和“bech32”。

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


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}