[SOL Chain] Decrypt ProgramData Base64-58 for pumpfun and co

Daima

Newbie
Joined
Mar 31, 2025
Messages
11
Reaction score
2
Hello,

My question is a bit specific : I'm gathering data with logsubscribe (web sockets) within the SOL chain but the info included in the ProgramData is very parse. I'm trying to find a way to decrypt it. I know it's Base64-Base58 but I didn't find a documentation for a specific scheme.
If I can't do that, I'll have to run a gettransaction after that and I'll lose precious hundred ms (aaaand my parsing isn't 100% accurate for now).

Any bit of info to share on this ? :D

(Purpose is of course to "listen" to specific wallets to run a copy trading bot. Time and precision is the essence. And good wallets. Last part is harsch).

Thanks in advance :)

Best regards,

Daima
 
The ProgramData you're getting via WebSockets is likely Base58-encoded, especially given that Solana uses Base58 encoding for addresses and public keys
Optimize WebSocket Subscriptions:. Ensure you're subscribing only to the events and addresses you're interested in, to minimize the volume of data you need to process.
Multi-threading. If you're handling a lot of data, use multi-threading or multi-processing in Python or JavaScript
 
Hello,
I have no problem about the number of events or the processing power : I'm only testing for now so it's okay.
However, it seems that the encoding isn't "the same" each time ? Between Meteora, Raydium and Pumpfun (and even between the different Pumpfun address).
Is it intended ?
Is it documented somewhere ?
 
You’re right Solana logSubscribe returns logs with limited decoding; to parse ProgramData, you typically need the target program’s ABI or instruction layout which most programs don’t expose. Without that, logs won’t decode cleanly.
 
That's what I thought :(
Thanks for confirming this point.
So I'm stuck with a gettransaction following the logSubscribe parsing.

It's sad :D
 
Back
Top