本例子基于transactions
过滤条件和交易解析来监听pumpfun新流动池创建,这是链上大多数狙击手都会用到的方法。
通过npx esrun 04-example-subNewPool/index.ts
运行,输出应如下:
slot: 310570418
signature: JXjvgprqYjwJtXRinvEPXas349J2MEBQ91T3gZAUgq1fuWnBYCQzTzt5NjY26LXQKGswWXLZ3mXvSocWHLj5Nik
signer: 3fxhSengmK5vjAWuM2tDUbnb2Y6dgVvPcbaboZCvD9tV
tx: https://solscan.io/tx/JXjvgprqYjwJtXRinvEPXas349J2MEBQ91T3gZAUgq1fuWnBYCQzTzt5NjY26LXQKGswWXLZ3mXvSocWHLj5Nik
---
slot: 310570418
signature: 618b5GoPgyYnMt2MnTCpNLMkonM2aVrM6zBEs1LqbHeaamoq75vAr2gfjzV54uCBq3JU5izCpjtmGiWLYrCoPrYg
signer: Eo9k25Go9VHFuQF6zgJ3fRm9SBqP8tG8Ea9sacowzyUv
tx: https://solscan.io/tx/618b5GoPgyYnMt2MnTCpNLMkonM2aVrM6zBEs1LqbHeaamoq75vAr2gfjzV54uCBq3JU5izCpjtmGiWLYrCoPrYg
---
slot: 310570424
signature: 3U4bAAXkZG6821hG4X128L6HRjQgBtHxinrUC1JSvzJhuZJ5YwepVpXwTscXn5iWykMyEWGSPQ5QdskLYfR3yhGa
signer: 2p4dPxvaVmwqPotF27DVSmKxMe7nvVvhCk57tBCZEmoW
tx: https://solscan.io/tx/3U4bAAXkZG6821hG4X128L6HRjQgBtHxinrUC1JSvzJhuZJ5YwepVpXwTscXn5iWykMyEWGSPQ5QdskLYfR3yhGa
---
slot: 310570424
signature: 2RGnnNfSbAXksJqxS4TvR8tNXJTPAT3gktmErB1VHPTyJbe9LjvEkuGNxqK7wQbt4HNtjXFS4V1cnKaAJ6gkUMKR
signer: EbCLRXdFs3NQENepR2zvPWf3oUHjKTRmV7AePGfZK6DE
tx: https://solscan.io/tx/2RGnnNfSbAXksJqxS4TvR8tNXJTPAT3gktmErB1VHPTyJbe9LjvEkuGNxqK7wQbt4HNtjXFS4V1cnKaAJ6gkUMKR
---
slot: 310570442
signature: 5HXpdwUfGkkEefNaYnqJMBsFtn6KZitrMb4Y6sBhnDRh9NkSiMPnX3WBsBu2xmXX8xa5Fd7SjsM9VPxJ13yMxq52
signer: GsCdJcNb1ydmkpfiCLUbx8bVgGbt3yQ3C8sYdPguyAxD
tx: https://solscan.io/tx/5HXpdwUfGkkEefNaYnqJMBsFtn6KZitrMb4Y6sBhnDRh9NkSiMPnX3WBsBu2xmXX8xa5Fd7SjsM9VPxJ13yMxq52
---