flare-ftso

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

Updated Aug 10, 2026
One-click install
npx skills add https://github.com/isreal916/pistis --skill flare-ftso-isreal916
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flare-ftso
Source: https://github.com/isreal916/pistis/tree/main/.agents/skills/flare-ftso
Command: npx skills add https://github.com/isreal916/pistis --skill flare-ftso-isreal916

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 to integrate decentralized price feeds without hardcoding addresses or misusing payable methods. ## Core Features & Use Cases - Feed Consumption Patterns: Explains how to read block-latency and Scaling anchor feeds via FtsoV2Interface in Solidity, offchain with web3/ethers, and in React frontends using wagmi and @flarenetwork/flare-wagmi-periphery-package. - Feed IDs and Fee Calculation: Documents the 21-byte feed ID encoding, common crypto/USD feed IDs, and fee calculation via IFeeCalculator for payable calls. - Anchor Feed Verification: Covers Merkle proof verification of Scaling feeds with verifyFeedData, plus volatility incentives and delegation concepts. - Use Case: A developer building a DeFi app on Flare uses this Skill to resolve the FtsoV2 contract via ContractRegistry, read BTC/USD and ETH/USD feeds in a single call, and compute a cross-pair BTC/ETH price. ## Quick Start Ask the assistant to show how to read the FLR/USD price feed from the Flare 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 21-byte feed ID. Never hardcode the FtsoV2 address, and set the EVM version to cancun when compiling.

How to read Flare FTSO feeds offchain with JavaScript?

Use web3 or ethers with @flarenetwork/flare-periphery-contract-artifacts to get the FtsoV2 ABI, resolve the contract address via ContractRegistry's getContractAddressByName, and call getFeedsById over the Flare RPC endpoint. The skill includes a complete TypeScript example script.

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 and are free to query onchain. Scaling anchor feeds use a full commit-reveal process across all providers every 90 seconds and can be verified onchain with Merkle proofs.

Can I use FTSO feeds in a React frontend with wagmi?

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

Does this skill execute transactions or handle private keys?

No, this skill is documentation and reference only. It does not execute transactions, sign messages, or handle private keys; all fee payments, volatility incentives, and delegation require explicit user confirmation in developer-controlled environments.