80trust / 100

Defi Snapshot

by Orcpin in Onchain & crypto

x402 APIPassing, checked 3 h ago

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.

GET
https://orcpin.dev/v1/defi-snapshot
Price
$0.05
per call in USDC
Uptime
100%
last 30 days
Response time
295 ms
366 ms slowest 5%
Last check
Passed
3 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

How to call it

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

Each call costs $0.05 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://orcpin.dev/v1/defi-snapshot?address=0x0000000000000000000000000000000000000001

Parameters

ParameterTypeRequiredDescription
addressstringYesEVM wallet address to snapshot (0x...).

Example response

The provider's example. We can't check it without paying.

Example response, 77 lines
{
  "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"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.05.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://orcpin.dev/v1/defi-snapshot?address=0x0000000000000000000000000000000000000001'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://orcpin.dev/v1/defi-snapshot?address=0x0000000000000000000000000000000000000001' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.05 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.05" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.05 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Forcpin.dev%2Fv1%2Fdefi-snapshot
const res = await pay("https://orcpin.dev/v1/defi-snapshot?address=0x0000000000000000000000000000000000000001");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.05 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.05"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://orcpin.dev/v1/defi-snapshot?address=0x0000000000000000000000000000000000000001")
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402346 ms$0.05
8 h agoPassed402234 ms$0.05
12 h agoPassed402285 ms$0.05
16 h agoPassed402296 ms$0.05
20 h agoPassed402295 ms$0.05
Show 10 older checks
24 h agoPassed402301 ms$0.05
28 h agoPassed402260 ms$0.05
32 h agoPassed402366 ms$0.05
36 h agoPassed402252 ms$0.05
40 h agoPassed402283 ms$0.05
43 h agoPassed402464 ms$0.05
47 h agoPassed402421 ms$0.05
2 days agoPassed402345 ms$0.05
2 days agoPassed402240 ms$0.05
2 days agoPassed402361 ms$0.05