RPC Access & APIs
The Modulax blockchain exposes a standard Ethereum JSON-RPC interface, making it fully compatible with existing EVM tooling. Developers can deploy contracts, send transactions, and query chain state without any modifications to their workflow.
"If you can build on Ethereum, you can build on Modulax. RPC compatibility ensures zero switching cost."
Public RPC Endpoints
Mainnet
https://rpc.modulax.org
https://explorer.modulax.org
Testnet
https://testnet-rpc.modulax.org
https://testnet-explorer.modulax.org
Supported Methods
Modulax supports the full suite of Ethereum JSON-RPC methods. Commonly used endpoints include:
eth_blockNumber
Latest block number
eth_getBlockByNumber
Retrieve block details
eth_getTransactionReceipt
Check transaction status
eth_call
Simulate contract calls (no state)
eth_sendRawTransaction
Broadcast signed transactions
eth_getLogs
Fetch contract event logs
net_version
Current network ID
web3_clientVersion
Node client version
Example Usage
Using cURL
curl -X POST https://rpc.modulax.org
-H "Content-Type: application/json"
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
Using web3.js
import Web3 from "web3";
const web3 = new Web3("https://rpc.modulax.org");
async function main() { const block = await web3.eth.getBlockNumber(); console.log("Current block:", block); }
main();
Using ethers.js
import { ethers } from "ethers";
const provider = new ethers.JsonRpcProvider("https://rpc.modulax.org");
async function main() { const block = await provider.getBlockNumber(); console.log("Current block:", block); }
main();
Notes for Developers
Gas Fees: paid in MDX, the native token of Modulax
Network Name: Modulax
RPC URL: https://rpc.modulax.org
Chain ID: 648529
Currency Symbol: MDX
Block Explorer: https://explorer.modulax.org
Rate Limits: public RPC endpoints are subject to fair-use limits. For production dApps, consider running your own node.
Conclusion
The Modulax RPC interface mirrors Ethereum’s, ensuring compatibility with existing developer stacks such as Hardhat, Foundry, Truffle, ethers.js, and web3.js. This makes Modulax a drop-in extension of the EVM ecosystem.
"Modulax is not reinventing the wheel. It ensures your Ethereum tools work seamlessly while preparing for a quantum-secure future."
Last updated