Skip to main content

Documentation Index

Fetch the complete documentation index at: https://anypay-docs-sdk-0-15-0-updates.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Install

npm install 0xtrails

Add a component

Pick the component that matches your use case and import it from 0xtrails/widget:
import { Fund } from '0xtrails/widget'

export function Deposit() {
  return (
    <Fund
      apiKey="YOUR_API_KEY"
      to={{
        recipient: "0xYourAddress",
        currency: "USDC",
        chain: "base",
      }}
    />
  )
}
User deposits any token from any chain. Arrives as USDC on Base.
Get an API key: Sign up and create an API key on the Trails Dashboard

Components

ComponentUse case
<Pay />Accept a fixed payment (e.g. 25 USDC) to a recipient
<Fund />Deposit funds into a wallet, chain, or protocol
<Swap />Cross-chain token exchange
<Withdraw />Off-ramp or move funds out
<Earn />DeFi yield deposits
All are imported from 0xtrails/widget.

Starter Templates

Live Demo

Try it now

React

Starter kit

Next.js

Starter kit

Next Steps

Pay

Stablecoin payments, merchant integration

Swap

Cross-chain token swaps

Fund

Protocol deposits, chain onboarding, built-in onramps

Earn

Integrated DeFi yield deposits

Full reference: SDK Configuration · API Reference · Hooks