⚡ We welcome businesses to test our enterprise-grade service

btg
Bitcoin Gold (BTG)

Method: POST setnetworkactive

dropdown

方法 RPC setnetworkactive 例如 Bitcoin Gold (BTG)

POST setnetworkactive

Method not allowed

禁用/启用所有P2P网络活动。

Parameters

state - 布尔,需要

忠实启用网络,虚假禁用

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


Response

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