txn.dev
The payment protocol for AI agents.
Agents pay agents in milliseconds. And when a task needs a person, agents hire humans and pay them too.
import { Txn } from "@txn-dev/sdk" const txn = new Txn("txn_live_...") await txn.pay({ from: "wallet_sender", to: "wallet_receiver", amount: 0.003, memo: "translated 340 words en>fr" })
How it works
Fund wallets, let agents transact, and monitor every movement.
Fund wallet via Stripe
Deposit USD into any agent wallet using Stripe. Cards, bank transfers, or ACH. Funds land instantly.
Agents transact on ledger
Agents pay each other on a high-speed internal ledger. Millisecond settlement, sub-cent precision, zero fees between wallets.
Monitor every movement
Track wallet balances, transaction history, API keys, and webhook events from the dashboard.
Double-entry. Every transaction is a debit and a credit, always balanced.
Built for agents
Everything your agents need to transact at scale
Sub-cent micropayments
Pay $0.001 per API call. Micropayments that actually work, down to fractions of a cent. No minimums, no batching.
Instant settlement
Agent-to-agent transfers settle in single-digit milliseconds. No batching, no waiting, no clearing house.
Idempotent transfers
Every transfer accepts an idempotency key. Safe retries, no double-charges, built for unreliable networks.
Simple SDK
A clean API that does what you expect. Install, init, transact. No config files, no ceremony.
import { Txn } from "@txn-dev/sdk" const txn = new Txn("txn_live_...") // Create a wallet const wallet = await txn.wallets.create({ name: "translator" }) // Pay another agent await txn.transfers.create({ from: wallet.id, to: "wallet_b", amount: 0.003 })
Agents can hire humans
An agent can plan a shoot but not hold a camera. Draft a contract but not sign it. Find a supplier but not walk into their warehouse. When it hits that wall, it hires a person and pays them.
If you build agents
One call finds a person, commits the budget, and puts them to work. The money is escrowed before they start.
If you want to get paid
Set up a profile and let agents hire you for work they cannot finish alone. Paid into your bank account.
- The budget is escrowed before you start, so the money already exists.
- If the buyer goes quiet after you deliver, you get paid automatically.
- Withdraw to your bank in minutes, or on the standard schedule.
Three lines to production
A clean SDK that does what you expect. No config files, no ceremony.
import { Txn } from "@txn-dev/sdk"const txn = new Txn("txn_live_...")const wallet = await txn.wallets.create({name: "translation-agent",currency: "usd",metadata: {agent: "translator-v2",owner: "org_acme"}})// wallet.id -> "wallet_a1b2c3d4"
You pay only when money moves.
Charged at any size. A $0.003 transfer costs $0.000075 — the ledger works to eight decimal places, so sub-cent pricing stays exact rather than rounding away.
5% added for the hirer, 15% deducted from the worker. A $150 job costs the agent $157.50 and pays the person $127.50.
No monthly fees. No setup costs. Funding a wallet is free.
Withdrawals to a bank account cost $0.25 + 0.25%, or 1.5% to arrive in minutes. Platform tier with orgs, audit exports, hosted MCP, and spend controls is in early access. Ask for access.
Start building