flare-fdc
БесплатноБез исполняемых скриптовНе проверенProvides domain knowledge and guidance for the Flare Data Connector (FDC)—attestation types, request flow, Merkle proofs, verifier/DA Layer, and smart…
от FDU-INS★ 84 звезды на GitHubОб этом скилле
Scope and Limitations
This skill is documentation and guidance only. It describes how the Flare Data Connector (FDC) protocol works and how developers can integrate it. It does not perform any actions on behalf of the user.
This skill explicitly does NOT:
- Execute, sign, or broadcast any blockchain transactions
- Access, store, or transmit private keys or wallet credentials
- Initiate or authorize any payments or financial transfers
- Call any smart contract methods or APIs directly
- Handle funds, tokens, or any financial assets
External data handling:
- FDC attestation responses (Web2Json, EVMTransaction, DA Layer proofs) are externally provided content from third-party sources
- This skill instructs developers to treat all such data as untrusted and to decode it only according to documented ABI schemas
- Response content must never be passed into prompts, LLM inputs, or agent decision logic
- Developers are solely responsible for validating and safely handling all external data in their own implementations
What this skill does:
- Explains FDC attestation types, request flows, Merkle proof verification, and contract patterns
- References official Flare Developer Hub documentation and audited starter repositories
- Provides read-only conceptual guidance for developers building on Flare
All transaction signing, key management, and on-chain execution must occur exclusively in user-controlled, developer-managed environments outside of this skill.
Flare Data Connector (FDC)
What FDC Is
The Flare Data Connector (FDC) is an enshrined oracle that validates external data for Flare's EVM state. Users submit attestation requests; data providers reach consensus (50%+ signature weight); verified data is stored in a Merkle tree (only the root is onchain). Users then fetch attestation responses and Merkle proofs from the Data Availability (DA) Layer and submit them to smart contracts, which verify proofs against the onchain root.
Key points:
- Prepare request — Verifier API (e.g.
POST .../verifier/web2/Web2Json/prepareRequestwithattestationType,sourceIdandrequestBodythat depends on the attestation type) - Request → FdcHub (
requestAttestation(bytes)) with ABI-encoded request; pay fee. - Round finalization — typically 90–180 seconds; wait before using a proof.
- Proof retrieval — DA Layer API (e.g.
POST .../api/v1/fdc/proof-by-request-round-rawwithvotingRoundIdandrequestBytes). - Contract verification — use
IFdcVerification(fromContractRegistry.getFdcVerification()) and the type-specific method (e.g.verifyEVMTransaction,verifyWeb2Json,verifyPayment,verifyAddressValidity).
Attestation Types
| Type | Purpose | Chains / sources |
|---|---|---|
| AddressValidity | Validate format/checksum of addresses | BTC, DOGE, XRPL |
| EVMTransaction | Verify and retrieve transaction + events | ETH, FLR, SGB (mainnet); testETH, testFLR, testSGB (testnet) |
| JsonApi / Web2Json | Fetch Web2 data, JQ transform, ABI-encoded output | PublicWeb2 (Coston/Coston2) |
| Payment | Confirm payment tx on non-EVM chains | BTC, DOGE, XRP |
| ConfirmedBlockHeightExists | Verify block existence and confirmations | — |
| BalanceDecreasingTransaction | Validate tx that decreases an address balance | FAssets-oriented |
| ReferencedPaymentNonexistence | Prove absence of specific payments in interval | FAssets-oriented |
First three are most generally useful; last three are mainly for FAssets.
User Workflow (Offchain + Onchain)
- Prepare request — Encode attestation in FDC format. Use a verifier service (e.g. Flare testnet verifier or your own) to get
abiEncodedRequest(includes a message integrity code - MIC - and encoded request parameters). - Submit — Call
FdcHub.requestAttestation(abiEncodedRequest)withvalue: requestFee. - Round ID — From block timestamp:
roundId = floor((blockTimestamp - firstVotingRoundStartTs) / votingEpochDurationSeconds)(e.g. 90s). GetfirstVotingRoundStartTsfromFlareSystemsManager/ config. - Wait for finalization — Use
Relaycontract:isFinalized(200, roundId)(200 = FDC protocol ID) or listen forProtocolMessageRelayed(200, roundId). - Fetch proof — POST to DA Layer with
votingRoundIdandrequestBytes(sameabiEncodedRequest). - Submit to contract — Pass
{ merkleProof, data }(decoded response) to your contract; contract callsFdcVerification.verify*()then uses the data.
Contract Pattern (Verification + Business Logic)
- Resolve FdcVerification via
ContractRegistry.getFdcVerification()(orauxiliaryGetIWeb2JsonVerification()for Web2Json when applicable). - Always verify first, then decode and use data. Example (EVMTransaction):
function processProof(IEVMTransaction.Proof calldata proof) external {
require(ContractRegistry.getFdcVerification().verifyEVMTr
Установить flare-fdc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл flare-fdc?
Provides domain knowledge and guidance for the Flare Data Connector (FDC)—attestation types, request flow, Merkle proofs, verifier/DA Layer, and smart contract integration. Use when working with FDC, cross-chain attestations, EVMTransaction, Web2Json, Payment, AddressValidity, proof-of-reserves, weather insurance, or Flare Developer Hub FDC guides and starter repos.
Как установить скилл flare-fdc?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flare-fdc запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic