Query EVM state with Determica

The chain records what happened. Execute alternatives.

Determica is EVM execution and analysis software built on DuckDB and evmone. Use SQL for historical chain analysis and local EVM execution, keeping the declared inputs, returned rows, and execution evidence visible together.

Start with a runnable guide. Use the function, type, and table references for catalog-backed details.

Start here

Read a contract with SQL

Run the notebook to call latestRoundData on Chainlink’s ETH/USD feed on Ethereum mainnet.

read_contract returns ABI-decoded SQL values. The query formats the oracle answer and converts the update time to a timestamp.

Read guide
1
-- Chainlink ETH/USD, read live from Ethereum mainnet.
2
WITH feed AS (
3
SELECT read_contract(
4
$client,
5
'0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419'::ADDRESS,
6
$feed_abi,
7
'latestRoundData'
8
) AS data
9
)
10
SELECT
11
format_units((data).answer, 8) AS eth_usd,
12
to_timestamp((data).updatedAt) AS updated_at
13
FROM feed;
Notebook ready in readonly mode.

Workflows

Choose a workflow

Use the linked functions for individual operations. Open the guide for a runnable notebook.

Reference

Find a function or type