isTransactionMessageWithBlockhashLifetime function

bool isTransactionMessageWithBlockhashLifetime(
  1. TransactionMessage transactionMessage
)

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);
}