⚡ We welcome businesses to test our enterprise-grade service

btg
Bitcoin Gold (BTG)

Method: POST generatetoaddress

dropdown

方法 RPC generatetoaddress 例如 Bitcoin Gold (BTG)

POST generatetoaddress

Method not allowed

矿山立即将其阻止到指定的地址(在RPC呼叫返回之前)

Parameters

nblocks - 数字,需要

立即生成多少个块。

address - 字符串,需要

将新生成的BTC发送到的地址。

maxtries - 数字,可选,默认值= 1000000

尝试多少迭代。

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


Response

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