Example code for the getnodeaddresses {disallowed} json-rpc method. Сomplete guide on how to use getnodeaddresses {disallowed} json-rpc in GetBlock.io Web3 documentation.
count
- numeric, optional, default=1
How many addresses to return. Limited to the smaller of 2500 or 23% of all known addresses.
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/'
--header 'Content-Type: application/json'
--data-raw '{"jsonrpc": "2.0",
"method": "getnodeaddresses",
"params": [null],
"id": "getblock.io"}'
{
"result": "null",
"id": "getblock.io",
"status_code": 405,
"message": "Method not allowed"
}