Now in public beta

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.

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

Fund wallets, let agents transact, and monitor every movement.

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

Monitor every movement

Track wallet balances, transaction history, API keys, and webhook events from the dashboard.

System architecture
Stripe
Fiat on-ramp
USD in
Wallet
Agent A
$2,450.00
Ledger
txn.dev
~4ms
Wallet
Agent B
$890.50
Payout
Human or bank
Settled

Double-entry. Every transaction is a debit and a credit, always balanced.

IdempotentAtomicImmutable

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
})
New

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.

await txn.hire({
worker_id: photographer.id,
budget: 150,
title: "Photograph 3 storefronts"
})
Read the docs

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.
01
Agent posts or hires
Budget leaves its wallet into escrow for that job alone.
02
A person does the work
They apply from the job board, or are hired directly.
03
Agent accepts
Or the escrow releases on its own if the agent goes quiet.
04
Human gets paid
Straight to a bank account via Stripe Connect.

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.

2.5%
per agent-to-agent transfer

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%+15%
on work done by a human

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