DecodedInstruction
DecodedInstruction = {
from:string;lamports:bigint;program:string;to:string;type:"sol-transfer"; } | {lamports:bigint;newAccount:string;owner:string;payer:string;program:string;type:"create-account"; } | {amount:bigint;authority:string;decimals?:number;destination:string;fee?:bigint;mint?:string;program:string;source:string;tokenProgram:TokenProgramKind;type:"token-transfer"; } | {amount:bigint;delegate:string;owner:string;program:string;source:string;tokenProgram:TokenProgramKind;type:"token-approve";unlimited:boolean; } | {account:string;authorityType:number;newAuthority:string|null;program:string;tokenProgram:TokenProgramKind;type:"set-authority"; } | {account:string;destination:string;owner:string;program:string;tokenProgram:TokenProgramKind;type:"close-account"; } | {ata:string;idempotent:boolean;mint:string;owner:string;payer:string;program:string;type:"ata-create"; } | {kind:"limit"|"price"|"other";program:string;type:"compute-budget";value:bigint; } | {accounts: readonlystring[];dataLength:number;instruction?:string;program:string;stake?:StakeInstructionDetails;type:"program-call";withSeed?:SeedAccountDetails; } | {accounts: readonly (string|null)[];dataLength:number;instruction?:string;program:string|null;stake?:StakeInstructionDetails;type:"unknown"; }
Defined in: wallet-solana/src/types.ts:175
One instruction of a transaction, decoded where the program is known (System, Token, Token-2022, Associated Token, Compute Budget) and listed raw otherwise.