Web3 Clients
ethers.js
You can connect to Blast by instantiating a new ethers.js JsonRpcProvider
object with a RPC URL of the Blast network.
Mainnet
const ethers = require('ethers'); // ethers v6
const url = 'https://rpc.blast.io';
const provider = new ethers.JsonRpcProvider(url);
See Network Information for additional mainnet RPC endpoints.
Testnet
const ethers = require('ethers'); // ethers v6
const url = 'https://sepolia.blast.io';
const provider = new ethers.JsonRpcProvider(url);