A free Solana decompiler

Read any Solana program.

Paste a program address. revrsly fetches its public bytecode and reconstructs it: annotated disassembly, structured pseudocode and, for Anchor programs, Rust. Every fact is marked by how sure it is.

5 new decompiles per hour · library unlimited
Paste a Solana program address.
Programs already in the library open instantly. New ones take a few seconds to decompile.
once ❝ · GRzK…pYTa · buybytes → Rust
.text+0x422a8 18 07 00 00 66 06 3d 12 00 00 00 00 01 da eb ea .text+0x422b8 1d 75 4b 00 00 00 00 00 .rodata+0xb02 76 61 75 6c 74 "vault"
reconstructed
pub fn buy(ctx: Context<Buy>) -> Result<()> #[account(mut, seeds = [b"vault", /* 32 bytes */], bump, …)] pub vault: InterfaceAccount<'info, TokenAccount>, #[msg("Unsupported token program")] UnsupportedTokenProgram, // 6007
● buy — the bytes 66063d12… equal sha256("global:buy")[..8].
◇ vault — name from an Anchor error string; type inferred from its checks.
/* */ a value the bytecode doesn't hold.
■ error text read straight from .rodata.

No program in mind? Try one of these.

Real programs that aren't in the library yet. Choosing one fills the address box; nothing starts until you press Decompile.

Recently decompiled

The whole library →

What you get for every program

Six views of the same bytecode, linked: click any name to see why revrsly believes it and jump between its instruction, handler and disassembly. Snippets below are from once.

RustAnchor programs

Interface, accounts and their checks, the error enum, handlers folded.

#[account(seeds = [b"config"], bump = /* stored */)] pub config: Account<'info, Config>,
Interfacetables

Instructions with discriminator and byte layout, accounts, errors, events.

buy 66063d12… no arguments 12 accounts · buyer s · vault w
Evidencefor any name

Why revrsly believes a name, and where to look in the bytes.

● Discriminator 66063d12… found at .text+0x422a8. It equals sha256("global:buy")[..8].
Pseudocodeper function

C-like and structured, for any program, Anchor or not.

r0 = custom_error_new(&local_278, 0xc); // raises error 6012 NotOpen
Disassemblyannotated sBPF

Strings, syscalls, keys and errors explained inline.

422a8 lddw r7, 0xeaebda01123d0666 ; discriminator of instruction `buy` 62738 call sol_get_clock_sysvar ; ■ syscall
Factseverything else

Syscalls, strings, panic locations, the full report and every file to download.

■ panic programs/once/src/contexts.rs:9:10 ■ panic programs/once/src/events.rs:3:1

Every fact says how sure it is.

The same four marks are used in text, tables, code and chips. Colour is never the only cue: each kind also has its own glyph and line style.

■Observed
Read straight from the bytes.e.g. a string, a syscall, a log message, the security.txt
●Derived
Computed exactly by the loader's own rules.e.g. an instruction, a function, a control-flow edge
◇Inferred
A heuristic that can be wrong.e.g. a recovered name, an account type, an argument type
❝Published
The program's authors' claim, not revrsly's.e.g. a verified-build link, an IDL
How well inference works — measured

On once, compared against its verified source:

Account names79 / 79
Account types73 / 79
Account checks164 / 173none invented
PDA seeds24 / 24
Errors26 / 26
Events9 / 9

On Orca Whirlpool: all 70 errors, with names and messages.

Made by
trenbonole

I built revrsly on my own: the analyzer in Rust, compiled to WebAssembly and run in a sandbox, and this site. It's free and it's meant to be honest about what it knows.