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);
See Ethers documentation for additional information.
const { Web3 } = require('web3'); const web3 = new Web3('https://rpc.rwalayer.com/');
import 'Web3' from 'web3'; const web3 = new Web3('https://rpc.rwalayer.com/');
See Web3 documentation for additional information.