The ledger for crypto and AI agents

The ledger built for eighteen decimals.

A real-time, double-entry ledger for crypto and the AI agent economy. Post a single wei or a fraction-of-a-cent tool call and it is stored exactly: never rounded, never batched.

Illustrative balance that updates to eighteen decimal places as agents pay per call.

Live balance revenue:tool-calls
Illustrative postings

Built on a foundation you can trust

  • PostgreSQL
  • Redis
  • Temporal
The film · 1:36

One tool call, followed through the ledger.

One agent tool call, 0.000412 USDC from agent:researcher-07 to tool:web-search, followed through Ledga. A two-decimal ledger stores it as 0.00; Ledga stores 0.000412000000000000. After 1,000,000 calls Ledga holds 412.000000000000000000 USDC, while the two-decimal ledger holds 0.00 and leaves 412.00 USDC off the books. Each ledger keeps its own precision: one wei is 0.000000000000000001 ETH, one lamport is 0.000000001 SOL, one sat is 0.00000001 BTC and one penny is 0.01 GBP. The call posts as one balanced transaction: 1020 USDC_WALLET is debited 0.000412000000000000; 3100 TOOL_PROVIDER is credited 0.000329600000000000, 2100 PLATFORM_FEE 0.000041200000000000 and 4000 REVENUE 0.000041200000000000. Sent again with the same idempotency key, call-8f3a91c, it is posted once. The tool provider's balance, 3100 TOOL_PROVIDER, rises by 0.0003296 USDC as each call is written and reads 1,388.911657600000000000 settled, with 0.0121952 USDC pending and a 1,000 USDC payout encumbered for 2026-11-01; as of 2026-09-30 it read 902.233196800000000000. A posting entered as 0.412 USDC is reversed by an equal and opposite transaction and re-posted at 0.000412 USDC, all three on correlation ID call-91d27e. A string links USDC, ETH, GBP and USD ledgers for customer CUST-001; converting 100 USDC to 74.62 GBP posts both legs at once, usdc-main to 150.000412000000000000 and gbp-main to 1,324.62, with the 0.7462 rate recorded for audit. The same ledger carries transaction codes, account sets, FX rates, reports, attributes and batches, and runs on PostgreSQL, Redis and Temporal.

Built for

Crypto first. Agents next. Fiat too.

01 · Web3 + tokens

Every token, to the last unit

ETH in wei, BTC in sats, SOL in lamports, up to 18 decimal places per ledger. On-chain ingestion with an offline 360° view.

wallet:0x9c1e DR
0.000000000000000001 ETH
02 · AI agents + MCP

Fractions of a cent, per call

Pay-per-call tools, MCP servers and agent-to-agent payments. Debit every call and read the balance back the moment it is written.

agent:planner-02 → agent:coder-11
0.000150000000000000 USDC
03 · Credit-based SaaS

Credits that never drift

Prepaid credits, usage billing and subscriptions. Burn credits per token or per request with no rounding drift.

credits:acme-ai → model:llm-large
0.000003500000000000 CRD

Running fiat as well? The same ledger posts GBP and USD alongside your tokens.

For developers

Transaction codes

Define complex financial movements once, execute them with a single API call.

POST /ledgers/{id}/trancodes
{
  "code": "MARKETPLACE_SALE",
  "entries_template": {
    "entries": [
      { "account": "1000", "type": "debit",
        "amount": "{params.amount}" },
      { "account": "2100", "type": "credit",
        "amount": "{percentage({params.amount}, 2.5)}" },
      { "account": "2200", "type": "credit",
        "amount": "{percentage({params.amount}, 0.5)}" },
      { "account": "3100", "type": "credit",
        "amount": "{percentage({params.amount}, 77)}" },
      { "account": "4000", "type": "credit",
        "amount": "{subtract({params.amount}, ...)}" }
    ]
  }
}

£100 sale breakdown

Balanced
1000CASH
100.00—
2100PLATFORM_FEE
—2.50
2200VAT_PAYABLE
—0.50
3100VENDOR_SETTLE
—77.00
4000REVENUE
—20.00
TOTAL
100.00100.00
DEBITCREDIT

Start posting at eighteen decimals

No credit card required · Free tier available

Cookie settings

We use cookies to understand how the site is used and to improve your experience. Read our cookie policy.