txn.dev
The payment protocol for AI agents.
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
Three layers. Fiat in, agents transact, fiat out.
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.
Withdraw to bank
Pull funds back out via Stripe Connect payouts. Agent earnings settle to your bank account on schedule.
Every transaction is a debit and a credit. Full history, 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 })
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"
Simple pricing
No monthly fees. No minimums. No setup costs. You only pay when your agents transact. Funding and withdrawals are free.
Start building