### Clone LetsBonk.fun gRPC Streams Repository Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/lets-bonk-fun-example/README.md Clone the GitHub repository to get started with the LetsBonk.fun gRPC Streams example. ```bash git clone https://github.com/Akshat-cs/letsbonk.fun-gRPC-Streams.git ``` -------------------------------- ### Quick Start for LetsBonk.fun gRPC Client Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/lets-bonk-fun-example/README.md Follow these steps to install dependencies, obtain an API token, configure filters, and run the Node.js client. ```bash # 1. Install dependencies npm install # 2. Get your API token # Visit: https://account.bitquery.io/user/api_v2/access_tokens # 3. Configure your filters in config.yaml # Edit the file to set your auth token and desired filters # 4. Run the client node index.js ``` -------------------------------- ### Install Dependencies and Run Client Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/pumpfun-example/README.md Install project dependencies using npm and run the Node.js client. Ensure your filters are configured in config.yaml before running. ```bash # 1. Install dependencies npm install # 2. Configure your filters in config.yaml # Edit the file to set your desired token and trade filter # 3. Run the client node index.js ``` -------------------------------- ### Clone the Repository Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/pumpfun-example/README.md Clone the GitHub repository to get started with the Pump.fun gRPC streams client. ```bash git clone https://github.com/Akshat-cs/pump.fun-gRPC-Streams.git ``` -------------------------------- ### Trade Match Output Example Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/lets-bonk-fun-example/README.md This output is displayed when a trade successfully matches the specified filters. It provides comprehensive details about the transaction, including block information, DEX and market data, and the specifics of the buy and sell sides. ```text ================================================================================ 🟢 BUY Trade ================================================================================ Block Slot: 370485092 Timestamp: 2025-10-01T13:11:32.922Z Instruction Index: 2 📍 DEX Info: Program: LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj Protocol: raydium_launchpad (raydium) 🏪 Market Info: Address: YcQB1hGSR9hNbJ52zrCJyMvbRViQKiaLfenrgZR9BXY Base Currency: BONKTOKEN Quote Currency: SOL 💰 Buy Side: Amount: 100000000 Currency: BONKTOKEN (Bonk Token) Mint: CHNxstQ6zsj9b7QMmCKbnJkhyKwoTL19bPe6VYoebonk Decimals: 6 Account: 8HqR8D9gHtN1eMJyaX7BN5PmzF5z9KgQzY4nXvFfRD8m Is Signer: true Is Writable: true 💸 Sell Side: Amount: 500000000 Currency: SOL (Wrapped SOL) Mint: So11111111111111111111111111111111111111112 Decimals: 9 Account: 8HqR8D9gHtN1eMJyaX7BN5PmzF5z9KgQzY4nXvFfRD8m Is Signer: true Is Writable: true 💵 Fee: 0 👑 Royalty: 0 ================================================================================ ``` -------------------------------- ### Monitor multiple tokens on LetsBonk.fun Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/lets-bonk-fun-example/README.md Tracks trading activity across multiple specified tokens and a DEX program. Ideal for portfolio tracking and multi-token analysis. ```yaml trade_filter: "alltrades" filters: programs: - "LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj" tokens: - "CHNxstQ6zsj9b7QMmCKbnJkhyKwoTL19bPe6VYoebonk" - "4FBx5RBfEuuhkT5RB7kJ46WC6cL9J4SJNXyKeoDAbonk" ``` -------------------------------- ### Basic Trade Filter Configuration Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/lets-bonk-fun-example/README.md Sets the trade filter to 'alltrades' to monitor both buys and sells. This is a fundamental setting for general market monitoring. ```yaml trade_filter: "alltrades" # or "buys" or "sells" ``` -------------------------------- ### Monitor only SELLS for a specific token Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/lets-bonk-fun-example/README.md Tracks only selling activity for a specific token and DEX program. Helps in detecting sell pressure and potential dumps. ```yaml trade_filter: "sells" filters: programs: - "LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj" tokens: - "CHNxstQ6zsj9b7QMmCKbnJkhyKwoTL19bPe6VYoebonk" ``` -------------------------------- ### Monitor Multiple Tokens Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/pumpfun-example/README.md Track trading activity across multiple Pump.fun tokens simultaneously. Useful for portfolio tracking and multi-token analysis. ```yaml trade_filter: "alltrades" filters: programs: - "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P" tokens: - "7CyJ5J3tqRKKJjSWSzASuVJdD2oryAJZfyvbMVJmpump" - "H15fwzsYWQiGTQBn23sC2QuByu9zSvaXhaDwwVmkX5m9" - "AnotherTokenMintAddressHere" ``` -------------------------------- ### Monitor only BUYS for a specific token Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/lets-bonk-fun-example/README.md Tracks only buying activity for a specific token and DEX program. Useful for identifying accumulation patterns and buying momentum. ```yaml trade_filter: "buys" filters: programs: - "LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj" tokens: - "CHNxstQ6zsj9b7QMmCKbnJkhyKwoTL19bPe6VYoebonk" ``` -------------------------------- ### LetsBonk.fun Trade Event Data Structure Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/lets-bonk-fun-example/README.md This JavaScript object represents the structure of a trade event streamed from LetsBonk.fun, detailing transaction and trade information. ```javascript { Block: { Slot: 370485092 // Solana block slot number }, Transaction: { Index: 1, Signature: "5277PwHQ4PkKRExT45HV8X8XXDmQjWZzHK8dx5ru1eaA...", Status: { Success: true, ErrorMessage: null } }, Trade: { InstructionIndex: 2, Dex: { ProgramAddress: "LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj", ProtocolName: "raydium_launchpad", ProtocolFamily: "raydium" }, Market: { MarketAddress: "YcQB1hGSR9hNbJ52zrCJyMvbRViQKiaLfenrgZR9BXY", BaseCurrency: { Symbol: "BONKTOKEN", Name: "Bonk Token", MintAddress: "CHNxstQ6zsj9b7QMmCKbnJkhyKwoTL19bPe6VYoebonk", Decimals: 6 }, QuoteCurrency: { Symbol: "SOL", MintAddress: "So11111111111111111111111111111111111111112", Decimals: 9 } }, Buy: { Amount: 100000000, Currency: { Symbol: "BONKTOKEN", MintAddress: "CHNxstQ6zsj9b7QMmCKbnJkhyKwoTL19bPe6VYoebonk", Decimals: 6 }, Account: { Address: "8HqR8D9gHtN1eMJyaX7BN5PmzF5z9KgQzY4nXvFfRD8m", IsSigner: true, IsWritable: true } }, Sell: { Amount: 500000000, Currency: { Symbol: "SOL", MintAddress: "So11111111111111111111111111111111111111112", Decimals: 9 }, Account: { Address: "8HqR8D9gHtN1eMJyaX7BN5PmzF5z9KgQzY4nXvFfRD8m", IsSigner: true, IsWritable: true } }, Fee: 0, Royalty: 0 } } ``` -------------------------------- ### Monitor buying activity for a specific trader and token Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/lets-bonk-fun-example/README.md Tracks when a specific wallet address buys a particular token through a given DEX program. Useful for copy-trading or detecting alpha signals. ```yaml trade_filter: "buys" filters: programs: - "LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj" tokens: - "CHNxstQ6zsj9b7QMmCKbnJkhyKwoTL19bPe6VYoebonk" traders: - "YourWalletAddressHere" ``` -------------------------------- ### Monitor ALL trades for a specific token Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/lets-bonk-fun-example/README.md Tracks all trading activity for a given token and DEX program. Use for general market monitoring and volume analysis. ```yaml trade_filter: "alltrades" filters: programs: - "LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj" tokens: - "CHNxstQ6zsj9b7QMmCKbnJkhyKwoTL19bPe6VYoebonk" ``` -------------------------------- ### Monitor Multiple Traders Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/pumpfun-example/README.md Track trading activity from multiple wallets. Useful for monitoring multiple known profitable traders. ```yaml trade_filter: "alltrades" filters: programs: - "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P" traders: - "7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr" - "8HqR8D9gHtN1eMJyaX7BN5PmzF5z9KgQzY4nXvFfRD8m" - "9iJkLmNoPQrsTUVxYZaBcDeFgH1JkLmNoPQrsTUVxYZ" ``` -------------------------------- ### Monitor Specific Market/Pool Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/pumpfun-example/README.md Track all activity in a specific Pump.fun market. Useful for a deep dive into a specific token's liquidity pool. ```yaml trade_filter: "alltrades" filters: pool: - "YcQB1hGSR9hNbJ52zrCJyMvbRViQKiaLfenrgZR9BXY" ``` -------------------------------- ### Monitor All Pump.fun Activity Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/pumpfun-example/README.md Stream all trades on Pump.fun without a token filter for market-wide analytics and new token discovery. Warning: This streams a high volume of messages. ```yaml trade_filter: "alltrades" filters: programs: - "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P" # No tokens filter = all tokens ``` -------------------------------- ### Pump.fun Trade Event Structure Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/pumpfun-example/README.md This JSON object represents a single trade event from Pump.fun, detailing transaction information, trade specifics, and market data. Use this structure to parse and analyze trade activities. ```javascript { Block: { Slot: 370485092 // Solana block slot number }, Transaction: { Index: 1, Signature: "5277PwHQ4PkKRExT45HV8X8XXDmQjWZzHK8dx5ru1eaA...", Status: { Success: true, ErrorMessage: null }, Header: { Fee: 5000, FeePayer: "7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr", Signer: "7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr", Accounts: [...] } }, Trade: { InstructionIndex: 2, Dex: { ProgramAddress: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", ProtocolName: "pump_fun", ProtocolFamily: "pump_fun" }, Market: { MarketAddress: "YcQB1hGSR9hNbJ52zrCJyMvbRViQKiaLfenrgZR9BXY", BaseCurrency: { Symbol: "PUMPTOKEN", Name: "Pump Token", MintAddress: "7CyJ5J3tqRKKJjSWSzASuVJdD2oryAJZfyvbMVJmpump", Decimals: 6 }, QuoteCurrency: { Symbol: "SOL", Name: "Wrapped SOL", MintAddress: "So11111111111111111111111111111111111111112", Decimals: 9 } }, Buy: { Amount: 100000000, // Amount of token being bought Currency: { Symbol: "PUMPTOKEN", Name: "Pump Token", MintAddress: "7CyJ5J3tqRKKJjSWSzASuVJdD2oryAJZfyvbMVJmpump", Decimals: 6, Parsed: true }, Account: { Address: "8HqR8D9gHtN1eMJyaX7BN5PmzF5z9KgQzY4nXvFfRD8m", IsSigner: true, IsWritable: true }, Order: { OrderId: null } }, Sell: { Amount: 500000000, // Amount of SOL being sold Currency: { Symbol: "SOL", Name: "Wrapped SOL", MintAddress: "So11111111111111111111111111111111111111112", Decimals: 9 }, Account: { Address: "8HqR8D9gHtN1eMJyaX7BN5PmzF5z9KgQzY4nXvFfRD8m", IsSigner: true, IsWritable: true }, Order: { OrderId: null } }, Fee: 0, Royalty: 0, Instruction: { Index: 2, Depth: 0, Program: { Address: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", Name: "pump_fun", Method: "swap", Parsed: true }, Accounts: [...], Logs: [...] } } } ``` -------------------------------- ### Monitor All Trades for a Specific Token Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/pumpfun-example/README.md Track all trading activity for a specific token on Pump.fun. Use for general market monitoring and volume analysis. ```yaml trade_filter: "alltrades" filters: programs: - "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P" tokens: - "7CyJ5J3tqRKKJjSWSzASuVJdD2oryAJZfyvbMVJmpump" ``` -------------------------------- ### Monitor Specific Trader Activity Source: https://github.com/bitquery/grpc-usecase-examples/blob/main/Solana/pumpfun-example/README.md Track all trades made by a specific wallet on Pump.fun. Useful for whale watching, copytrading, and smart money tracking. ```yaml trade_filter: "alltrades" filters: programs: - "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P" traders: - "7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.