Skip to main content

extract_pda_graph

Function extract_pda_graph 

Source
pub fn extract_pda_graph(idl: &IdlSpec) -> Vec<PdaNode>
Expand description

Extract all PDA derivation nodes from an IDL spec.

Iterates every instruction’s account list, collecting accounts that have a pda field with seeds. Each seed is classified and its value extracted.