Production Ready • Cross-Chain Paymentsv2.0

Accept payments from
any blockchain

Enable cross-chain payments from Ethereum, Polygon, BNB Chain → Solana, Sonic, Eclipse. One SDK, all networks, zero hassle.

cross-chain-payment.js
import { SVMPay } from 'svm-pay'

// Accept USDC from Ethereum → Solana
const payment = await SVMPay.crossChain({
  from: { network: 'ethereum', token: 'USDC' },
  to: { network: 'solana', address: 'DezX...' },
  amount: 100
})

console.log('Payment completed:', payment.hash)
assembly-bpf-program.ts
import { AssemblyBPFSDK, BPFTemplates, SVMNetwork } from 'svm-pay/assembly-bpf'

// Low-level BPF program development
const sdk = new AssemblyBPFSDK({ network: SVMNetwork.SOLANA })

// Create payment processor using template
const { metadata, instructions } = BPFTemplates.createPaymentProcessor({
  networks: [SVMNetwork.SOLANA, SVMNetwork.SONIC]
})

// Compile to optimized BPF bytecode
const result = await sdk.compile(instructions, metadata)
console.log('✅ BPF Program compiled:', result.bytecode.length, 'bytes')
View on GitHub
6 EVM Networks
4 SVM Networks
2 Bridge Partners

Trusted by developers worldwide

Join thousands of developers building the future of cross-chain payments

$15.70M
Total Volume Processed
12.5K
Active Developers
850K
Cross-Chain Transactions
99.97%
Success Rate

Supported networks and growing

Ethereum
Polygon
BNB Chain
Arbitrum
Solana
Sonic
Eclipse
s00n

Everything you need to build
cross-chain payments

A complete toolkit for accepting payments across any blockchain with enterprise-grade reliability

Lightning Fast

Cross-chain transactions complete in under 5 minutes with optimized bridge routing.

Battle Tested

Built on proven bridge infrastructure with comprehensive security audits and monitoring.

Developer First

TypeScript-native SDK with comprehensive docs, examples, and stellar developer experience.

Multi-Network

Support for 10+ networks including Ethereum, Polygon, BNB Chain, Solana, and more.

Bridge Agnostic

Automatically routes through Wormhole, Allbridge, and other bridges for optimal rates.

Multi-Token

Native support for USDC, USDT, WETH, WBTC and other major tokens across all networks.

Assembly-BPF SDK

Low-level BPF program development with Assembly abstractions for advanced use cases.

Perfect for any use case

From simple e-commerce to complex DeFi protocols, SVM-Pay adapts to your needs

🛒

E-commerce

Accept payments from any network, receive on your preferred chain

📱

Subscriptions

Recurring payments across different blockchains seamlessly

🌾

DeFi

Bridge assets for yield farming, lending, and other DeFi activities

🎮

Gaming

In-game purchases and rewards across multiple gaming ecosystems

Ready to get started?

Join thousands of developers building the future of payments. Get up and running in minutes.

Comprehensive
cross-chain infrastructure

Built on proven infrastructure with support for major networks, bridges, and tokens

EVM Networks

Ethereum
Fees: ~$15
Time: 15 min
Polygon
Fees: ~$0.01
Time: 2 min
BNB Chain
Fees: ~$0.30
Time: 3 min
Arbitrum
Fees: ~$2
Time: 10 min
Optimism
Fees: ~$1
Time: 7 min
Avalanche
Fees: ~$0.50
Time: 5 min

SVM Networks

Solana
Fees: ~$0.0001
Time: 1 min
Sonic
Fees: ~$0.0001
Time: 1 min
Eclipse
Fees: ~$0.0001
Time: 1 min
s00n
Fees: ~$0.0001
Time: 1 min

Trusted Bridge Partners

Wormhole

Industry-leading cross-chain bridge with $8B+ volume

Networks
30+ networks
Time
5-15 min
Fees
0.1-0.5%
Allbridge

Fast and cost-effective bridge for smaller transfers

Networks
15+ networks
Time
3-8 min
Fees
0.05-0.3%

Major Token Support

💰
USDC
10+ networks
🪙
USDT
8+ networks
💎
WETH
6+ networks
WBTC
5+ networks

How Cross-Chain Payments Work

🌐

Source Network

User initiates payment

🌉

Bridge

Secure cross-chain transfer

💰

Destination

Funds received

Assembly-BPF SDK
Tutorials

Learn how to build efficient, low-level BPF programs for SVM networks with step-by-step tutorials

Hello World BPF Program

