flare-ftso

Provides integration guidance for consuming Flare Time Series Oracle price feeds onchain and offchain.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires web3, @flarenetwork/flare-periphery-contract-artifacts, and includes scripts (resource) and references (resource) components.

What problem does it solve? Developers building on Flare need accurate, up-to-date knowledge of the FTSO oracle's feed IDs, contract interfaces, fee mechanics, and verification patterns, which are spread across many documentation pages and easy to get wrong. ## Core Features & Use Cases - Feed Consumption Patterns: Explains how to read block-latency and Scaling anchor feeds from Solidity, offchain TypeScript, and React frontends using wagmi and ContractRegistry address resolution. - Feed IDs and Verification: Documents the bytes21 feed ID encoding, common crypto/USD feed IDs, fee calculation via IFeeCalculator, and Merkle proof verification of anchor feeds. - Use Case: A developer building a DeFi dashboard on Flare uses this Skill to resolve the FtsoV2 contract, read FLR/USD and BTC/USD feeds with useReadContract, and format wei-scaled values for display. ## Quick Start Ask the assistant to show how to read the FLR/USD price feed from FTSO in a Solidity contract on Coston2 testnet.

Frequently Asked Questions about flare-ftso

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

FAQPage Schema
How do I read FTSO price feeds in a Solidity contract?

Resolve the FtsoV2 contract via ContractRegistry (getTestFtsoV2 on Coston2, getFtsoV2 on mainnet), then call getFeedById or getFeedsById with the bytes21 feed ID. View calls for block-latency feeds are free; some state-changing calls require a fee calculated via IFeeCalculator.

How to use Flare FTSO feeds in a React frontend?

Use wagmi with @flarenetwork/flare-wagmi-periphery-package, which exports chain configs, ABIs, and the ContractRegistry address. Resolve the FtsoV2 address with useReadContract on getContractAddressByName, then call getFeedByIdInWei and format the 18-decimal result with viem's formatUnits.

What is the difference between block-latency and Scaling anchor feeds?

Block-latency feeds update every block (~1.8 seconds) via incremental delta updates from VRF-selected providers. Scaling anchor feeds update every 90 seconds through a full commit-reveal process across all providers and serve as accuracy anchors verifiable with Merkle proofs.

Does FTSO support cross-pair feeds like BTC/ETH?

FTSO does not list every pair directly, but you can derive cross-pairs by dividing two existing feeds, such as BTC/USD divided by ETH/USD. Scale the base feed decimals to twice the quote decimals before dividing to retain precision.

Can this skill execute transactions or manage private keys?

No. This skill is documentation and reference only; it never signs transactions, handles keys, or moves funds. All fee payments, volatility incentives, and delegation require explicit user confirmation in developer-controlled environments.