Endpoints & API
This document provides all the key endpoints required to connect to the Gate Layer network, including JSON-RPC and the block explorer API.
JSON-RPC Endpoints
Gate Layer Mainnet
- Chain ID:
10088
- RPC URLs:
https://gatelayer-mainnet.gatenode.cc
wss://gatelayer-ws-mainnet.gatenode.cc
- Explorer URL: https://gatescan.org/gatelayer
Gate Layer Testnet
- Chain ID:
10087
- RPC URLs:
https://gatelayer-testnet.gatenode.cc
wss://gatelayer-ws-testnet.gatenode.cc
- Explorer URL: https://gatescan.org/gatelayer-testnet
JSON-RPC API Compatibility
Gate Layer supports the standard Ethereum JSON-RPC API. Developers can interact with the Gate Layer node using any Ethereum-compatible tool (such as Hardhat, Foundry, Ethers.js, Web3.js).
Request Example (curl
)
Below is an example of using curl
to call the eth_blockNumber
method to get the latest block number:
curl -X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \
http://gatelayer-testnet.gatenode.cc
Full Documentation
For a complete list and detailed explanation of all available JSON-RPC methods, please refer to the official Ethereum documentation.
Block Explorer API
Gate Layer's block explorer, GateScan, provides a set of APIs that are fully compatible with Etherscan.
API Endpoint
Testnet:
https://gatescan.org/gatelayer-testnet/api
Mainnet:
https://gatescan.org/gatelayer/api
Full Documentation
For a complete list of all available endpoints and parameters, please refer to the Gate Layer Explorer API Documentation.