GuidesAPI Reference
API Reference

Rpc methods restrict

Certain methods may be restricted.

To provide a reliable service, Xplorer imposes restrictions on a few methods. Please refer to the following for more information.

Range Restrictions

In Ethereum or Klaytn, there are methods that allow you to specify a block range, such as eth_getLogs. In Xplorer, the block range is limited for server stability.

  • The range between fromBlock and toBlock is limited to 2000.
  • If the request exceeds the scope, the following error is returned
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32005,
    "message": "In eth_getLogs, eth_newFilter, klay_getLogs, and klay_newFilter, the block range is limited to 2000."
  }
}

See the table below for a list of restricted scope methods by platform.

PlatformRestrict Methods
BitcoinNone
BNB Smart Chaineth_getLogs, eth_newFilter
Ethereumeth_getLogs, eth_newFilter
Klaytneth_getLogs, eth_newFilter, klay_getLogs, klay_newFilter
Polygoneth_getLogs, eth_newFilter