parseCreateAssociatedTokenInstruction function

CreateAssociatedTokenInstructionData parseCreateAssociatedTokenInstruction(
  1. Instruction instruction
)

Parses a create instruction from instruction.

Implementation

CreateAssociatedTokenInstructionData parseCreateAssociatedTokenInstruction(
  Instruction instruction,
) {
  return getCreateAssociatedTokenInstructionDataDecoder().decode(
    instruction.data!,
  );
}