Skip to main content

Ethereum JSON-RPC Provider

Marble's Ethereum JSON-RPC provider. This provider can be used to interact with the Ethereum blockchain via libraries like ethers, web3.js, and more.

import { Marble } from "marble-sdk";

const marble = new Marble();
const rpcProvider = marble.rpcProvider;

// Example with ethers

import { ethers } from "ethers";

const provider = new ethers.providers.Web3Provider(rpcProvider);
const signer = provider.getSigner();