Type aliases
SetTransactionLifetimeFromTransactionMessage
SetTransactionLifetimeFromTransactionMessage<
TTransaction
,TTransactionMessage
> =TTransactionMessage
extendsobject
?TTransactionMessage
["lifetimeConstraint"
] extendsTransactionMessageWithBlockhashLifetime
["lifetimeConstraint"
] ?TransactionWithBlockhashLifetime
&TTransaction
:TTransactionMessage
["lifetimeConstraint"
] extendsTransactionMessageWithDurableNonceLifetime
["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 |