Kit
Type aliases

SetTransactionLifetimeFromTransactionMessage

SetTransactionLifetimeFromTransactionMessage<TTransaction, TTransactionMessage> = TTransactionMessage extends object ? TTransactionMessage["lifetimeConstraint"] extends TransactionMessageWithBlockhashLifetime["lifetimeConstraint"] ? TransactionWithBlockhashLifetime & TTransaction : TTransactionMessage["lifetimeConstraint"] extends TransactionMessageWithDurableNonceLifetime["lifetimeConstraint"] ? TransactionWithDurableNonceLifetime & TTransaction : TransactionWithLifetime & TTransaction : TTransaction

Helper type that sets the lifetime constraint of a transaction message to be the same as the lifetime constraint of the provided transaction message.

If the transaction message has no explicit lifetime constraint, neither will the transaction.

Type Parameters

Type Parameter
TTransaction extends Transaction
TTransactionMessage extends TransactionMessage

On this page