• Preparing search index...
  • The search index is not available
Solana JavaScript SDK
  • Solana JavaScript SDK
  • @solana/web3.js
  • isProgramError

Function isProgramError

  • isProgramError<TProgramErrorCode extends number>(
        error: unknown,
        transactionMessage: {
            instructions: Record<number, { programAddress: Address }>;
        },
        programAddress: Address,
        code?: TProgramErrorCode,
    ): error is Readonly<{ context: Readonly<{ code: TProgramErrorCode }> }> & SolanaError<
        4615026,
    >
  • Type Parameters

    • TProgramErrorCode extends number

    Parameters

    • error: unknown
    • transactionMessage: { instructions: Record<number, { programAddress: Address }> }
    • programAddress: Address
    • Optionalcode: TProgramErrorCode

    Returns error is Readonly<{ context: Readonly<{ code: TProgramErrorCode }> }> & SolanaError<
        4615026,
    >

    • Defined in packages/programs/dist/types/program-error.d.ts:3

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc