41trust / 100

Workflow Agent Treasury Audit

by apix402data.com in Onchain & crypto

x402 APIFailing, checked 13 h ago

Trigger When: auditing wallet history, multi-asset portfolio USD value, or agent readiness. Workflow Outcome: aggregates ETH/WETH/USDC portfolio, nonce history, top counterparties, taint, and PnL.

POST
https://apix402data.com/api/workflow/agent-treasury-audit
Price
$0.04
per call in USDC
Uptime
69.2%
last 30 days
Response time
578 ms
4.3 s slowest 5%
Last check
Failed
13 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Latest check failed 13 h ago: Expected HTTP 402, got 410

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://apix402data.com/api/workflow/agent-treasury-audit

Each call costs $0.04 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.

POST https://apix402data.com/api/workflow/agent-treasury-audit
content-type: application/json

{
  "chain": "base",
  "lookback_blocks": 1000,
  "wallet": "0x2810EB5899EF878E4F35bF2Af9D75B861135Bd0E"
}

Parameters

ParameterTypeRequiredDescription
chainstringNoEVM chain (base, ethereum, arbitrum, optimism) Default: "base".
lookback_blocksintegerNoRecent block window for USDC Transfer logs (100-2000) Default: 1000.
walletstringNo0x wallet address to audit

Example response

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

Example response, 44 lines
{
  "balances": {
    "native_eth": 0,
    "usdc": 0,
    "weth": 0
  },
  "block_window": {
    "from_block": 61278461,
    "lookback_blocks": 1000,
    "to_block": 61279461
  },
  "chain": "base",
  "degraded": false,
  "endpoint": "workflow_agent_treasury_audit",
  "non_custodial": true,
  "nonce_health": {
    "latest_nonce": 0,
    "pending_nonce": 0,
    "stuck_nonces": 0
  },
  "ops_ready": false,
  "portfolio": {
    "eth_usd_spot": 1785.86,
    "total_portfolio_usd": 0
  },
  "rpc_source": "https://mainnet.base.org",
  "schema_version": "5.3",
  "usdc_pnl_ledger": {
    "inflow_usdc": 0,
    "net_usdc": 0,
    "outflow_usdc": 0,
    "taint_hits": [],
    "top_counterparties": [],
    "transfer_count": 0,
    "unique_counterparties": 0
  },
  "wallet": "0x2810EB5899EF878E4F35bF2Af9D75B861135Bd",
  "wallet_history": {
    "activity_tier": "dormant",
    "onchain_tx_count": 0,
    "x402_settled_calls": 119,
    "x402_spend_usd": 4.16
  }
}

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.04.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://apix402data.com/api/workflow/agent-treasury-audit' \
  -H 'content-type: application/json' \
  --data-raw '{"chain":"base","lookback_blocks":1000,"wallet":"0x2810EB5899EF878E4F35bF2Af9D75B861135Bd0E"}'

# 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 - -X POST 'https://apix402data.com/api/workflow/agent-treasury-audit' \
  -H 'content-type: application/json' \
  --data-raw '{"chain":"base","lookback_blocks":1000,"wallet":"0x2810EB5899EF878E4F35bF2Af9D75B861135Bd0E"}' \
  | 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.04 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.04" });
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.04 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapix402data.com%2Fapi%2Fworkflow%2Fagent-treasury-audit&method=POST
const res = await pay("https://apix402data.com/api/workflow/agent-treasury-audit", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "chain": "base",
    "lookback_blocks": 1000,
    "wallet": "0x2810EB5899EF878E4F35bF2Af9D75B861135Bd0E"
  }),
});
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.04 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.04"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://apix402data.com/api/workflow/agent-treasury-audit",
        json={
            "chain": "base",
            "lookback_blocks": 1000,
            "wallet": "0x2810EB5899EF878E4F35bF2Af9D75B861135Bd0E",
        },
    )
    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
13 h agoExpected HTTP 402, got 410410477 ms-
3 days agoTimed out---
4 days agoExpected HTTP 402, got 410410557 ms-
4 days agoExpected HTTP 402, got 410410588 ms-
5 days agoPassed402578 ms$0.04
Show 8 older checks
5 days agoPassed4024.3 s$0.04
5 days agoPassed402590 ms$0.04
6 days agoPassed402565 ms$0.04
6 days agoPassed402293 ms$0.04
6 days agoPassed402637 ms$0.04
7 days agoPassed402570 ms$0.04
7 days agoPassed402547 ms$0.04
7 days agoPassed402580 ms$0.04