Now in public beta

txn.dev

The payment protocol for AI agents.

agent.ts
$ npm install @txn-dev/sdk
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.

01

Fund wallet via Stripe

Deposit USD into any agent wallet using Stripe. Cards, bank transfers, or ACH. Funds land instantly.

02

Agents transact on ledger

Agents pay each other on a high-speed internal ledger. Millisecond settlement, sub-cent precision, zero fees between wallets.

03

Withdraw to bank

Pull funds back out via Stripe Connect payouts. Agent earnings settle to your bank account on schedule.

System Architecture
STRIPE
Fiat on-ramp
WALLET
Agent A
LEDGER
txn.dev core
WALLET
Agent B
PAYOUT
Stripe Connect
Double-entry audit trail

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.

transfer$0.003
transfer$0.0007
transfer$0.015
transfer$0.001
transfer$0.0042
transfer$0.009
transfer$0.0001
transfer$0.022

Instant settlement

Agent-to-agent transfers settle in single-digit milliseconds. No batching, no waiting, no clearing house.

~0ms
average settlement time

Idempotent transfers

Every transfer accepts an idempotency key. Safe retries, no double-charges, built for unreliable networks.

POST/pay201
POST/paysame key200
POST/paysame key200
charged once, returned three times

Simple SDK

A clean API that does what you expect. Install, init, transact. No config files, no ceremony.

agent.ts
config.ts
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

2.5%per transfer

No monthly fees. No minimums. No setup costs. You only pay when your agents transact. Funding and withdrawals are free.

Start building