Skip to content

Commit 9096f5c

Browse files
committed
added starter queries and subscriptions for x402 and polymarket
1 parent 0750399 commit 9096f5c

File tree

2 files changed

+91
-5
lines changed

2 files changed

+91
-5
lines changed

docs/start/starter-queries.md

Lines changed: 72 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Below is a set of queries that are curated for you to get started with Bitquery.
1515
- [Cosmos](#cosmos)
1616
- [NFT APIs](#nft-apis)
1717
- [Polymarket](#polymarket)
18+
- [x402 APIs](#x402-apis)
1819

1920
## Cross-Chain / Multi-Chain APIs
2021

@@ -63,7 +64,6 @@ Retrieve all ERC-20 token balances held by a specific address. This query return
6364
Get the latest liquidity of an EVM DEX pool (e.g., Uniswap v3 pool).
6465
▶️ [Latest Liquidity of EVM Pool](https://ide.bitquery.io/latest-liquidity-of-a-EVM-pool)
6566

66-
6767
### Token Supply
6868

6969
#### Latest Token Supply on ETH chain
@@ -78,7 +78,6 @@ Latest Token Supply for stablecoin like USDC-USDT
7878

7979
▶️ [Latest Token Supply for stablecoin like USDC-USDT](https://ide.bitquery.io/latest-token-supply-on-USDT-and-USDC-on-ethereum-chain)
8080

81-
8281
### Transfers
8382

8483
#### Get ERC20 token transfers by wallet
@@ -215,6 +214,7 @@ To determine who funded a specific Solana wallet with SOL, you can utilise the f
215214
▶️[Find who funded the specific Solana wallet](https://ide.bitquery.io/Who-funded-a-given-wallet)
216215

217216
#### Solana Token creator and Time
217+
218218
▶️[Solana Token creator and Time](https://ide.bitquery.io/Solana-token-creation-date-and-creator)
219219

220220
#### Solana Historical Token Transfers Over Time
@@ -998,12 +998,79 @@ This query gets the top 10 traded NFTs based on the number of trades within a sp
998998

999999
## Polymarket
10001000

1001+
### Main Polymarket Contract
1002+
10011003
#### Discover Newly Created Markets
10021004

10031005
Track fresh Polymarket prediction markets as they are initialized on Polygon by following `ConditionPreparation` events from the main Polymarket contract.
10041006
▶️ [Polymarket Newly Created Questions / Market ID](https://ide.bitquery.io/Polymarket-Newly-Created-MarketQuestions)
10051007

1006-
#### Stream Polymarket Order Fills and Prices
1008+
#### Latest Position Splits
1009+
1010+
Track when users split their collateral into outcome-specific position tokens.
1011+
▶️ [Latest Position Split](https://ide.bitquery.io/PolyMarket---Latest-Position-Split)
1012+
1013+
#### Latest Resolved Questions
1014+
1015+
Monitor recently resolved prediction markets and their outcomes.
1016+
▶️ [Latest Resolved Questions](https://ide.bitquery.io/PolyMarket---Latest-Resolved-Questions)
1017+
1018+
#### Payout Received by Polymarket Trader
1019+
1020+
Track all payouts received by a specific trader when they redeem winning positions.
1021+
▶️ [Payout Received by Polymarket Trader](https://ide.bitquery.io/Payout-received-by-polymarket-trader)
1022+
1023+
### UMA Adapter Contract
1024+
1025+
#### New Questions Initialized
1026+
1027+
Track new questions and get market metadata including ancillaryData from the UMA Adapter contract.
1028+
▶️ [Question Initialized Events](https://ide.bitquery.io/PolyMarket---UMA-Adapter-Question-Initialized)
1029+
1030+
#### Question Resolved Events
1031+
1032+
Monitor when questions are resolved by the oracle.
1033+
▶️ [Question Resolved Events](https://ide.bitquery.io/PolyMarket---UMA-Adapter-Question-Resolved)
1034+
1035+
### CTF Exchange Contract
1036+
1037+
#### Token Registered Events
1038+
1039+
Track when new outcome tokens are registered for trading.
1040+
▶️ [Token Registered Events](https://ide.bitquery.io/Polymarket-Neg-Risk-CTF-Exchange-contract----TokenRegistered-Event)
1041+
1042+
#### Orders Matched Events
1043+
1044+
Monitor successful order matching and trade executions.
1045+
▶️ [Orders Matched Events](https://ide.bitquery.io/Polymarket-Neg-Risk-CTF-Exchange-contract----OrderMatched-Event_2)
1046+
1047+
#### Order Filled Events
1048+
1049+
Track individual order fills and partial executions to calculate market prices.
1050+
▶️ [Order Filled Events](https://ide.bitquery.io/Polymarket-Neg-Risk-CTF-Exchange-contract----OrderFilled-Event)
1051+
1052+
## x402 APIs
1053+
1054+
### Base
1055+
1056+
#### Get Latest Payments to x402 Server
1057+
1058+
Retrieves the most recent payments made to a specific x402 server on Base network.
1059+
▶️ [Latest Payment to x402 Server](https://ide.bitquery.io/Latest-payment-to-specific-x402-server)
1060+
1061+
#### Payment Analytics for x402 Server
1062+
1063+
Comprehensive payment analytics including total volume, unique users, transaction counts, and time-based breakdowns for a specific x402 server.
1064+
▶️ [Payment Analytics for x402 Server](https://ide.bitquery.io/Payment-analytics-related-specific-x402-server)
1065+
1066+
### Solana
1067+
1068+
#### Get Latest Payments to x402 Server on Solana
1069+
1070+
Retrieves the most recent payments made to a specific x402 server on Solana network.
1071+
▶️ [Latest Payment to x402 Server on Solana](https://ide.bitquery.io/Latest-Payment-to-specific-x402-server-taking-solana-payments)
1072+
1073+
#### Payment Analytics for x402 Server on Solana
10071074

1008-
Monitor live Polymarket trades and price updates by subscribing to `OrderFilled` events on the CTF Exchange contract.
1009-
▶️ [PolyMarket CTF Exchange Contract - OrderFilled Event](https://ide.bitquery.io/Polymarket-Neg-Risk-CTF-Exchange-contract----OrderFilled-Event)
1075+
Comprehensive payment analytics for a specific x402 server on Solana including total volume, unique users, and transaction counts.
1076+
▶️ [Payment Analytics for x402 Server on Solana](https://ide.bitquery.io/Payment-analytics-related-specific-x402-server-on-Solana)

docs/start/starter-subscriptions.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Below is a set of subscriptions that are curated for you to get started with Bit
1010
- [BSC (Binance Smart Chain)](#bsc-binance-smart-chain)
1111
- [TRON](#tron)
1212
- [NFT Streams](#nft-streams)
13+
- [x402 Streams](#x402-streams)
1314

1415
## Cross-Chain / Multi-Chain APIs
1516

@@ -491,6 +492,24 @@ Monitor NFT transfers for a specific collection across all transactions. This he
491492

492493
▶️ [Track Specific NFT Balance Changes](https://ide.bitquery.io/Track-specific-NFTs-Balance-Changes)
493494

495+
## x402 Streams
496+
497+
### Base
498+
499+
#### Real-Time Payment Monitoring for x402 Server
500+
501+
Real-time subscription to monitor payments to a specific x402 server on Base network using WebSockets.
502+
503+
▶️ [Real-Time Payment Monitoring for x402 Server](https://ide.bitquery.io/Monitoring-the-latest-payment-to-the-specific-X402-server)
504+
505+
### Solana
506+
507+
#### Real-Time Payment Monitoring for x402 Server on Solana
508+
509+
Real-time subscription to monitor payments to a specific x402 server on Solana network using WebSockets.
510+
511+
▶️ [Real-Time Payment Monitoring for x402 Server on Solana](https://ide.bitquery.io/Real-Time---Solana-transfers-stream)
512+
494513
## More on Streams
495514

496515
You will find more detailed information on streams and subscriptions in the relevant sections.

0 commit comments

Comments
 (0)