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

btc
Bitcoin (BTC)

Method: POST setnetworkactive

dropdown

方法 RPC setnetworkactive 例如 Bitcoin (BTC)

POST setnetworkactive

方法不允许

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

Parameters

state - 布尔值,必填

true 启用网络,false 禁用

Request

curl --location --request POST 'https://btc.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"
}