Create your first BPF program with Assembly-BPF SDK

Beginner⏱️ 15 minutes
// Your first Assembly-BPF program
import { AssemblyBPFSDK, examples } from 'svm-pay/assembly-bpf'

const createHelloWorld = async () => {
  // Use the built-in example
  const { sdk, compilationResult, metadata } = await examples.createHelloWorld()
  
  console.log('✅ Hello World compiled successfully')
  console.log('📜 Assembly:')
  console.log(compilationResult.assembly)
  
  // Output:
  // 0000: ldi     r1, 1745172467 ; Debug: Hello from SVM-Pay Assembly-BPF SDK!
  // 0001: call    1 ; Log debug message
  // 0002: ldi     r0, 0 ; Return success
  // 0003: exit    r0 ; Exit program
}

createHelloWorld()

Payment Processor BPF Program

Build a payment processor with fee handling

Intermediate⏱️ 45 minutes
// Payment processor with fees
import { 
  AssemblyBPFSDK, 
  BPFTemplates, 
  SVMNetwork,
  BPFProgramConfig 
} from 'svm-pay/assembly-bpf'

const createPaymentProcessor = async () => {
  // Configure SDK
  const config: BPFProgramConfig = {
    network: SVMNetwork.SOLANA,
    debug: true
  }
  
  const sdk = new AssemblyBPFSDK(config)
  
  // Create payment processor template
  const { metadata, instructions } = BPFTemplates.createPaymentProcessor({
    networks: [SVMNetwork.SOLANA, SVMNetwork.SONIC],
    feeRate: 0.01, // 1% fee
    maxAmount: 1000000 // Max 1M tokens
  })
  
  // Compile the program
  const result = await sdk.compile(instructions, metadata)
  
  if (result.success) {
    console.log('✅ Payment processor compiled successfully')
    console.log(`📊 Instructions: ${instructions.length}`)
    console.log(`💾 Bytecode size: ${result.bytecode?.length} bytes`)
    console.log(`⚡ Estimated compute units: ${result.computeUnits}`)
  }
  
  return result
}

Cross-Chain Bridge Program

Implement cross-chain asset bridging with validation

Advanced⏱️ 1.5 hours
// Cross-chain bridge implementation
import { 
  AssemblyBPFSDK,
  BPFTemplates,
  BPFProgramBuilder,
  BPFHelpers,
  SVMNetwork
} from 'svm-pay/assembly-bpf'

const createCrossChainBridge = async () => {
  const sdk = new AssemblyBPFSDK({ 
    network: SVMNetwork.SOLANA,
    debug: true 
  })
  
  // Create bridge template
  const { metadata, instructions } = BPFTemplates.createCrossChainBridge({
    supportedNetworks: [
      SVMNetwork.SOLANA,
      SVMNetwork.SONIC,
      SVMNetwork.ECLIPSE,
      SVMNetwork.SOON
    ],
    bridgeFee: 0.005, // 0.5% bridge fee
    minAmount: 1000, // Minimum 1000 tokens
    maxAmount: 10000000 // Maximum 10M tokens
  })
  
  // Build custom program with additional validation
  const builder = sdk.createProgram(metadata)
  
  builder
    .addInstructions(BPFHelpers.createDebugLog('Starting bridge operation'))
    .addValidator() // Add validation layer
    .addInstructions(instructions) // Add bridge logic
    .addInstructions(BPFHelpers.createDebugLog('Bridge operation completed'))
  
  // Compile with optimizations
  const result = await builder.compile({
    optimize: true,
    targetNetwork: SVMNetwork.SOLANA
  })
  
  console.log('🌉 Cross-chain bridge compiled:')
  console.log(`📊 Instructions: ${result.instructionCount}`)
  console.log(`💾 Bytecode: ${result.bytecode?.length} bytes`)
  console.log(`⚡ Compute units: ${result.computeUnits}`)
  
  return result
}

Custom Memory Management

Advanced memory management and syscall handling

Expert⏱️ 2 hours
// Advanced memory management
import { 
  AssemblyBPFSDK,
  BPFMemoryManager,
  BPFSyscallHelper,
  BPFInstruction,
  BPFRegister,
  SVMNetwork
} from 'svm-pay/assembly-bpf'

