You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x402 protocol also operates on Solana network. The following queries demonstrate how to query x402 payment data on Solana using Bitquery's GraphQL API. Solana uses a different address format and query structure compared to EVM chains.
422
+
423
+
### Example x402 Server on Solana
424
+
425
+
For the following Solana examples, we'll use this x402 server address:
This is the Dexter • Crypto agent server address that accepts payments on Solana.
430
+
431
+
## Latest Payment to x402 Server on Solana
432
+
433
+
This query retrieves the most recent payments made to a specific x402 server on Solana. It's useful for monitoring server activity and tracking payment transactions.
434
+
435
+
You can run this query [here](https://ide.bitquery.io/Latest-Payment-to-specific-x402-server-taking-solana-payments).
-**`Solana`**: Specifies the Solana network schema
481
+
-**`Receiver: {Owner: {is: "..."}}`**: Filters transfers to the specific server owner address (Solana uses owner addresses instead of contract addresses)
482
+
-**`orderBy: {descending: Block_Time}`**: Returns the most recent payments first
483
+
-**`limit: {count: 100}`**: Retrieves up to 100 payment transactions
484
+
-**`AmountInUSD`**: Shows the payment amount in USD equivalent
485
+
-**`Instruction`**: Provides details about the Solana program instruction that executed the transfer
486
+
487
+
## Real-Time Payment Monitoring on Solana
488
+
489
+
You can monitor payments to a specific x402 server on Solana in real-time using GraphQL WebSocket subscriptions. This enables live tracking of payment activity without polling.
490
+
491
+
You can run this subscription [here](https://ide.bitquery.io/Real-Time---Solana-transfers-stream).
-**`subscription`**: Uses [GraphQL subscription](https://docs.bitquery.io/docs/subscriptions/subscription) for real-time updates
535
+
-**`Solana`**: Monitors the Solana network
536
+
-**`Transfers`**: Listens for new transfer events matching the filter
537
+
- The subscription will automatically push new payment transactions as they occur on-chain. Learn more about [real-time subscriptions](https://docs.bitquery.io/docs/subscriptions/)
538
+
539
+
## Payment Analytics for x402 Server on Solana
540
+
541
+
This query provides comprehensive payment analytics for a specific x402 server on Solana, including total volume, unique users, and transaction counts.
542
+
543
+
:::note Solana API Version
544
+
For complete transfer history on Solana, we use the v1 Solana API because v2 Solana API only shows transfers from the last 8 hours. The v1 API provides complete transfer history for comprehensive analytics.
545
+
:::
546
+
547
+
You can run this query [here](https://ide.bitquery.io/Payment-analytics-related-specific-x402-server-on-Solana).
0 commit comments