Orcpin · Defi Snapshot

by Orcpin

GETBase

$0.05

per call · USD Coin on Base

DeFi position and wallet risk snapshot on Base: token balances, account flags, and live Aave v3 collateral, debt, borrowing power, and health factor read directly from the protocol at a specific block, plus derived risk metrics — net equity, LTV utilization, leverage multiplier, health-factor band, and collateral drawdown tolerance (how far collateral can fall before liquidation). For agents assessing portfolio exposure and liquidation risk.

Endpoint

GET https://orcpin.dev/v1/defi-snapshot

1

Calls / 30d

1

Unique payers / 30d

Aug 17

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://orcpin.dev/v1/defi-snapshot", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://orcpin.dev/v1/defi-snapshot?address=0x0000000000000000000000000000000000000001" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "address": "0x0000000000000000000000000000000000000001",
  "as_of": "block",
  "block_number": 12345678,
  "chain": "Base",
  "chain_id": 8453,
  "data": {
    "aave_v3": {
      "available": true,
      "available_borrows": "200000000",
      "current_liquidation_threshold_bps": 8300,
      "has_position": true,
      "health_factor": "2.5",
      "loan_to_value_bps": 8000,
      "no_outstanding_debt": false,
      "pool": "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5",
      "total_collateral": "1500000000",
      "total_debt": "500000000"
    },
    "account": {
      "is_contract": false,
      "transaction_count": 42
    },
    "derived": {
      "aave": {
        "collateral_drawdown_tolerance_pct": 60,
        "health_factor_band": "safe",
        "leverage_multiplier": 1.5,
        "ltv_utilization_pct": 41.7,
        "net_equity": {
          "currency": "USD",
          "decimals": 8,
          "formatted": "10.0",
          "raw": "1000000000"
        },
        "note": "Computed from Aave v3 protocol values. Formulas: GET /methodology. Factual math, not advice.",
        "unused_borrow_power": {
          "currency": "USD",
          "decimals": 8,
          "formatted": "2.0",
          "raw": "200000000"
        }
      },
      "activity_tier": "active",
      "gas_runway": {
        "assumed_gas_units": 21000,
        "est_tx_cost_wei": "210000000000",
        "gas_price_wei": "10000000",
        "simple_transfers_affordable": 4761
      },
      "note": "Heuristic metrics derived from on-chain facts. Formulas: GET /methodology. Not advice.",
      "wallet_type": "eoa"
    },
    "native_balance": {
      "formatted": "0.001",
      "symbol": "ETH",
      "wei": "1000000000000000"
    },
    "token_balances": [
      {
        "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "decimals": 6,
        "formatted": "1.0",
        "raw": "1000000",
        "symbol": "USDC"
      }
    ]
  },
  "disclaimer": "Informational snapshot. See /terms.",
  "schema_version": "1.1.0",
  "sources": [
    "public_rpc",
    "on_chain_read",
    "aave_v3_pool"
  ],
  "timestamp": "2026-06-18T12:00:00.000Z"
}

Payment details

Pay to0x8b1cf12e7efe6aea59cd1124ebbe7709e3ac6085
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of DeFi and the homepage with a featured placement.

Get featured →

More from Orcpin & similar services