Flario
v1.6.0Flare for agents: FTSO prices with locally verified Merkle proofs, FDC, FAssets, x402 pay.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_flr_balance
Get native FLR balance and wrapped WFLR (WNat) balance for an EVM address on Flare mainnet or Coston2 testnet.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
network * | string |
get_flr_stake_info
One-call Flare portfolio for an address: native FLR + wrapped WFLR, FTSO vote power and delegation, claimable protocol rewards (by source), and FlareDrops. All four networks.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
network * | string |
get_ftso_feed
Get the latest FTSO price feed (value, decimals, timestamp) for a feed by name (e.g. "FLR/USD") or raw bytes21 feed id.
| Parameter | Type | Description |
|---|---|---|
feed_id * | string | |
network * | string |
get_ftso_feeds_all
Get the latest FTSO price for all known feeds on the given network.
| Parameter | Type | Description |
|---|---|---|
network * | string |
get_ftso_providers
Get the list of active FTSO data providers (name, address, vote power, fee, reward rate) for the given network.
| Parameter | Type | Description |
|---|---|---|
network * | string | |
limit | integer | |
reward_epoch_id | integer | Reward epoch to read. Defaults to the current one. |
get_ftso_anchor_feed
Get a proof-carrying FTSO Scaling anchor feed: the price plus a Merkle proof verified LOCALLY against the on-chain Relay root (FTSO Scaling protocol 100). Trust-minimized — usable by an agent or a smart contract without trusting the DA API. Defaults to the latest finalized round.
| Parameter | Type | Description |
|---|---|---|
feed_id * | string | |
network * | string | |
voting_round_id | integer |
get_ftso_history
Get recent FTSO Scaling anchor-feed history for a feed (by name or bytes21 id) from the public Flare Data Availability layer — no external indexer needed. Each point is optionally Merkle-verified against the on-chain Relay root.
| Parameter | Type | Description |
|---|---|---|
feed_id * | string | |
network * | string | |
rounds | integer | |
verify | boolean |
get_fassets_status
Get FAssets status (total minted, active agent count) for FXRP, FBTC or FDOGE on the given network, via the on-chain AssetManager with a flaremetrics.io fallback.
| Parameter | Type | Description |
|---|---|---|
asset * | string | |
network * | string |
get_fdc_proof_status
Get the FDC (protocol id 200) Merkle root and finalization status for a voting round from the Flare Relay contract.
| Parameter | Type | Description |
|---|---|---|
network * | string | |
voting_round_id * | integer |
get_smart_account_info
Resolve between XRPL accounts and Flare Smart Accounts via the on-chain MasterAccountController. Forward: give an XRPL account (r...) to get its deterministic Flare address and whether the account is actually deployed yet. Reverse: give a Flare address (0x...) to find out whether it is a Smart Account and which XRPL account owns it.
| Parameter | Type | Description |
|---|---|---|
network * | string | |
flare_address | string | Flare address (0x...). Resolves backward to its XRPL owner. |
xrpl_address | string | XRPL account (r...). Resolves forward to its Flare address. |
fdc_request_attestation
Submit an FDC attestation request (Payment, AddressValidity or EVMTransaction). Prepares the request via a Flare-hosted verifier, queries the request fee, and — if FLARE_PRIVATE_KEY is set — submits it to FdcHub, returning the tx hash and voting round id. Without a key it returns the prepared request for external submission.
| Parameter | Type | Description |
|---|---|---|
attestation_type * | string | |
network * | string | |
request_body * | object | |
source_chain * | string |
fdc_get_attestation_proof
Retrieve an FDC attestation proof from the Data Availability layer for a finalized voting round and verify the Merkle proof locally against the on-chain Relay root (no trust in the DA response).
| Parameter | Type | Description |
|---|---|---|
abi_encoded_request * | string | |
network * | string | |
voting_round_id * | integer |
fassets_agent_status
List FAssets agents (FXRP first) with collateral ratios, minting capacity (free lots), minted/reserved amounts and liquidation status, sorted by vault collateral ratio (riskiest first).
| Parameter | Type | Description |
|---|---|---|
asset * | string | |
network * | string | |
max_agents | integer |
fassets_system_state
Global FAssets system state for an asset: total minted, agent count, lot size, minting cap/pause, aggregated vault+pool collateral, and the redemption queue (tickets, value, lots).
| Parameter | Type | Description |
|---|---|---|
asset * | string | |
network * | string |
fassets_agent_details
Human-facing details of a FAssets agent (name, description, icon/logo URL, terms-of-use URL, whitelist status) from the AgentOwnerRegistry. Accepts an agent vault address or an owner management address.
| Parameter | Type | Description |
|---|---|---|
agent * | string | |
network * | string | |
asset | string |
fassets_liquidation_scanner
PREMIUM (x402): FAssets agents ranked by liquidation risk, joined with live FTSOv2 prices — per agent: CR headroom, the underlying price at which liquidation starts, and the % price move away from it. Free when the operator has not enabled x402.
| Parameter | Type | Description |
|---|---|---|
asset * | string | |
network * | string | |
max_agents | integer | |
x402_payment | string | x402 payment: base64-encoded JSON EIP-3009 authorization payload. Omit to receive payment requirements. |
fdc_bulk_proof_bundle
PREMIUM (x402): batch retrieval of up to 20 FDC attestation proofs with local Merkle verification of each against the on-chain Relay root. Free when the operator has not enabled x402.
| Parameter | Type | Description |
|---|---|---|
network * | string | |
requests * | array | |
x402_payment | string | x402 payment: base64-encoded JSON EIP-3009 authorization payload. Omit to receive payment requirements. |
songbird_fcc_registry
Scan the live FlareContractRegistry (Songbird by default) for Flare Confidential Compute contracts (PMW, TEE, compute extensions). Reports FCC deployment status post-STP.13 and lists FDC/Relay contracts plus the full registry.
| Parameter | Type | Description |
|---|---|---|
network | string |
fdc_web2json_request
Turn any public web API into a fact a smart contract can verify. Prepares an FDC Web2Json attestation request (URL + jq filter + ABI signature) through a Flare-hosted verifier and quotes the request fee. Submits on-chain only if FLARE_PRIVATE_KEY is set and submission is permitted; otherwise returns the prepared request for your own signer.
| Parameter | Type | Description |
|---|---|---|
abi_signature * | string | JSON ABI tuple describing the decoded struct, e.g. {"components":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"dto","type":"tuple"} |
network * | string | |
post_process_jq * | string | jq filter applied to the JSON response, e.g. "{price: .price|tonumber}" |
url * | string | |
body | string | |
headers | string | |
http_method | string | |
query_params | string |
fdc_verify_web2json
Verify a Web2Json attestation AND bind it to the source you expected. Checks the Merkle proof locally against the on-chain Relay root, confirms the attested URL matches your expected host / path / protocol / method, then decodes the payload with the request's ABI signature. Without expect_source the proof is verified but NOT bound, which an attacker can exploit with a valid proof from their own endpoint.
| Parameter | Type | Description |
|---|---|---|
abi_encoded_request * | string | |
network * | string | |
voting_round_id * | integer | |
expect_source | object | The source you expected. Without it the proof is verified but NOT bound, which leaves you open to a valid proof from an attacker's endpoint. |
fdc_verify_settlement
Prove an x402 settlement via Flare's enshrined FDC (trust-minimized, not the facilitator's word). Given a settlement tx hash it prepares an EVMTransaction attestation request (phase 1, free, no chain write); given a finalized voting_round_id + abi_encoded_request it locally Merkle-verifies the attestation AND binds it to the payment — confirming the attested tx contains an ERC-20 Transfer of >= amount of asset to payee. Never submits on-chain itself.
| Parameter | Type | Description |
|---|---|---|
amount * | string | |
asset * | string | |
network * | string | |
payee * | string | |
settlement_tx_hash * | string | |
abi_encoded_request | string | |
payer | string | |
required_confirmations | integer | |
voting_round_id | integer |
fcc_deployment_status
Watch Flare 2.0 confidential compute roll out, network by network, while it is still happening. Reads the ContractRegistry for a confidential-compute deployment; if it finds an ERC-2535 diamond it enumerates every facet and function selector, maps them to capabilities (Protocol Managed Wallets, enclave VRF, machine remote-attestation, TEE governance, FDC V2), reads what it is wired to, and reports whether the system has live governance state or is an empty shell. Flare has not published an ABI for these contracts, so names come from signature matching while selectors, facets, addresses and wir…
| Parameter | Type | Description |
|---|---|---|
include_deployment_block | boolean | Binary-search the first block where the contract had code. Accurate, but ~30 extra RPC calls per contract. |
network | string | A single network, or all four to see the rollout front. |
evidence_bundle
Package several proof-carrying facts into one portable bundle that someone else can verify without trusting you. Takes FTSO Scaling anchor feeds and finalized FDC attestations (Web2Json included), folds each Merkle proof against the on-chain Relay root BEFORE including it, and refuses any fact that fails. Use when an agent needs to hand a downstream consumer, an auditor, or another agent the evidence its decision rested on.
| Parameter | Type | Description |
|---|---|---|
network * | string | |
attestations | array | Finalized FDC attestations to include, by round and request bytes. |
claim | string | Plain-language statement of what these facts are being used to support. |
ftso_feeds | array | Feed names or bytes21 ids to anchor, e.g. ["FLR/USD", "BTC/USD"]. |
voting_round_id | integer | Round for the FTSO feeds. Defaults to the latest finalized round. |
evidence_verify
Verify an evidence bundle from scratch. Rebuilds every leaf from its own body, folds it through its proof, and compares against Relay.merkleRoots(protocol, round) read on-chain right now. Re-binds Web2Json facts to the source recorded in the bundle. Trusts nothing in the bundle, including its own hash. This is the receiving end: run it on a bundle someone hands you.
| Parameter | Type | Description |
|---|---|---|
bundle * | object | An evidence bundle produced by evidence_bundle. |
recheck_source_binding | boolean | Re-bind Web2Json facts to the expect_source recorded in the bundle. |