Helius SDK - v3.4.0
    Preparing search index...

    Interface ParsedTransactionFilter

    Which instructions a subscription matches. At least one of programs or accounts.include is required; the fields you set combine with AND. Take instruction and role names from ParsedStreamsClient.describeProgram.

    interface ParsedTransactionFilter {
        accounts?: { include?: string[]; roles?: Record<string, string> };
        includeCpi?: boolean;
        includeFailed?: boolean;
        instructionNames?: string[];
        programs?: string[];
    }
    Index

    Properties

    accounts?: { include?: string[]; roles?: Record<string, string> }

    Type Declaration

    • Optionalinclude?: string[]

      Addresses an instruction must touch (any of). Max 100.

    • Optionalroles?: Record<string, string>

      Decoded role name → address, all must hold. Names match exactly. Max 20.

    includeCpi?: boolean

    Let inner (CPI) instructions match. Defaults to true.

    includeFailed?: boolean

    Include instructions from failed transactions. Defaults to false.

    instructionNames?: string[]

    Decoded instruction names, e.g. "route". Max 50.

    programs?: string[]

    Program IDs (base58 addresses, not names). Max 10.