Read Contract
Call read-only contract functions at a selected block without sending a transaction.
Read Contract calls a contract's view functions. Queries read state only: they do not send a transaction or consume gas.
Interface
| Area | Description |
|---|---|
| Function list | Shows view functions in the ABI and their selectors. |
| Parameters | Enter addresses, numbers, booleans, or arrays according to the ABI. |
| Block | Reads the latest state by default; you can also specify a historical block. |
| Result | Shows decoded return values and their types. |
Example
This example uses a local ABI and return values. It does not send requests.
- Expand
token0. It has no parameters, and its result appears directly. - Expand
balanceOfand enter a complete0xaddress forowner. - Select Latest Block to read the current state, or Custom Block to enter a block height.
- Select Query and inspect the
uint256value forbalancebelow.
Notes
- Only
viewfunctions are available here; state-changing functions cannot be executed. - Addresses must be 40-digit hexadecimal
0xaddresses. Enter large integers in full. - Historical-block queries depend on node data. If it is unavailable, try the latest block.
