Interact with a node RPC
Last updated
{ "id": 1, "jsonrpc": "2.0", "result": "0x77359400" } // This is an example gas price.# Setup: pip install web3
from web3 import Web3
web3 = Web3(Web3.HTTPProvider("https://zkevmrpc.blastchain.org"))// Setup: curl -L get.web3j.io | sh
import org.web3j.protocol.Web3j;
import org.web3j.protocol.http.HttpService;
Web3j web3 = Web3j.build(new HttpService("https://zkevmrpc.blastchain.org"));// Setup: npm install ethers
const { ethers } = require("ethers");
const customHttpProvider = new ethers.providers.JsonRpcProvider("https://zkevmrpc.blastchain.org");// Setup: npm install web3
const Web3 = require('web3');
const web3 = new Web3("https://zkevmrpc.blastchain.org");