How to Get a Polygon RPC Endpoint
Step-by-step guide to getting a fast, reliable Polygon RPC endpoint.
Available Service on GetBlock
Step-by-Step: Get Your Polygon RPC Endpoint
Code Example
import { JsonRpcProvider } from "ethers";
const provider = new JsonRpcProvider("https://go.getblock.io/<YOUR-ACCESS-TOKEN>/");
const block = await provider.getBlockNumber();
console.log("Latest Polygon block:", block);from web3 import Web3
w3 = Web3(Web3.HTTPProvider("https://go.getblock.io/<YOUR-ACCESS-TOKEN>/"))
print("Chain ID:", w3.eth.chain_id) # 137
print("Block:", w3.eth.block_number)Plans
Use Case
Plan
CU
RPS
What's Next?
Last updated
Was this helpful?

