Settlement Layer Integration
Settlement layer integration allows you to connect payment processors directly to your TokenMesa contract, ensuring all service revenue automatically flows through your token economics.
Overview
Instead of receiving payments to a traditional wallet, you configure your TokenMesa contract address as the payment recipient in your settlement layer. This enables automatic processing of all revenue through burn mechanisms, vesting schedules, and revenue vesting buybacks.
Supported Settlement Layers
x402 Protocol
x402 is a protocol for AI agent micropayments. Configure your TokenMesa contract as the payment destination to automatically process AI service revenue.
Setup Steps:
Deploy your TokenMesa contract following Launch Your First Token
In your x402 configuration, set the TokenMesa contract address as the payment recipient
All x402 payments will automatically flow through your token economics
Coinbase Commerce
Coinbase Commerce enables businesses to accept cryptocurrency payments. Set your TokenMesa contract as the recipient address to process all commerce revenue through your token economics.
Setup Steps:
Deploy your TokenMesa contract following Launch Your First Token
In Coinbase Commerce settings, set the TokenMesa contract address as the recipient
All commerce payments will automatically trigger token economics processing
Other Settlement Layers
Any payment processor that supports on-chain destination addresses can integrate with TokenMesa:
Crypto Payment Gateways: Set TokenMesa contract as recipient wallet
Smart Contract Integrations: Send payments directly to TokenMesa contract
Custom Payment Systems: Route revenue to TokenMesa address
How It Works
Once configured, the payment flow works automatically:
User pays for service through your settlement layer (x402, Coinbase Commerce, etc.)
Payment routes to your TokenMesa contract address
Service provider's backend detects payment on-chain
Service delivered immediately to user
TokenMesa processes token economics in background:
Vests USDC revenue over your configured schedule (service tokens skip vesting)
Executes revenue vesting buybacks with slippage protection (when withdrawal triggered)
Burns tokens based on your burn rate
Distributes remaining service tokens to recipient address
→ Learn more about automated revenue processing
Next Steps
After integrating your settlement layer:
Monitor Revenue Flow - Use the TokenMesa dashboard to track incoming payments
Manage Tokenomics - Adjust burn rates and vesting schedules as needed
Trigger Withdrawals - Anyone can execute withdrawals to process vested revenue through token economics
Last updated