This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Returns { matchingTransactions } or null | |
| const CONFIG = { | |
| Wallets: [ | |
| 'rEmnE8iCKY21cesiywotSDoQgTyaNAvgYX', | |
| ], | |
| }; | |
| function main(payload) { | |
| const wallets = new Set(CONFIG.Wallets); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const tokenPrograms = new Set([ | |
| 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', | |
| 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', | |
| ]); | |
| const ignorablePrograms = new Set([ | |
| 'Vote111111111111111111111111111111111111111', | |
| 'ComputeBudget111111111111111111111111111111', | |
| 'AddressLookupTab1e1111111111111111111111111', | |
| ]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function main(stream) { | |
| const LIST_NAME = "wallets"; | |
| const TRANSFER_TOPIC = | |
| "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"; | |
| // --- helpers --- | |
| const toArray = (x) => (Array.isArray(x) ? x : []); | |
| const lower = (s) => (typeof s === "string" ? s.toLowerCase() : null); | |
| const normalizeAddr = (s) => (s ? lower(s) : null); | |
| const topicToAddr = (topic) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const CONFIG = { | |
| Wallets: [ | |
| '0xaaaaaa0000000000000000000000000000000000', | |
| '0xbbbbbb0000000000000000000000000000000000' | |
| ], | |
| ERC20: [ | |
| '0xaaaaaa0000000000000000000000000000000000', | |
| '0xbbbbbb0000000000000000000000000000000000' | |
| ] | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function main(stream) { | |
| const PUMP_FUN_PROGRAM = "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"; | |
| const matches = []; | |
| for (const block of stream.data) { | |
| for (const tx of block.transactions) { | |
| if (!tx.meta || tx.meta.err) continue; | |
| // Check if any inner instruction invokes pump.fun | |
| const invokedPump = (tx.meta.innerInstructions || []).some(ix => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function main(payload) { | |
| const CONFIG = { | |
| CHAT_ID: "<your_chat_id>", | |
| SCAN_BASE_URL: "https://etherscan.io", | |
| POOL_ABI: [ | |
| { | |
| anonymous: false, | |
| inputs: [ | |
| { indexed: true, name: "token0", type: "address" }, | |
| { indexed: true, name: "token1", type: "address" }, |