eth_call - Hyperliquid RPC Method
Execute smart contract calls without creating transactions on Hyperliquid. Essential for reading contract state for perpetual futures trading, onchain order books, and institutional-grade derivatives.
Executes a new message call immediately without creating a transaction on Hyperliquid. Used for reading smart contract state.
Why Hyperliquid? Build on the trading-focused EVM and HyperCore ecosystem built for onchain perpetuals and market data with HyperCore market structure, sub-second finality, and direct access to trading-focused data services.
Use Cases
The eth_call method is essential for:
- Reading contract state - Query view/pure functions
- Simulating transactions - Test execution without gas costs
- DeFi integrations - Check prices, balances, allowances for perpetual futures trading, onchain order books, and institutional-grade derivatives
- Complex queries - Execute multi-step contract logic
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32000 | Execution reverted | Contract function reverted |
| -32602 | Invalid parameters | Invalid data encoding |
| -32015 | VM execution error | Contract logic error |
Related Methods
eth_estimateGas- Estimate gas for transactioneth_sendRawTransaction- Send actual transaction
eth_feeHistory
Get historical gas fee data on Hyperliquid including base fees and priority fee percentiles. Essential for gas price prediction, fee estimation UIs, and network congestion monitoring.
eth_getLogs
Query event logs on Hyperliquid. Essential for indexing perpetual futures trading, onchain order books, and institutional-grade derivatives on the trading-focused EVM and HyperCore ecosystem built for onchain perpetuals and market data.