BLOCKCHAIN API DOCUMENTATION

NETWORK INFORMATION

MAINNET RPC
https://mainnet.modem.technology
TESTNET RPC
https://testnet.modem.technology
CHAIN ID (MAINNET)
88211 (0x15893)
CHAIN ID (TESTNET)
88212 (0x15894)
CURRENCY
MODEM
EXPLORER
explorer.modem.technology

JSON-RPC ENDPOINTS

POST eth_chainId
Returns the current chain ID.
{ "jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1 }
POST eth_blockNumber
Returns the current block number.
{ "jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1 }
POST eth_getBalance
Returns the balance of an account.
{ "jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xAddress", "latest"], "id": 1 }
POST eth_sendTransaction
Sends a transaction to the network.
{ "jsonrpc": "2.0", "method": "eth_sendTransaction", "params": [{ "from": "0xFrom", "to": "0xTo", "value": "0x0", "data": "0x" }], "id": 1 }

CONTRACT ADDRESSES

CONTRACT ADDRESS DESCRIPTION
WMODEM 0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0 Wrapped MODEM token
Factory 0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512 DEX pair factory
Router 0x5FbDB2315678afecb367f032d93F642f64180aa3 DEX router for swaps
Fee Collector 0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9 Protocol fee collection
NFT Marketplace 0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9 NFT trading platform

QUICK START

WEB3.JS

const Web3 = require('web3'); const web3 = new Web3('https://mainnet.modem.technology'); // Get current block number const blockNumber = await web3.eth.getBlockNumber(); console.log('Block:', blockNumber); // Get balance const balance = await web3.eth.getBalance('0xAddress'); console.log('Balance:', web3.utils.fromWei(balance, 'ether'));

ETHERS.JS

const { ethers } = require('ethers'); const provider = new ethers.JsonRpcProvider( 'https://mainnet.modem.technology' ); // Get current block const block = await provider.getBlockNumber(); console.log('Block:', block); // Get balance const balance = await provider.getBalance('0xAddress'); console.log('Balance:', ethers.formatEther(balance));

METAMASK

// Add MODEM Mainnet to MetaMask await window.ethereum.request({ method: 'wallet_addEthereumChain', params: [{ chainId: '0x15893', chainName: 'MODEM Mainnet', rpcUrls: ['https://mainnet.modem.technology'], nativeCurrency: { name: 'MODEM', symbol: 'MODEM', decimals: 18 }, blockExplorerUrls: ['https://explorer.modem.technology'] }] });