Chain ID
13812
Currency symbol
OPN
Website
Block explorer URL
http://explorer.opn.network
| RPC Endpoint | Add to wallet |
|---|---|
| https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc |
You can use the Susono RPC Endpoint to connect with Web3 libraries like Ethers.js, Web3, or Web3 wallets like MetaMask, WalletConnect, WalletConnect. This allows you to easily interact with blockchain and use decentralized applications on the Susono
const Web3 = require('web3');
// Replace 'YOUR_RPC_URL' with the Susono RPC endpoint URL
const rpcURL = https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc;
// Create a new Web3 instance using the RPC endpoint
const web3 = new Web3(new Web3.providers.HttpProvider(rpcURL));
// Now you can use the 'web3' object to interact with Susono
web3.eth.getBlockNumber()
.then(blockNumber => {
console.log('Latest block number:', blockNumber);
})
.catch(error => {
console.error('Error:', error);
});
const ethers = require('ethers');
// Replace 'YOUR_RPC_URL' with the Susono RPC endpoint URL
const rpcURL = https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc;
// Create a provider using the Susono RPC endpoint
const provider = new ethers.providers.JsonRpcProvider(rpcURL);
// You can use the 'provider' object to interact with Susono
provider.getBlockNumber()
.then(blockNumber => {
console.log('Latest block number:', blockNumber);
})
.catch(error => {
console.error('Error:', error);
});
