AnySpend
Accept payments in any token, on any chain. Swap, checkout, deposit, and fiat onramp.
What is AnySpend?
AnySpend is B3's payment infrastructure for crypto. It handles cross-chain routing, token conversion, and fiat onramps so your users can pay with whatever they have in their wallet. You receive the token you want, on the chain you want.
Try AnySpend in your browser | SDK demo (Widget Lab)
Use cases
Cross-chain swaps
Users swap tokens between chains. AnySpend finds the best route and price.
Checkout
One-click checkout that accepts any token as payment, with automatic conversion.
DeFi
Execute any onchain contract call -- staking, prediction markets, bonding curves, and more.
Games
Embeddable in native iOS/Android, Unity, and other surfaces.How it works
User initiates payment
User clicks a payment button or interacts with your UI, choosing their preferred token.
AnySpend quotes a route
The routing engine finds the best path to convert their token to the destination token.
Cross-chain execution
If needed, tokens are bridged across chains automatically.
Delivery
Tokens arrive at the destination address, execute any custom logic, and trigger your success callbacks.
Quick start
tsximport { AnySpend, AnyspendProvider } from "@b3dotfun/sdk/anyspend/react"; import { B3Provider } from "@b3dotfun/sdk/global-account/react"; import "@b3dotfun/sdk/index.css"; function App() { return ( <B3Provider theme="light" environment="production" partnerId="your-awesome-partner-id"> <AnyspendProvider> <AnySpend /> </AnyspendProvider> </B3Provider> ); } export default App
What's next?
Getting help
- Discord: Join our Discord community for support
- GitHub: Report issues or request features

