flare-ftso
CommunityIntegrate and verify Flare FTSO price feeds
System Documentation
What problem does it solve?
Flare FTSO integration can be subtle and error-prone: developers need clear guidance to read block-latency feeds, verify scaling (anchor) Merkle proofs, calculate and supply any required fees, and implement secure offchain/onchain consumption without exposing keys or misinterpreting raw RPC data. This skill collects architecture explanation, contract interfaces, example scripts, and security guidance to reduce integration mistakes and ensure correct, auditable feed consumption.
Core Features & Use Cases
- Architectural Overview: Explains FTSO components (block-latency feeds, scaling anchor feeds, VRF selection, incremental delta updates, volatility incentives).
- Onchain Integration: Guidance for Solidity consumers including resolving FtsoV2 via ContractRegistry, calling getFeedByIdInWei/getFeedsById, fee calculation via IFeeCalculator, and verifyFeedData for anchor proofs.
- Offchain & Frontend: Examples for JavaScript/TypeScript and wagmi/viem frontends that dynamically resolve contract addresses, poll feeds, and format wei-scaled values for display.
- Security & Data Handling: Rules for treating feed values as typed ABI outputs, never exposing private keys to AI, and ensuring human-in-the-loop for payable operations.
- Use Case: Read FLR/USD and BTC/USD block-latency feeds offchain, derive a BTC/ETH cross-quote, or verify a scaling anchor proof onchain before storing a proven value.
Quick Start
Ask the skill to explain how to read FLR/USD and BTC/USD using ContractRegistry and FtsoV2, convert wei-scaled values to human-readable prices, and verify a scaling anchor Merkle proof with verifyFeedData while keeping all signing in your local environment.
Dependency Matrix
Required Modules
Components
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: flare-ftso Download link: https://github.com/mashharuki/flare-sample/archive/main.zip#flare-ftso Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.