Envelope constructor

Envelope({
  1. required EnvelopeKind kind,
  2. Uint8List? to,
  3. BigInt? value,
  4. Uint8List? data,
  5. BigInt? gasLimit,
  6. BigInt? nonce,
  7. BigInt? chainId,
  8. BigInt? gasPrice,
  9. BigInt? maxFeePerGas,
  10. BigInt? maxPriorityFeePerGas,
  11. BigInt? maxFeePerBlobGas,
  12. List<Uint8List>? blobVersionedHashes,
  13. List<BlobData>? blobs,
  14. List<AccessListEntry>? accessList,
  15. List<Authorization>? authorizationList,
  16. int? v,
  17. Uint8List? r,
  18. Uint8List? s,
})

Implementation

Envelope({
  required this.kind,
  this.to,
  BigInt? value,
  Uint8List? data,
  BigInt? gasLimit,
  BigInt? nonce,
  BigInt? chainId,
  this.gasPrice,
  this.maxFeePerGas,
  this.maxPriorityFeePerGas,
  this.maxFeePerBlobGas,
  this.blobVersionedHashes,
  this.blobs,
  this.accessList,
  this.authorizationList,
  this.v,
  this.r,
  this.s,
})  : value = value ?? BigInt.zero,
      data = data ?? Uint8List(0),
      gasLimit = gasLimit ?? BigInt.from(21000),
      nonce = nonce ?? BigInt.zero,
      chainId = chainId ?? BigInt.one;