Envelope constructor
Envelope({
- required EnvelopeKind kind,
- Uint8List? to,
- BigInt? value,
- Uint8List? data,
- BigInt? gasLimit,
- BigInt? nonce,
- BigInt? chainId,
- BigInt? gasPrice,
- BigInt? maxFeePerGas,
- BigInt? maxPriorityFeePerGas,
- BigInt? maxFeePerBlobGas,
- List<
Uint8List> ? blobVersionedHashes, - List<
BlobData> ? blobs, - List<
AccessListEntry> ? accessList, - List<
Authorization> ? authorizationList, - int? v,
- Uint8List? r,
- 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;