Bonkfun transaction parser with GO lang
Last updated Jan 12, 2026
12
Stars
19
Forks
0
Issues
0
Stars/day
Attention Score
23
Language breakdown
No language data available.
▸ Files
click to expand
README
Raydium Launchpad (Bonkfun) Transaction Parser Go
The task can be split into two parts:
- Transaction parsing (Geyser)
- Transaction sending (buy/sell before and after migration)
Contact
If you wanna build this kind of project, feel free contact here: Telegram | Twitter
1. Parsing
You need to take the raw transaction data (its level-1 and level-2 instructions in the Geyser format) and convert it into a structure we understand. This might be:- A third-party token buy/sell/swap (the pre-migration and post-migration variants use different instructions)
- A token-creation transaction
- A migration transaction
The parsed data should be represented by a single structure roughly like this:
type Transaction struct { Signature solana.Signature Slot uint64
Create []CreateInfo Trade []TradeInfo TradeBuys []int TradeSells []int
Migrate []Migration SwapBuys []SwapBuy SwapSells []SwapSell }
Also, tokens can be migrated, which changes the buy/sell instruction formats. You must parse migrations and all trades that follow them.
2. Sending
You need to build and serialize buy/sell instructions. Ideally, also implement token-creation instructions, since they’ll be useful too. You can:- Implement instruction format (structure and functions) from scratch
- Or find the JSON schema and generate it via anchor-go
Testing Your tests should include:
- Several submit-transaction cases (buy and sell)—use a wallet and token from environment variables
- Several parsing cases—either connect to a live Geyser stream or use provided sample
Requirements
- Must use
github.com/gagliardetto/solana-go v1.12.x - For binary-data helpers you may also use
github.com/gagliardetto/binary v0.8.0 Go 1.24(toolchain go1.24.4)- Handle errors in true Go idiomatic style
🔗 More in this category