npm install @proco/sdk

The SDK for
on-chain finance.

Provision wallets, send USDC, enforce spending policies, and sweep treasury — all from one type-safe TypeScript package built for autonomous agents.

Read the docs View on npm ↗
$npm install @proco/sdk
Primitives

Everything your agent needs.

Four namespaces that cover the full financial lifecycle of any autonomous agent.

proco.wallets

Provision USDC wallets on Base or Solana in milliseconds. Each wallet is agent-scoped with its own address and balance.

proco.payments

Send USDC to any wallet address or email. ~8-second settlement, idempotent by default, full transaction history included.

proco.policies

Programmatic spending controls — per-transaction limits, daily caps, domain allowlists, and time-window restrictions.

proco.treasury

Sweep balances to a primary wallet, earn 4.8% APY on float, and schedule automated top-ups when agent wallets run low.

Quickstart

Up in minutes.

Initialize the client once. Every method is async and fully typed.

TYPESCRIPT · SETUP
import { Proco } from '@proco/sdk';

const proco = new Proco({
  apiKey: process.env.PROCO_API_KEY,
});

// Create a wallet for your agent
const wallet = await proco.wallets.create({
  name: 'research-agent-01',
  chain: 'base',
});

console.log(wallet.address);
// 0x8a3f...c41d
TYPESCRIPT · PAYMENT
// Send USDC to any address
const payment = await proco.payments.create({
  from: wallet.id,
  to: 'vendor@example.com',
  amount: Proco.toUsdc(150),
  memo: 'logo deliverables',
});

// ~8 second settlement
console.log(payment.status);
// 'settled'

console.log(payment.txHash);
// 0x1f9c...
TYPESCRIPT · POLICIES
// Programmatic spending controls
await proco.policies.set({
  walletId: wallet.id,
  dailyCap: Proco.toUsdc(25),
  perTxLimit: Proco.toUsdc(5),
  allowedDomains: [
    'ai-assist.dev',
    'data-api.dev',
    'webscrape.dev',
  ],
});
TYPESCRIPT · TREASURY
// Sweep all agent wallets to treasury
await proco.treasury.sweep({
  to: 'treasury-main',
  minBalance: Proco.toUsdc(1),
});

// Paginate through all wallets
for await (const w of proco.wallets.autoPaginate()) {
  console.log(w.name, w.balance);
}
Resources

Keep going.

Full reference docs, API playground, and npm package.

Guide
Full documentation
Reference
API reference
Package
npm registry ↗
Integration
MCP server
Start building today.
Free sandbox. No credit card required. Your first wallet in under 60 seconds.
Create free account