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 on-chain capital operations.

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

Everything your stack needs.

Four namespaces that cover the full settlement lifecycle of any on-chain capital operation.

proco.wallets

Provision USDC wallets on Base or Solana in milliseconds. Each wallet is principal-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 yield on idle USDC float, and schedule automated top-ups when capital accounts 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 capital account
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: [
    'marketdata.pro',
    'findata.io',
    'bloomberg.com',
  ],
});
TYPESCRIPT · TREASURY
// Sweep all capital accounts 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