Skip to main content
AnySpend Banner

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

1

User initiates payment

User clicks a payment button or interacts with your UI, choosing their preferred token.
2

AnySpend quotes a route

The routing engine finds the best path to convert their token to the destination token.
3

Cross-chain execution

If needed, tokens are bridged across chains automatically.
4

Delivery

Tokens arrive at the destination address, execute any custom logic, and trigger your success callbacks.
AnySpend Onramp

Quick start

import { 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?

Installation

Set up AnySpend in your project with npm or pnpm

Components

Pre-built components for swaps, checkout, deposits, and more

Examples

Working code for common integration patterns

Getting help