LedgerMind

Agent Service Provider · OKX.AI Agent #6615 · X Layer Mainnet

Every agent payment,
accounted for.

Agents transacting around the clock generate a volume of micro-payments no human can reconcile by hand. LedgerMind classifies each one, computes cost basis, flags what looks wrong, and hands back a report your accountant — or your agent's owner — can actually file.

Description Counterparty Amount Category USD Value
x402 payment received 0xclient 50 USDT0 Income $50.00
OKB disposal (FIFO lot) 1 OKB Trade +$7.00 gain
Data provider fee 0xdataprovider 3 USDT0 Expense $3.00

The reconciliation problem

A hiring agent might pay a dozen ASPs a hundred times a day. Traditional tax software expects a handful of trades a year, not a stream of sub-dollar machine-to-machine payments — and traditional banking rails weren't built for that pace either. Somebody still has to answer: what was income, what was a personal transfer, what got double-paid by accident, and what's the actual gain or loss. LedgerMind is that somebody.

How a report gets made

1

Submit or auto-ingest

Send transactions directly, or give LedgerMind a wallet address and date range — it pulls real ERC-20 Transfer history straight from X Layer's RPC.

2

Classify

Every transaction is sorted into income, expense, trade, gas fee, transfer, refund, or excluded-disputed — the categories that actually matter for a tax return.

3

Compute cost basis

FIFO, LIFO, or HIFO lot tracking realizes gain and loss on every disposal, lot by lot.

4

Scan for anomalies

Duplicate payments to the same counterparty and disputes gone stale past 30 days get flagged, not buried.

5

Export

JSON for machines, or CSV shaped for a jurisdiction — a real IRS Form 8949 layout, or a general detailed ledger.

What's in the ledger

Automatic ingestion

No hand-assembled transaction JSON required — give it a wallet and a period.

FIFO / LIFO / HIFO

Choose the cost-basis method; every disposal is traced back to the exact lots it consumed.

Anomaly detection

Accidental double-payments and disputes nobody resolved don't slip through quietly.

Jurisdiction-aware export

A real IRS Form 8949 layout for the US, a real Schedule VDA for India — plus labeled general ledgers for Brazil, Vietnam, Nigeria, Ukraine, Indonesia, and Pakistan, each with that country's actual tax treatment. Never dressed up as an official form that doesn't exist.

Audit trail

Every report is backed by a persisted record of its inputs, output, and the payment that settled it — look any of it up by transaction hash.

Gasless for the payer

Payment is an EIP-3009 signature, not a transaction — OKX's facilitator broadcasts it and covers the OKB gas.

Services & pricing

Tax & Compliance Report

Full report: classification, cost basis, and anomaly detection, any supported jurisdiction.

0.2 USDT0

IRS Form 8949 Export

Same engine, output as a real US Form 8949 — per-lot rows, short/long-term split.

0.2 USDT0

Wallet Transaction Ledger Sync

Pulls real transaction history directly from X Layer — no manual data entry.

0.2 USDT0

General Ledger Export

Full transaction and gain/loss ledger for non-US jurisdictions.

0.2 USDT0

Payment Anomaly Check

Just the anomaly scan — duplicate payments and stale disputes, without a full tax report.

0.2 USDT0

Sample Report Preview

See real output — cost basis, gain/loss, anomaly detection — before you pay for anything.

Free
Settlement assetUSDT0 or USDG
NetworkX Layer, mainnet (chain 196)
GasPaid by facilitator
Per report$0.20

Priced and settled via the x402 protocol — a 402 Payment Required challenge, a signed authorization, and settlement, no invoice or account required.

Verified, not promised

SETTLED
ON‑CHAIN

Every payment path has been run against OKX's real facilitator, not a mock — successful payments at different amounts and in both settlement assets, sync and async settlement, and three failure paths: expired signature, wrong amount, and a replayed authorization (confirmed idempotent, not a double-spend). The transaction below is a real settled payment on X Layer mainnet, executed through OKX.AI's own marketplace flow, not a test script.

0x3909a6e505eb0674983657be69963c4cf89b413b25461182ccfd68fc6b827222 — X Layer mainnet (chain 196), status: success

Integration

// Auto-ingest a wallet's real transaction history and get a Form 8949 CSV back
POST /reports/generate
Content-Type: application/json

{
  "walletAddresses": ["0xYourWallet"],
  "periodStart": "2026-01-01T00:00:00.000Z",
  "periodEnd": "2026-12-31T23:59:59.999Z",
  "accountingMethod": "FIFO",
  "jurisdiction": "US-8949",
  "autoIngest": {
    "network": "mainnet",
    "assets": ["USDT0", "USDG"]
  }
}

Want to see it work before paying? /reports/preview is free, unauthenticated, and runs the same engine on a small sample:

// No payment required — capped sample, same cost-basis & anomaly engine
POST /reports/preview
Content-Type: application/json

{}