flare-fdc

Explains Flare Data Connector attestation types, proof flows, and contract verification patterns.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Ayoub-ouederni/SENTINEL --skill flare-fdc-ayoub-ouederni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flare-fdc
Source: https://github.com/Ayoub-ouederni/SENTINEL/tree/main/.claude/skills/flare-fdc-skill
Command: npx skills add https://github.com/Ayoub-ouederni/SENTINEL --skill flare-fdc-ayoub-ouederni

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Integrating the Flare Data Connector (FDC) requires understanding attestation types, verifier APIs, voting rounds, Merkle proofs, and on-chain verification, which is difficult to piece together from scattered documentation. ## Core Features & Use Cases - Attestation Type Guidance: Covers AddressValidity, EVMTransaction, Web2Json, Payment, and FAssets-oriented types with request and response field references. - End-to-End Workflow Patterns: Documents the prepare, submit, wait-for-finalization, fetch-proof, and verify-in-contract flow for both Hardhat and Foundry starter repos. - Use Case: When building a proof-of-reserves dApp that combines Web2Json reserve data with EVMTransaction token supply events, use this Skill to follow the canonical verifier request, DA Layer proof retrieval, and IFdcVerification contract pattern. ## Quick Start Ask how to verify an EVM transaction from another chain in a Flare smart contract using FDC.

Frequently Asked Questions about flare-fdc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify an EVM transaction proof in a Flare smart contract?

Resolve IFdcVerification via ContractRegistry.getFdcVerification() and call verifyEVMTransaction with the proof before using its data. The proof is fetched from the DA Layer after the voting round finalizes, then passed as { merkleProof, data } to your contract.

What attestation types does the Flare Data Connector support?

FDC supports AddressValidity, EVMTransaction, Web2Json, Payment, ConfirmedBlockHeightExists, BalanceDecreasingTransaction, and ReferencedPaymentNonexistence. The first four cover most general use cases, while the last three are mainly oriented toward FAssets.

How do I fetch a Merkle proof from the FDC DA Layer?

POST to the DA Layer endpoint /api/v1/fdc/proof-by-request-round-raw with the votingRoundId and requestBytes from your original attestation request. The response contains the Merkle proof and response data to submit to your contract.

Does Web2Json work with any public API on Flare?

Web2Json can fetch arbitrary public Web2 content using a URL, HTTP method, headers, and a JQ post-processing filter, with output ABI-encoded into your defined struct. The returned data is externally provided content and must be decoded only against your expected ABI schema.

Why is my FDC proof not verifying on-chain?

Verification commonly fails when the voting round has not finalized yet, so check Relay.isFinalized(200, roundId) before fetching the proof. Also confirm the requestBytes match the original abiEncodedRequest and that you use network-specific imports from @flarenetwork/flare-periphery-contracts.