Integration
Introduce the steps for integrating BlockRazor Ethereum RPC
Last updated
Was this helpful?
Was this helpful?
// import Web3
const Web3 = require('web3');
// Create a Web3 instance and connect to the RPC.
const web3 = new Web3('https://ethereum-rpc.publicnode.com'); // You can replace the RPC URL with the Scutum RPC URL here.
// check the connection
web3.eth.net.isListening()
.then((listening) => {
console.log('Web3 connected: ', listening);
})
.catch((err) => {
console.error('Web3 connection error: ', err);
});