RawTransaction.send constructor

RawTransaction.send({
  1. required Address address,
  2. required Address toAddress,
  3. required Token token,
  4. required BigInt amount,
  5. Uint8List? data,
  6. BigInt? height,
  7. Hash? previousHash,
  8. Uint8List? nonce,
  9. BigInt? difficulty,
})

Implementation

factory RawTransaction.send({
  required Address address,
  required Address toAddress,
  required Token token,
  required BigInt amount,
  Uint8List? data,
  BigInt? height,
  Hash? previousHash,
  Uint8List? nonce,
  BigInt? difficulty,
}) {
  return RawTransaction(
    type: BlockType.transferRequest,
    address: address,
    height: height,
    previousHash: previousHash,
    toAddress: toAddress,
    token: token,
    amount: amount,
    data: data,
    nonce: nonce,
    difficulty: difficulty,
  );
}