Docs

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 CodeMessageDescription
-32000Execution revertedContract function reverted
-32602Invalid parametersInvalid data encoding
-32015VM execution errorContract logic error