Node RPC API
JSON-RPC
A drop-in replacement for Ethereum JSON-RPC interface supporting all standard methods.
POST
MIDL provides a single JSON-RPC endpoint that supports all standard Ethereum 2.0 JSON-RPC methods, making it a drop-in replacement for EVM-compatible blockchain interactions.
Get block information by block number.
Parameters:
Example Response:
Get block information by block hash.
Parameters:
Get the current block number.
Parameters: None
Example Request:
Example Response:
Get transaction information by transaction hash.
Parameters:
Example Response:
Get transaction receipt by transaction hash.
Parameters:
Example Response:
Get account balance for a specific address.
Parameters:
Example Response:
Get the transaction count (nonce) for an account.
Parameters:
Example Response:
Get the current gas price.
Parameters: None
Example Request:
Example Response:
Get the network chain ID.
Parameters: None
Example Request:
Example Response:
JSON-RPC Methods:
Block Methods
eth_getBlockByNumber
Get block information by block number.
Parameters:
blockNumber(string): Block number in hex or “latest”, “earliest”, “pending”includeTransactions(boolean): If true, returns full transaction objects
eth_getBlockByHash
Get block information by block hash.
Parameters:
blockHash(string): Block hash in hexadecimal formatincludeTransactions(boolean): If true, returns full transaction objects
eth_blockNumber
Get the current block number.
Parameters: None
Example Request:
Transaction Methods
eth_getTransactionByHash
Get transaction information by transaction hash.
Parameters:
transactionHash(string): Transaction hash in hexadecimal format
eth_getTransactionReceipt
Get transaction receipt by transaction hash.
Parameters:
transactionHash(string): Transaction hash in hexadecimal format
Account Methods
eth_getBalance
Get account balance for a specific address.
Parameters:
address(string): Account address in hexadecimal formatblockParameter(string): Block number in hex, or “latest”, “earliest”, “pending”
eth_getTransactionCount
Get the transaction count (nonce) for an account.
Parameters:
address(string): Account address in hexadecimal formatblockParameter(string): Block number in hex, or “latest”, “earliest”, “pending”
Network Methods
eth_gasPrice
Get the current gas price.
Parameters: None
Example Request:
eth_chainId
Get the network chain ID.
Parameters: None
Example Request:
Error Handling
Standard JSON-RPC 2.0 error responses:Integration Examples
Web3.js
Ethers.js
Rate Limits
API calls are subject to your plan’s rate limits. See billing documentation for details on threshold billing and plan limits.Authorizations
Project API Key
Body
application/json
JSON-RPC request payload
JSON-RPC version
Available options:
2.0 The RPC method to call
Available options:
eth_getBlockByNumber, eth_getBlockByHash, eth_blockNumber, eth_getTransactionByHash, eth_getTransactionReceipt, eth_getBalance, eth_getTransactionCount, eth_gasPrice, eth_chainId Request identifier
Method parameters

