Complete guide to setting up destinations and sending messages with micro-bonds
Create endpoints that require micro-bonds for message delivery
HTTP POST to any URL
Send formatted emails
SMS notifications
Set the micro-bond amount senders must pay
Monitor incoming messages and their status
Within flagging window
Bond returned to sender
Bond kept by you
Flag messages as spam to slash the bond
You need USDC (USD Coin) to pay micro-bonds
Anti-Spam Relay uses USDC (USD Coin) on Base network. You cannot use regular ETH or other tokens.
Buy USDC on Coinbase, Binance, or other exchanges
Withdraw USDC to Base network (not Ethereum mainnet)
Use Base Bridge to move USDC from Ethereum to Base
Send messages to destinations using the x402 protocol
The dashboard automatically handles the wallet transaction flow. Just connect your wallet, enter your message, and the system will guide you through the payment process with clear step-by-step instructions.
curl -X POST https://relay.app/api/relay/send \
  -H "Content-Type: application/json" \
  -d '{"destinationId":"<ID>","body":{"msg":"hello"}}'1. Connect wallet with USDC 2. Select destination 3. Enter message 4. Click "Send Message" 5. Approve & pay in wallet 6. Message delivered!
Understanding the x402 payment protocol
Send message without payment
Receive bond amount and payment details
Send USDC to the specified address
Include transaction hash in headers
Your message is forwarded to the destination
Your bond is automatically refunded if not flagged as spam
USDC provides price stability for micro-bonds. ETH's price volatility would make bond amounts unpredictable. USDC on Base network has low fees and fast transactions, making it perfect for micro-payments.
You'll need to add USDC to your wallet before sending messages. The system will reject your request if you don't have enough USDC to cover the bond amount. Check the 402 response headers for the exact amount needed.
The flagging window is configurable by the destination owner, typically 1-168 hours (1 week). Your bond will be automatically refunded after this window expires if not flagged as spam.
No, all messages require a micro-bond payment. This is the core anti-spam mechanism. However, legitimate senders get their bonds refunded, so the effective cost is zero for non-spam messages.