Docs
Create Payment Link
Web
https://sol-pay.co/pay/123
Solana Mobile (Tap to Pay & IAP)
agent://pay/123
  • 123: Unique identifier for the payment link - they are created in the web/mobile app
For NFC tags (Tap to Pay) - use a tool like NFC Tools to write the agent:// payment link to an NFC tag. When scanned in the app, it will prompt the user for payment. Note: the app must be installed and open on the Solana Mobile when scanned.
User Events
Use the SSE endpoint to listen for user events:
https://api.sol-pay.co/events?u=@solana-agent
  • u: Your username
The SSE stream will return JSON messages like:
{ "message": "You received 5 USDC from @solana-agent", "signature": "5h1...abc", "amount": 5, "token": "USDC", "event": "RECEIVE", "memo": { "id": "123", "currency": "USD", "amount": 5, "to": "@solana-agent", "from": "@bob" }, "timestamp": "2025-06-27T12:34:56.789Z" } { "message": "You sent 5 USDC to @bob", "signature": "5h1...abc", "amount": 5, "token": "USDC", "fee_token": "USDC", "fee_amount": 0.075, "event": "SEND", "memo": { "id": "123", "currency": "USD", "amount": 5, "to": "@bob", "from": "@solana-agent" }, "timestamp": "2025-06-27T12:34:56.789Z" } { "message": "You swapped 5 USDC for 4.95 EURC", "signature": "5h1...abc", "amount_in": 5, "amount_out": 4.95, "token_in": "USDC", "token_out": "EURC", "fee_token": "USDC", "fee_amount": 0.0425, "event": "SWAP", "timestamp": "2025-06-27T12:34:56.789Z" }
Go Back To Home