Skip to content

0xpapercut/substreams-solana-structured-instructions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

structured-instructions

No more pain when parsing instructions. Simply

use substreams_solana_structured_instructions::get_structured_instructions

let structured_instructions = get_structured_instructions(confirmed_transaction)

et voilà! structured_instructions here is represented by a Vec<StructuredInstruction> where

struct StructuredInstruction {
    inner_instructions: Vec<StructuredInstruction>,
    ...
}

so that you can quickly query the programs that were directly invoked by another without jumping through hoops. See an example with raydium-substream.

About

Structured instructions for Solana substreams.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages