Subscribe to receive notifications when a new token pair is created with wSol.
Notifications may arrive out of order. E.g. If multiple pairs are created in a block, the first pair created isn't guarenteed to be returned first in the subscription.
It uses commitment
level confirmed which allows for a fast response
time with reasonable confidence on being included in the blockchain. See more about commitment levels here
Known Issue
For most pairs / launch tokens, if the pair contains wSOL, it will force this to be
the quote token (which it usually is anyway). For some pairs, this means the quote and base will be swapped.
We are working to address the best possible way forward as the chain does not always report which token is
the base/quote.
Subscriptions to newPairs are limited to 1 per connection.
booleantrue to include new pumpfun pairs. false by default
unsigned integer
{
"jsonrpc": "2.0",
"id": 1,
"method": "newPairSubscribe",
"params": {
"include_pumpfun": true
}
}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"subscription_id": 1
}
}
These are the notifications you will receive when newPairSubscribe is called successfully. Notifications do not typically conform to jsonrpc.
unsigned integerstringnewPairObject
unsigned integerstringunsigned integerpairObject
stringraydium, pumpswap, pumpfun
stringbondingCurve account.
tokenObject
tokenObjectstringstring"12000000000" raw wSol with 9 decimals would format to be 12 wSol.
string | nullpumpfun
stringtokenInfoObject | nullunsigned integerstringtokenMetadataObject | nullstring | nullstring | nullstringstringstring | null
{
"slot": 301578636,
"signature": "UWnvRXCHpmDxb9tQAYYEEoY8r2JVZ3CcbDLpsFp8EGBdv5njjyEkGXhYxcFCc7Y68X15SWrfve4rycvM4vGRJh7",
"blockTime": 1731688226,
"pair": {
"sourceExchange": "raydium",
"ammAccount": "CDnqCfvxQvncrWpoTT36xBCcthzQyh8RumuvoFsFZNVC",
"baseToken": {
"account": "G9GZaVRPiYRfNQF7oqNoeXKwB5jFbLSHe5fxLcCpump",
"info": {
"decimals": 9,
"supply": "206900000000000000",
"metadata": {
"name": "randomcoin",
"symbol": "randomcoin",
"logo": "https://arweave.net/xDf9sPlSY4SMmFQzyCK-xakNl-m7a17lKPO6BttSO3M"
},
"mintAuthority": null,
"freezeAuthority": null
}
},
"quoteToken": {
"account": "So11111111111111111111111111111111111111112",
"info": null
},
"baseTokenLiquidityAdded": "206900000000000000",
"quoteTokenLiquidityAdded": "630000000000"
}
}