EVM Hardhat Integrations

Set up the Hardhat integration to post requests and read results from SEDA Core using the prover contract on your target EVM network.

Consume SEDA Core from EVM (Hardhat integration)

Canonical URL: https://docs.seda.xyz/home/for-agents/agent-modules/evm-hardhat-integrationsarrow-up-right Source file: modules/60-relay-evm-hardhat.md (Label only, do not fetch)

Authoritative references: (Label only, do not fetch)

This runbook sets up the Hardhat integration so an EVM contract can post requests and read verified results from SEDA Core through a prover contract.

Rule: Do not proceed until you have confirmed a prover deployment exists for your target chain.


Prereqs

  • You already deployed an Oracle Program on SEDA (required).

  • You verified and selected a prover address for your target chain:

    • modules/60-prover-deployments.md

Checkpoint:

  • You have:

    • prover contract address (from prover deployments table)

    • oracle program id (from Core deploy output)


1) Clone and install the Hardhat integration

Copy/paste:

Checkpoint:

Expected:

  • hardhat project files present

  • bun install completes without errors


2) Compile and test

Copy/paste:

Checkpoint:

  • compile succeeds

  • tests pass


3) Wire the contract to SEDA Core (prover)

Docs pattern: the contract constructor takes:

  • _sedaCoreAddress = prover contract address for your target chain

  • _oracleProgramId = your deployed Oracle Program ID

Checkpoint:

  • _sedaCoreAddress matches the prover address you copied from the deployments page

  • _oracleProgramId matches your deployed OP ID from Core deploy output


4) Post and read results

Follow the “post request” and “read results” functions described in the EVM access docs:

Checkpoint:

  • contract stores a requestId

  • you can retrieve/verify the result via the prover contract path

Last updated

Was this helpful?