const createAdvancedProgram = async () => {
  const sdk = new AssemblyBPFSDK({ network: SVMNetwork.SOLANA })
  
  // Create custom memory structures
  const paymentStruct = BPFMemoryManager.createStruct([
    { name: 'amount', type: 'u64', offset: 0 },
    { name: 'recipient', type: 'pubkey', offset: 8 },
    { name: 'fee', type: 'u64', offset: 40 },
    { name: 'timestamp', type: 'u64', offset: 48 }
  ])
  
  // Allocate stack space
  const stackPtr = BPFMemoryManager.allocateStack(128)
  
  // Create syscall helper
  const syscalls = new BPFSyscallHelper(SVMNetwork.SOLANA)
  
  // Build program with custom instructions
  const instructions = [
    // Load payment amount
    {
      opcode: BPFInstruction.LOAD_IMM,
      dst: BPFRegister.R1,
      immediate: 1000000, // 1M tokens
      comment: 'Load payment amount'
    },
    
    // Validate amount using syscall
    syscalls.validateAmount(BPFRegister.R1),
    
    // Store to memory structure
    {
      opcode: BPFInstruction.STORE_MEM,
      dst: BPFRegister.R10,
      src: BPFRegister.R1,
      offset: paymentStruct.fields.amount.offset,
      comment: 'Store amount to payment struct'
    },
    
    // Get current timestamp
    syscalls.getCurrentTimestamp(BPFRegister.R2),
    
    // Store timestamp
    {
      opcode: BPFInstruction.STORE_MEM,
      dst: BPFRegister.R10,
      src: BPFRegister.R2,
      offset: paymentStruct.fields.timestamp.offset,
      comment: 'Store timestamp'
    },
    
    // Process payment
    syscalls.processPayment(stackPtr),
    
    // Return success
    {
      opcode: BPFInstruction.LOAD_IMM,
      dst: BPFRegister.R0,
      immediate: 0,
      comment: 'Return success'
    },
    
    {
      opcode: BPFInstruction.EXIT,
      src: BPFRegister.R0,
      comment: 'Exit program'
    }
  ]
  
  const metadata = {
    name: 'advanced-payment-processor',
    version: '1.0.0',
    description: 'Advanced payment processor with custom memory management',
    networks: [SVMNetwork.SOLANA],
    computeUnits: 1000
  }
  
  const result = await sdk.compile(instructions, metadata)
  console.log('🔧 Advanced program compiled:', result.success)
  
  return result
}

Start building in
minutes, not hours

Everything you need to integrate cross-chain payments: comprehensive docs, live examples, and developer tools

Quick Start Guide

1

Install

npm install svm-pay

Add SVM-Pay to your project with npm, yarn, or pnpm

2

Import

import { SVMPay } from 'svm-pay'

Import the main library with full TypeScript support

3

Execute

await SVMPay.crossChain({ ... })

Start accepting cross-chain payments immediately

Code Examples

Simple Payment

Accept USDC from Ethereum to Solana

TypeScript
simple-payment.ts
import { SVMPay, EVMNetwork, SVMNetwork } from 'svm-pay'

const payment = await SVMPay.crossChain({
  from: {
    network: EVMNetwork.ETHEREUM,
    token: 'USDC'
  },
  to: {
    network: SVMNetwork.SOLANA,
    address: 'DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'
  },
  amount: 100
})

console.log('Payment hash:', payment.hash)

React Integration

Building a payment form with React

React
react-integration.ts
import { useSVMPay } from 'svm-pay/react'

function PaymentForm() {
  const { executePayment, loading, error } = useSVMPay()
  
  const handlePayment = async () => {
    await executePayment({
      from: { network: 'polygon', token: 'USDC' },
      to: { network: 'solana', address: walletAddress },
      amount: 50
    })
  }
  
  return (
    <button onClick={handlePayment} disabled={loading}>
      {loading ? 'Processing...' : 'Pay with Polygon'}
    </button>
  )
}

Advanced Configuration

Custom bridge selection and monitoring

TypeScript
advanced-configuration.ts
import { CrossChainPaymentManager } from 'svm-pay'

const manager = new CrossChainPaymentManager({
  bridges: ['wormhole', 'allbridge'],
  monitoring: true,
  fallback: true
})

const payment = await manager.executePayment({
  sourceNetwork: EVMNetwork.BNB_CHAIN,
  destinationNetwork: SVMNetwork.SONIC,
  amount: '1000',
  token: '0x...',
  recipient: 'wallet_address',
  bridgePreference: 'fastest'
})

// Monitor payment status
payment.on('status', (status) => {
  console.log('Payment status:', status)
})

Developer Resources

Ready to revolutionize payments?

Join the cross-chain payment revolution. Install SVM-Pay and start building the future of money transfer.

Try Demo