isTransactionMessageWithBlockhashLifetime function
Returns true if the transaction message has a blockhash-based lifetime
constraint.
Implementation
bool isTransactionMessageWithBlockhashLifetime(
TransactionMessage transactionMessage,
) {
final constraint = transactionMessage.lifetimeConstraint;
return constraint is BlockhashLifetimeConstraint &&
_isBlockhash(constraint.blockhash);
}