- ethers.js
- web3.js
Technical Overview
Providers
You can connect to RWALayer using either web3 or ethers library as described below.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You can connect to RWALayer using either web3 or ethers library as described below.
const ethers = require('ethers'); // ethers v6
const url = 'https://rpc.rwalayer.com/';
const provider = new ethers.JsonRpcProvider(url);
import 'ethers' from 'ethers'; // ethers v6
const url = 'https://rpc.rwalayer.com/';
const provider = new ethers.JsonRpcProvider(url);
const { Web3 } = require('web3');
const web3 = new Web3('https://rpc.rwalayer.com/');
import 'Web3' from 'web3';
const web3 = new Web3('https://rpc.rwalayer.com/');
