EIP1559Information.fromJson constructor

EIP1559Information.fromJson(
  1. Map<String, String> json
)

Implementation

factory EIP1559Information.fromJson(Map<String, String> json) =>
    EIP1559Information(
      lastBaseFeePerGas: EtherAmount.inWei(BigInt.parse(json['baseFee']!)),
      maxPriorityFeePerGas:
          EtherAmount.inWei(BigInt.parse(json['maxPriorityFeePerGas']!)),
      maxFeePerGas: EtherAmount.inWei(BigInt.parse(json['maxFeePerGas']!)),
      estimatedGas: BigInt.parse(json['estimatedGas']!),
    );