estimatedTime property
String
get
estimatedTime
Estimate transaction time based on gas price
Implementation
String get estimatedTime {
final gwei = priceInGwei;
if (gwei > Decimal.fromInt(100)) return '< 15 seconds';
if (gwei > Decimal.fromInt(50)) return '< 30 seconds';
if (gwei > Decimal.fromInt(20)) return '< 2 minutes';
return '> 5 minutes';
}