SystemTransferLayout.fromBuffer constructor

SystemTransferLayout.fromBuffer(
  1. List<int> data
)

Implementation

factory SystemTransferLayout.fromBuffer(List<int> data) {
  final decode = ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: SystemProgramInstruction.transfer.insturction);
  return SystemTransferLayout(lamports: decode["lamports"]);
}