assertIsDurableNonceTransactionMessage
const
assertIsDurableNonceTransactionMessage: (transactionMessage
) => asserts transactionMessage is Readonly<{ instructions: readonly Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>[]; version: TransactionVersion }> & TransactionMessageWithDurableNonceLifetime<string, string, string> =assertIsTransactionMessageWithDurableNonceLifetime
From time to time you might acquire a transaction message, that you expect to have a nonce-based lifetime, from an untrusted network API or user input. Use this function to assert that such a transaction message actually has a nonce-based lifetime.
From time to time you might acquire a transaction message, that you expect to have a nonce-based lifetime, from an untrusted network API or user input. Use this function to assert that such a transaction message actually has a nonce-based lifetime.
Parameters
Parameter | Type |
---|---|
transactionMessage | Readonly <{ instructions : readonly Instruction <string , readonly (AccountLookupMeta <string , string > | AccountMeta <string >)[]>[]; version : TransactionVersion ; }> | Readonly <{ instructions : readonly Instruction <string , readonly (AccountLookupMeta <string , string > | AccountMeta <string >)[]>[]; version : TransactionVersion ; }> & TransactionMessageWithDurableNonceLifetime <string , string , string > |
Returns
asserts transactionMessage is Readonly<{ instructions: readonly Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>[]; version: TransactionVersion }> & TransactionMessageWithDurableNonceLifetime<string, string, string>
Example
Deprecated
Use assertIsTransactionMessageWithDurableNonceLifetime instead. It was only renamed.