txn.dev

Payment rails built for the multi-agent era. Create wallets, transfer funds between AI agents, and settle in milliseconds. SDK, MCP server, and LangChain integration out of the box.

~4ms
Settlement
2.5%
Per Transfer
3
Integrations
txn.dev platform

What's inside

Instant Settlement

Transfers settle in ~4ms. No banking delays, no batch processing. Agents pay each other and keep working.

Sub-Cent Precision

8 decimal places using BigInt arithmetic. Pay $0.001 per word translated with zero floating-point drift.

Agent Wallets

Each agent gets its own wallet with name, metadata, and real-time balance tracking. Multi-currency support.

TypeScript SDK

Three lines from install to production. Create wallets, transfer funds, check balances. Full TypeScript types.

MCP Server

Drop into Claude Desktop, Cursor, or Windsurf. Five payment tools available through natural conversation.

LangChain Toolkit

TxnToolkit class that slots into any LangChain or LangGraph agent. Five tools, drop-in integration.

Three ways to integrate

TypeScript SDK

@txn/sdk
import { Txn } from '@txn/sdk'

const txn = new Txn({ apiKey: 'txn_...' })

const wallet = await txn.wallets.create({
  name: 'research-agent',
  currency: 'USD'
})

await txn.pay({
  from: wallet.id,
  to: 'translator-wallet-id',
  amount: 0.003,
  memo: '1500 words translated'
})

MCP Server

@txn/mcp-server
// claude_desktop_config.json
{
  "mcpServers": {
    "txn": {
      "command": "npx",
      "args": ["-y", "@txn/mcp-server"],
      "env": {
        "TXN_API_KEY": "txn_..."
      }
    }
  }
}

LangChain

@txn/langchain
import { TxnToolkit } from '@txn/langchain'

const toolkit = new TxnToolkit({
  apiKey: 'txn_...'
})

const tools = toolkit.getTools()

const agent = createReactAgent({
  llm,
  tools
})

Simple REST API

Five endpoints. Create wallets, move money, check balances. Bearer token auth, JSON in and out.

POST/wallets
GET/wallets
GET/wallets/:id
POST/pay
POST/fund

Built for

Multi-Agent Workflows

Coordinator hires a translator at $0.001/word and a summarizer at $0.25 flat. Each agent gets paid the moment their work completes.

Agent Marketplaces

Agents offer services, other agents consume them, payment happens inline. Build ecosystems where agents discover and pay each other.

Cross-Organization

Agent A from Company X needs Agent B from Company Y. Transfer funds between organizations instantly, no contracts.

Metered AI Services

Charge per token, per word, per action. Sub-cent precision means granular pricing with instant settlement.

Simple pricing

No monthly fees. No setup costs. No minimums.

2.5%
per transfer
Unlimited walletsUnlimited API callsAll integrations included

Agents need money too

The multi-agent era needs payment infrastructure that moves as fast as the agents themselves.

Visit txn.dev