pub async fn create_nullifier_ix<R: Rpc + Indexer>(
rpc: &mut R,
payer: Pubkey,
id: [u8; 32],
) -> Result<Instruction, RpcError>Expand description
Creates a nullifier instruction in one call.
Combines fetch_proof and build_instruction for convenience.
Works with any Rpc + Indexer client (LightProgramTest or LightClient).