setTransactionMessageLifetimeUsingBlockhash
Given a blockhash and the last block height at which that blockhash is considered usable to land
transactions, this method will return a new transaction message having the same type as the one
supplied plus the TransactionMessageWithBlockhashLifetime type.
Type Parameters
| Type Parameter |
|---|
TTransactionMessage extends Readonly<{ instructions: readonly Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>[]; version: TransactionVersion; }> & Partial<TransactionMessageWithLifetime> |
Parameters
| Parameter | Type |
|---|---|
blockhashLifetimeConstraint | BlockhashLifetimeConstraint |
transactionMessage | TTransactionMessage |
Returns
ExcludeTransactionMessageLifetime<TTransactionMessage> & TransactionMessageWithBlockhashLifetime