How to Get a BNB Smart Chain (BSC) RPC Endpoint
Step-by-step guide to getting a fast, reliableBSC RPC endpoint
Step-by-Step: Get Your BSC RPC Endpoint
Code Examples
# Get USDT balance on BSC using eth_call
curl -X POST https://go.getblock.io/<YOUR-ACCESS-TOKEN>/ \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_call",
"params": [{
"to": "0x55d398326f99059fF775485246999027B3197955",
"data": "0x70a08231000000000000000000000000YOUR_ADDRESS_WITHOUT_0x"
}, "latest"],
"id": "getblock.io"
}'import { JsonRpcProvider, formatEther } from "ethers";
const provider = new JsonRpcProvider(
"https://go.getblock.io/<YOUR-ACCESS-TOKEN>/"
);
// Get BNB balance
const balance = await provider.getBalance("0x8894E0a0c962CB723c1ef41B18a7bb7E76FB4675");
console.log(`Balance: ${formatEther(balance)} BNB`);
// Get gas price
const gasPrice = await provider.getFeeData();
console.log(`Gas price: ${gasPrice.gasPrice} wei`);
// Read a BEP-20 token balance (e.g., USDT on BSC)
const usdtContract = new Contract(
"0x55d398326f99059fF775485246999027B3197955", // BSC USDT
["function balanceOf(address) view returns (uint256)"],
provider
);
const tokenBalance = await usdtContract.balanceOf("0x...");Connect MetaMask to BSC via GetBlock
Public BSC RPC vs GetBlock
Feature
Public RPC
GetBlock
BSC Advanced Tooling — Exclusive to GetBlock
Accelerated Dedicated Node
Choosing Your Plan
Use Case
Plan
Key Benefit
What's Next?
Last updated
Was this helpful?

