How to get started building on Polygon
You'll need to create a free All That Node account first!
What is Polygon?
Polygon is a platform and framework, built to support and scale Ethereum-compatible blockchains by offering a suite of L2 scaling solutions like zk-rollups, plasma, sidechains and more.
For more information on Ethereum, please check out below:
Polygon Official Website : https://polygon.technology/
Polygon Official Documentation :https://docs.polygon.technology/
Polygon Github : https://github.com/maticnetwork/matic-docs
Endpoints
Supported Clients
NOTE: All That Node supports Geth, and Erigon client.
Network | API Type | Endpoint |
---|---|---|
Mainnet | JSON RPC | https://polygon-mainnet-rpc.allthatnode.com:8545/'YOUR-API-KEY' |
Mainnet | REST API | https://polygon-mainnet-rpc.allthatnode.com:1317 --header "x-allthatnode-api-key: 'YOUR-API-KEY'" |
Mainnet | Tendermint RPC | https://polygon-mainnet-rpc.allthatnode.com:26657/'YOUR-API-KEY' |
Mumbai | JSON RPC | https://polygon-testnet-rpc.allthatnode.com:8545/'YOUR-API-KEY |
Mumbai | REST API | https://polygon-testnet-rpc.allthatnode.com:1317/blocks/latest --header "x-allthatnode-api-key: 'YOUR-API-KEY'" |
Mumbai | Tendermint RPC | https://polygon-testnet-rpc.allthatnode.com:26657/'YOUR-API-KEY' |
*Find 'YOUR-API-KEY' by going to the Dashboard menu (Dashboard > Project Detail Page).
Sample
Request
curl https://polygon-mainnet-rpc.allthatnode.com:8545/'YOUR-API-KEY' \
-X POST \
-H "Content-Type: application/json" \
-d '{ "jsonrpc":"2.0", "method":"eth_syncing", "params":[], "id":1 }'
curl https://polygon-mainnet-rpc.allthatnode.com:1317/syncing \
--header "x-allthatnode-api-key: 'YOUR-API-KEY'"
Response
{
"jsonrpc": "2.0",
"result": false,
"id": 1
}
{
"syncing": false
}