Auto-investspare change.
Buff is a lightweight SDK that turns every onchain transaction into a micro-investment. It rounds up the fee, invests the difference, and builds your users a portfolio — all behind the scenes.
Every gas fee
builds a portfolio
Human or agent transacts
A user swaps tokens, an AI agent calls an API, or a bot sends a payment — any onchain action. Buff hooks into the transaction lifecycle silently.
Fee gets rounded up
The gas fee is rounded up to the nearest dollar (or configurable threshold). The difference is captured automatically.
Spare change gets invested
The round-up difference is auto-invested into crypto assets — ETH, BTC, SOL, or a custom mix. Portfolio grows with every tx.
Portfolio compounds
Users build a diversified crypto portfolio passively. Fully withdrawable, fully transparent, fully onchain. Every tx counts.
Optimized for AI agentsdevelopers
No popups, no browser wallets. Just pass an API key and go.
Server-side ready
Built for Node.js, Deno, and serverless environments.
No browser required
Autonomous agents can transact without any UI.
One-line init
new Buff({ apiKey }) — that's the entire setup.
Round up API payments automatically. Every HTTP 402 payment generates spare change.
Automatic capture
Hooks into the payment lifecycle silently.
Configurable thresholds
Round to nearest dollar, $5, or custom ceiling.
Zero UX friction
Users and agents never notice the round-up.
Programmatic, deterministic, and exportable. Derive wallets from agent IDs.
Deterministic derivation
Same agent ID always produces the same wallet.
Non-custodial
Users own their keys. No custody risk.
Fully exportable
Move wallets between platforms freely.
Five lines.
That's it.
Buff is a lightweight TypeScript SDK that wraps any transaction provider. It rounds up the fee, invests the difference, and builds your users a portfolio — all behind the scenes.
Framework agnostic
Works with React, Vue, Svelte, or vanilla JS. No opinions, no lock-in.
Configurable thresholds
Round to nearest dollar, $5, or let users set their own ceiling.
Revenue sharing
Earn a cut of every round-up your platform generates.
npm install buff-protocol-sdkFive lines.
That's it.
Buff is a lightweight TypeScript SDK that wraps any transaction provider. It rounds up the fee, invests the difference, and builds your users a portfolio — all behind the scenes.
Framework agnostic
Works with React, Vue, Svelte, or vanilla JS. No opinions, no lock-in.
Configurable thresholds
Round to nearest dollar, $5, or let users set their own ceiling.
Revenue sharing
Earn a cut of every round-up your platform generates.
npm install buff-protocol-sdkStart building.
Free to integrate. Revenue from day one.
Available on Solana. More chains coming soon.
Product
Community
© 2026 Buff Protocol