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