API Reference
Complete technical reference for InterLayer's JSON-RPC API, runtime pallets, and error codes.
JSON-RPC Methods
Chain Methods
chain_getBlock
Get block details by hash or number
chain_getHeader
Get block header by hash
chain_getFinalizedHead
Get hash of the last finalized block
MEL Custom Methods
mel_submitCrossVmTx
Submit atomic cross-VM transaction
mel_getVmState
Query VM-specific state
mel_estimateGas
Estimate unified gas for cross-VM call
State Methods
state_getStorage
Query chain state by storage key
state_getMetadata
Get runtime metadata
Runtime Pallets
fee-distribution
Manages fee distribution across validators, lite clients, MPC nodes, and treasury.
set_distribution
Update fee distribution percentages (requires governance)
get_distribution
Query current fee distribution
mel-core
Core Multi-VM Execution Layer logic and routing.
execute_cross_vm
Execute cross-VM transaction
register_vm_adapter
Register new VM adapter (governance only)
mel-evm
EVM adapter for Solidity contract execution.
call
Call EVM contract method
create
Deploy EVM contract
Error Codes
InvalidVmType
Specified VM type not supported
InsufficientGas
Gas limit too low for operation
AtomicExecutionFailed
One or more calls in atomic bundle failed
CrossVmCallReverted
Target VM call reverted
InvalidSignature
Transaction signature invalid
NonceT order
Transaction nonce incorrect
InsufficientBalance
Account balance too low
WebSocket Subscriptions
chain_subscribeNewHeads
Subscribe to new block headers
state_subscribeStorage
Subscribe to storage changes