eth_call - Sonic RPC Method
Execute smart contract calls without creating transactions on Sonic. Essential for reading contract state for ultra-fast DeFi, high-frequency trading dApps, and performance-critical applications.
Executes a new message call immediately without creating a transaction on Sonic. Used for reading smart contract state.
Why Sonic? Build on the world's fastest EVM chain with 720ms finality, $1.2B+ TVL, and 1,534% growth since launch with 720ms transaction finality, 10K TPS, 90% fee sharing via FeeM, Fantom heritage with Andre Cronje leadership.
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 ultra-fast DeFi, high-frequency trading dApps, and performance-critical applications
- 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_sendTransaction
Send a transaction from an unlocked account on Sonic. Requires the node to hold the sender's private key — intended for development and testing only.
eth_getLogs
Query event logs on Sonic. Essential for indexing ultra-fast DeFi, high-frequency trading dApps, and performance-critical applications on the world's fastest EVM chain with 720ms finality, $1.2B+ TVL, and 1,534% growth since launch.