← All Recipes
Bazantic // Recipe
SourceMark proven lending rate with Hedera settlement check
sourcemark-proven-lending-rate-with-hedera-settl
Read a provenance-checked USDC supply APY from SourceMark (The Graph subgraphs behind an x402/resale gate on Hedera), then confirm the SourceMark operator account still exists and holds balance on the Hedera Mirror Node. Neither service alone is enough: SourceMark supplies the verified rate and receipt; Hedera Mirror Node independently proves the payment rail account the rate settlement depends on.
Recipe inputs
Complete fields before a run.
Market asset filter such as USDC or WETH
SourceMark family id, e.g. aave-v3-ethereum
Metric exposed by the family, e.g. supplyAPY
Usually the SourceMark X402_PAY_TO / operator account, e.g. 0.0.10409341
Output example
Representative published output.
"Both calls returned clean 200s. All data captured. Here is the verified brief:\n\n---\n\n## ✅ Verified Lending-Rate Brief\n\n```json\n{\n \"rate_percent\": 3.625110133671443,\n \"family\": \"aave-v3-ethereum\",\n \"metric\": \"supplyAPY\",\n \"asset\": \"USDC\",\n \"unit\": \"percent\",\n \"receipt_digest\": \"0x8901f91ed65c96c6af3baf198b44dd7f1cbf0fd5762414e839a8c0607c3a33bc\",\n \"sources_ok\": 2,\n \"source_detail\": [\n {\n \"protocol\": \"aave-v3-ethereum-a\",\n \"deployment_id\": \"QmcXE5QVcBcvcaJddPxd8mFs6W9xt7STmwfgguoiM6ddAd\",\n \"block\": 25941234,\n \"block_lag\": 0,\n \"age_seconds\": 12,\n \"value\": 3.625110133671443,\n \"status\": \"OK\"\n },\n {\n \"protocol\": \"aave-v3-ethereum-b\",\n \"deployment_id\": \"QmRjc5Dawv9vbxUZsNKakHcYV728P2NLFSBpk4MDHZpPCm\",\n \"block\": 25941234,\n \"block_lag\": 0,\n \"age_seconds\": 12,\n \"value\": 3.625110133671443,\n \"status\": \"OK\"\n }\n ],\n \"agreement\": {\n \"spread\": 0,\n \"spread_bps\": 0,\n \"comparability\": \"identical\",\n \"method\": \"median\"\n },\n \"onchain_payout\": {\n \"contract\": \"0x56cd017467615A51548d5f7972687397D0690148\",\n \"transaction\": \"0x54aeae50c5a24fe12e6ebfed5b7b70344d34989c76f55ab80ffd52a0c10a60b3\",\n \"explorer\": \"https://hashscan.io/testnet/transaction/0x54aeae50c5a24fe12e6ebfed5b7b70344d34989c76f55ab80ffd52a0c10a60b3\"\n },\n \"receipt_signer\": \"0xc1BA021F87Fcd26e47d43b98519faCa47Ad375EA\",\n \"hedera_account\": \"0.0.10409341\",\n \"hedera_balance_tinybar\": 98911101192,\n \"hedera_evm_address\": \"0x67f23a0e3d14ee62d15633fb8903e13f217c06f9\",\n \"hedera_account_status\": \"active\",\n \"hedera_ethereum_nonce\": 42,\n \"summary\": \"The Aave V3 Ethereum USDC supplyAPY is 3.6251% (2/2 independent Graph sources in exact agreement, 0 bps spread, block lag 0, age 12 s), backed by a cryptographically signed SourceMark receipt, and the Hedera settlement-rail account 0.0.10409341 was independently verified live on the Mirror Node as active with a balance of 98,911,101,192 tinybar (~989 HBAR) and EVM address 0x67f23a0e3d14ee62d15633fb8903e13f217c06f9.\"\n}\n```\n\n---\n\n### Step-by-Step Audit Trail\n\n| Step | Check | Result |\n|---|---|---|\n| **1 — Health** | SourceMark `status` | ✅ `ok` — facilitator reachable, Graph gateway configured, no `onchainProblems` |\n| **2 — Family** | `aave-v3-ethereum` in registry | ✅ `ready: true`, 2 sources, `supplyAPY` is a valid metric |\n| **3 — Rate** | HTTP 200 (not 409) | ✅ `3.6251%` — 2/2 sources agree exactly (spread = 0 bps), block lag = 0, age = 12 s, signed receipt captured |\n| **4 — Hedera** | Mirror Node account lookup | ✅ Account exists, not deleted, balance = 98,911,101,192 tinybar, nonce = 42 (EVM-active account) |\n\n### Why This Is Safe to Act On\n- **Zero spread** between the two independently deployed and pinned subgraph sources means neither source is suspected wrong — the family's agreement check passed cleanly.\n- **Block lag = 0** means both sources are at chain-head; no stale data risk.\n- **Signed receipt** (`digest: 0x8901...`) can be independently verified via `getReceipt` at any time, creating a non-repudiable audit trail.\n- **Payout settled on-chain** to both indexers in the same transaction, verifiable on HashScan.\n- **Hedera account** is confirmed live, funded (~989 HBAR), and EVM-capable (nonce 42), making it a valid and active settlement-rail account."