setTransactionMessageLifetimeUsingDurableNonce
setTransactionMessageLifetimeUsingDurableNonce<
TTransactionMessage
,TNonceAccountAddress
,TNonceAuthorityAddress
,TNonceValue
>(__namedParameters
,transactionMessage
):SetTransactionMessageWithDurableNonceLifetime
<TTransactionMessage
,TNonceAccountAddress
,TNonceAuthorityAddress
,TNonceValue
>
Given a nonce, the account where the value of the nonce is stored, and the address of the account authorized to consume that nonce, this method will return a new transaction having the same type as the one supplied plus the TransactionMessageWithDurableNonceLifetime type.
In particular, this method prepends an instruction to the transaction message designed to consume (or 'advance') the nonce in the same transaction whose lifetime is defined by it.
Type Parameters
Type Parameter | Default type |
---|---|
TTransactionMessage extends Readonly <{ instructions : readonly Instruction <string , readonly (AccountLookupMeta <string , string > | AccountMeta <string >)[]>[]; version : TransactionVersion ; }> | - |
TNonceAccountAddress extends string | string |
TNonceAuthorityAddress extends string | string |
TNonceValue extends string | string |
Parameters
Parameter | Type |
---|---|
__namedParameters | DurableNonceConfig <TNonceAccountAddress , TNonceAuthorityAddress , TNonceValue > |
transactionMessage | TTransactionMessage |
Returns
SetTransactionMessageWithDurableNonceLifetime
<TTransactionMessage
, TNonceAccountAddress
, TNonceAuthorityAddress
, TNonceValue
>