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

btg
Bitcoin Gold (BTG)

Method: POST addmultisigaddress

dropdown

方法 RPC addmultisigaddress 例如 Bitcoin Gold (BTG)

POST addmultisigaddress

Method not allowed

在钱包中添加一个Nrequired-sign的多符号地址。 需要一个新的钱包备份。

每个键是比特币地址或十六进制的公共密钥。

此功能仅用于与非Watchonly地址一起使用

请参阅``importAdress''Watchonly P2SH地址支持。

如果指定“标签”,请将地址分配给该标签。

Parameters

nrequired - 数字,需要

n键或地址中所需的签名数量。

keys - json阵列,必需

比特币地址或十六进制编码的公共钥匙

label - 字符串,可选

标签将地址分配给。

address_type - 字符串,可选

标签将地址分配给。

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


Response

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