diff --git a/docs/code/interfaces/types_app.AppCallParams.md b/docs/code/interfaces/types_app.AppCallParams.md index bc51f40e..7b6895e5 100644 --- a/docs/code/interfaces/types_app.AppCallParams.md +++ b/docs/code/interfaces/types_app.AppCallParams.md @@ -21,7 +21,9 @@ Parameters representing a call to an app. - [atc](types_app.AppCallParams.md#atc) - [callType](types_app.AppCallParams.md#calltype) - [fee](types_app.AppCallParams.md#fee) +- [firstValid](types_app.AppCallParams.md#firstvalid) - [from](types_app.AppCallParams.md#from) +- [lastValid](types_app.AppCallParams.md#lastvalid) - [maxFee](types_app.AppCallParams.md#maxfee) - [maxRoundsToWaitForConfirmation](types_app.AppCallParams.md#maxroundstowaitforconfirmation) - [note](types_app.AppCallParams.md#note) @@ -101,6 +103,22 @@ The flat fee you want to pay, useful for covering extra fees in a transaction gr ___ +### firstValid + +• `Optional` **firstValid**: `number` + +If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[firstValid](types_transaction.SendTransactionParams.md#firstvalid) + +#### Defined in + +[src/types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48) + +___ + ### from • **from**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom) @@ -113,6 +131,22 @@ The account to make the call from ___ +### lastValid + +• `Optional` **lastValid**: `number` + +If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[lastValid](types_transaction.SendTransactionParams.md#lastvalid) + +#### Defined in + +[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) + +___ + ### maxFee • `Optional` **maxFee**: [`AlgoAmount`](../classes/types_amount.AlgoAmount.md) diff --git a/docs/code/interfaces/types_app.AppCallTransactionResultOfType.md b/docs/code/interfaces/types_app.AppCallTransactionResultOfType.md index b975c0db..80e2449b 100644 --- a/docs/code/interfaces/types_app.AppCallTransactionResultOfType.md +++ b/docs/code/interfaces/types_app.AppCallTransactionResultOfType.md @@ -44,7 +44,7 @@ The response if the transaction was sent and waited for #### Defined in -[src/types/transaction.ts:57](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L57) +[src/types/transaction.ts:61](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L61) ___ @@ -61,7 +61,7 @@ the index of the confirmation will match the index of the underlying transaction #### Defined in -[src/types/transaction.ts:67](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L67) +[src/types/transaction.ts:71](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L71) ___ @@ -89,7 +89,7 @@ The transaction #### Defined in -[src/types/transaction.ts:55](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L55) +[src/types/transaction.ts:59](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L59) ___ @@ -105,4 +105,4 @@ The transactions that have been prepared and/or sent #### Defined in -[src/types/transaction.ts:63](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L63) +[src/types/transaction.ts:67](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L67) diff --git a/docs/code/interfaces/types_app.AppDeploymentParams.md b/docs/code/interfaces/types_app.AppDeploymentParams.md index 1ca9f699..674f5ef5 100644 --- a/docs/code/interfaces/types_app.AppDeploymentParams.md +++ b/docs/code/interfaces/types_app.AppDeploymentParams.md @@ -24,7 +24,9 @@ The parameters to deploy an app - [deployTimeParams](types_app.AppDeploymentParams.md#deploytimeparams) - [existingDeployments](types_app.AppDeploymentParams.md#existingdeployments) - [fee](types_app.AppDeploymentParams.md#fee) +- [firstValid](types_app.AppDeploymentParams.md#firstvalid) - [from](types_app.AppDeploymentParams.md#from) +- [lastValid](types_app.AppDeploymentParams.md#lastvalid) - [maxFee](types_app.AppDeploymentParams.md#maxfee) - [maxRoundsToWaitForConfirmation](types_app.AppDeploymentParams.md#maxroundstowaitforconfirmation) - [metadata](types_app.AppDeploymentParams.md#metadata) @@ -146,6 +148,22 @@ Omit.fee ___ +### firstValid + +• `Optional` **firstValid**: `number` + +If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +Omit.firstValid + +#### Defined in + +[src/types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48) + +___ + ### from • **from**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom) @@ -162,6 +180,22 @@ Omit.from ___ +### lastValid + +• `Optional` **lastValid**: `number` + +If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +Omit.lastValid + +#### Defined in + +[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) + +___ + ### maxFee • `Optional` **maxFee**: [`AlgoAmount`](../classes/types_amount.AlgoAmount.md) diff --git a/docs/code/interfaces/types_app.CreateAppParams.md b/docs/code/interfaces/types_app.CreateAppParams.md index 94c796a3..116755dd 100644 --- a/docs/code/interfaces/types_app.CreateAppParams.md +++ b/docs/code/interfaces/types_app.CreateAppParams.md @@ -25,7 +25,9 @@ Parameters that are passed in when creating an app. - [atc](types_app.CreateAppParams.md#atc) - [clearStateProgram](types_app.CreateAppParams.md#clearstateprogram) - [fee](types_app.CreateAppParams.md#fee) +- [firstValid](types_app.CreateAppParams.md#firstvalid) - [from](types_app.CreateAppParams.md#from) +- [lastValid](types_app.CreateAppParams.md#lastvalid) - [maxFee](types_app.CreateAppParams.md#maxfee) - [maxRoundsToWaitForConfirmation](types_app.CreateAppParams.md#maxroundstowaitforconfirmation) - [note](types_app.CreateAppParams.md#note) @@ -119,6 +121,22 @@ CreateOrUpdateAppParams.fee ___ +### firstValid + +• `Optional` **firstValid**: `number` + +If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +CreateOrUpdateAppParams.firstValid + +#### Defined in + +[src/types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48) + +___ + ### from • **from**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom) @@ -135,6 +153,22 @@ CreateOrUpdateAppParams.from ___ +### lastValid + +• `Optional` **lastValid**: `number` + +If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +CreateOrUpdateAppParams.lastValid + +#### Defined in + +[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) + +___ + ### maxFee • `Optional` **maxFee**: [`AlgoAmount`](../classes/types_amount.AlgoAmount.md) diff --git a/docs/code/interfaces/types_app.UpdateAppParams.md b/docs/code/interfaces/types_app.UpdateAppParams.md index 0249bd35..3f4f34a1 100644 --- a/docs/code/interfaces/types_app.UpdateAppParams.md +++ b/docs/code/interfaces/types_app.UpdateAppParams.md @@ -26,7 +26,9 @@ Parameters that are passed in when updating an app. - [atc](types_app.UpdateAppParams.md#atc) - [clearStateProgram](types_app.UpdateAppParams.md#clearstateprogram) - [fee](types_app.UpdateAppParams.md#fee) +- [firstValid](types_app.UpdateAppParams.md#firstvalid) - [from](types_app.UpdateAppParams.md#from) +- [lastValid](types_app.UpdateAppParams.md#lastvalid) - [maxFee](types_app.UpdateAppParams.md#maxfee) - [maxRoundsToWaitForConfirmation](types_app.UpdateAppParams.md#maxroundstowaitforconfirmation) - [note](types_app.UpdateAppParams.md#note) @@ -130,6 +132,22 @@ CreateOrUpdateAppParams.fee ___ +### firstValid + +• `Optional` **firstValid**: `number` + +If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +CreateOrUpdateAppParams.firstValid + +#### Defined in + +[src/types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48) + +___ + ### from • **from**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom) @@ -146,6 +164,22 @@ CreateOrUpdateAppParams.from ___ +### lastValid + +• `Optional` **lastValid**: `number` + +If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +CreateOrUpdateAppParams.lastValid + +#### Defined in + +[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) + +___ + ### maxFee • `Optional` **maxFee**: [`AlgoAmount`](../classes/types_amount.AlgoAmount.md) diff --git a/docs/code/interfaces/types_asset.AssetOptInParams.md b/docs/code/interfaces/types_asset.AssetOptInParams.md index d5e72f8d..5292fded 100644 --- a/docs/code/interfaces/types_asset.AssetOptInParams.md +++ b/docs/code/interfaces/types_asset.AssetOptInParams.md @@ -24,6 +24,8 @@ Parameters for `assetOptIn` call. - [assetId](types_asset.AssetOptInParams.md#assetid) - [atc](types_asset.AssetOptInParams.md#atc) - [fee](types_asset.AssetOptInParams.md#fee) +- [firstValid](types_asset.AssetOptInParams.md#firstvalid) +- [lastValid](types_asset.AssetOptInParams.md#lastvalid) - [lease](types_asset.AssetOptInParams.md#lease) - [maxFee](types_asset.AssetOptInParams.md#maxfee) - [maxRoundsToWaitForConfirmation](types_asset.AssetOptInParams.md#maxroundstowaitforconfirmation) @@ -92,6 +94,38 @@ The flat fee you want to pay, useful for covering extra fees in a transaction gr ___ +### firstValid + +• `Optional` **firstValid**: `number` + +If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[firstValid](types_transaction.SendTransactionParams.md#firstvalid) + +#### Defined in + +[src/types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48) + +___ + +### lastValid + +• `Optional` **lastValid**: `number` + +If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[lastValid](types_transaction.SendTransactionParams.md#lastvalid) + +#### Defined in + +[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) + +___ + ### lease • `Optional` **lease**: `string` \| `Uint8Array` diff --git a/docs/code/interfaces/types_asset.AssetOptOutParams.md b/docs/code/interfaces/types_asset.AssetOptOutParams.md index 99de450b..6d20eaa1 100644 --- a/docs/code/interfaces/types_asset.AssetOptOutParams.md +++ b/docs/code/interfaces/types_asset.AssetOptOutParams.md @@ -24,6 +24,8 @@ Parameters for `assetOptOut` call. - [atc](types_asset.AssetOptOutParams.md#atc) - [ensureZeroBalance](types_asset.AssetOptOutParams.md#ensurezerobalance) - [fee](types_asset.AssetOptOutParams.md#fee) +- [firstValid](types_asset.AssetOptOutParams.md#firstvalid) +- [lastValid](types_asset.AssetOptOutParams.md#lastvalid) - [lease](types_asset.AssetOptOutParams.md#lease) - [maxFee](types_asset.AssetOptOutParams.md#maxfee) - [maxRoundsToWaitForConfirmation](types_asset.AssetOptOutParams.md#maxroundstowaitforconfirmation) @@ -124,6 +126,38 @@ The flat fee you want to pay, useful for covering extra fees in a transaction gr ___ +### firstValid + +• `Optional` **firstValid**: `number` + +If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[AssetOptInParams](types_asset.AssetOptInParams.md).[firstValid](types_asset.AssetOptInParams.md#firstvalid) + +#### Defined in + +[src/types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48) + +___ + +### lastValid + +• `Optional` **lastValid**: `number` + +If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[AssetOptInParams](types_asset.AssetOptInParams.md).[lastValid](types_asset.AssetOptInParams.md#lastvalid) + +#### Defined in + +[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) + +___ + ### lease • `Optional` **lease**: `string` \| `Uint8Array` diff --git a/docs/code/interfaces/types_asset.CreateAssetParams.md b/docs/code/interfaces/types_asset.CreateAssetParams.md index 22dd2136..c78283ea 100644 --- a/docs/code/interfaces/types_asset.CreateAssetParams.md +++ b/docs/code/interfaces/types_asset.CreateAssetParams.md @@ -23,8 +23,10 @@ Parameters for `createAsset` call. - [creator](types_asset.CreateAssetParams.md#creator) - [decimals](types_asset.CreateAssetParams.md#decimals) - [fee](types_asset.CreateAssetParams.md#fee) +- [firstValid](types_asset.CreateAssetParams.md#firstvalid) - [freezeAccount](types_asset.CreateAssetParams.md#freezeaccount) - [frozenByDefault](types_asset.CreateAssetParams.md#frozenbydefault) +- [lastValid](types_asset.CreateAssetParams.md#lastvalid) - [lease](types_asset.CreateAssetParams.md#lease) - [manager](types_asset.CreateAssetParams.md#manager) - [maxFee](types_asset.CreateAssetParams.md#maxfee) @@ -120,6 +122,22 @@ The flat fee you want to pay, useful for covering extra fees in a transaction gr ___ +### firstValid + +• `Optional` **firstValid**: `number` + +If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[firstValid](types_transaction.SendTransactionParams.md#firstvalid) + +#### Defined in + +[src/types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48) + +___ + ### freezeAccount • `Optional` **freezeAccount**: `string` \| [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom) @@ -145,6 +163,22 @@ Whether to freeze holdings for this asset by default. If `true` then for anyone ___ +### lastValid + +• `Optional` **lastValid**: `number` + +If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[lastValid](types_transaction.SendTransactionParams.md#lastvalid) + +#### Defined in + +[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) + +___ + ### lease • `Optional` **lease**: `string` \| `Uint8Array` diff --git a/docs/code/interfaces/types_transaction.AdditionalAtomicTransactionComposerContext.md b/docs/code/interfaces/types_transaction.AdditionalAtomicTransactionComposerContext.md index d0f20124..595f07c2 100644 --- a/docs/code/interfaces/types_transaction.AdditionalAtomicTransactionComposerContext.md +++ b/docs/code/interfaces/types_transaction.AdditionalAtomicTransactionComposerContext.md @@ -23,7 +23,7 @@ A map of transaction index in the `AtomicTransactionComposer` to the max fee tha #### Defined in -[src/types/transaction.ts:148](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L148) +[src/types/transaction.ts:152](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L152) ___ @@ -33,4 +33,4 @@ ___ #### Defined in -[src/types/transaction.ts:151](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L151) +[src/types/transaction.ts:155](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L155) diff --git a/docs/code/interfaces/types_transaction.AtomicTransactionComposerToSend.md b/docs/code/interfaces/types_transaction.AtomicTransactionComposerToSend.md index 85d472a8..da159090 100644 --- a/docs/code/interfaces/types_transaction.AtomicTransactionComposerToSend.md +++ b/docs/code/interfaces/types_transaction.AtomicTransactionComposerToSend.md @@ -35,7 +35,7 @@ This additional context is used and must be supplied when coverAppCallInnerTrans #### Defined in -[src/types/transaction.ts:167](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L167) +[src/types/transaction.ts:171](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L171) ___ @@ -47,7 +47,7 @@ The `AtomicTransactionComposer` with transactions loaded to send #### Defined in -[src/types/transaction.ts:157](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L157) +[src/types/transaction.ts:161](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L161) ___ @@ -63,7 +63,7 @@ Whether to use simulate to automatically calculate required app call inner trans #### Defined in -[src/types/transaction.ts:142](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L142) +[src/types/transaction.ts:146](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L146) ___ @@ -79,7 +79,7 @@ The number of rounds to wait for confirmation. By default until the latest lastV #### Defined in -[src/types/transaction.ts:136](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L136) +[src/types/transaction.ts:140](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L140) ___ @@ -95,7 +95,7 @@ Whether to use simulate to automatically populate app call resources in the txn #### Defined in -[src/types/transaction.ts:140](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L140) +[src/types/transaction.ts:144](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L144) ___ @@ -110,7 +110,7 @@ Any parameters to control the semantics of the send to the network #### Defined in -[src/types/transaction.ts:161](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L161) +[src/types/transaction.ts:165](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L165) ___ @@ -126,4 +126,4 @@ Whether to suppress log messages from transaction send, default: do not suppress #### Defined in -[src/types/transaction.ts:138](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L138) +[src/types/transaction.ts:142](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L142) diff --git a/docs/code/interfaces/types_transaction.ConfirmedTransactionResult.md b/docs/code/interfaces/types_transaction.ConfirmedTransactionResult.md index 259c670a..dfeff6a0 100644 --- a/docs/code/interfaces/types_transaction.ConfirmedTransactionResult.md +++ b/docs/code/interfaces/types_transaction.ConfirmedTransactionResult.md @@ -33,7 +33,7 @@ The response from sending and waiting for the transaction #### Defined in -[src/types/transaction.ts:87](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L87) +[src/types/transaction.ts:91](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L91) ___ @@ -49,4 +49,4 @@ The transaction #### Defined in -[src/types/transaction.ts:55](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L55) +[src/types/transaction.ts:59](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L59) diff --git a/docs/code/interfaces/types_transaction.ConfirmedTransactionResults.md b/docs/code/interfaces/types_transaction.ConfirmedTransactionResults.md index cc46e3ce..cc336292 100644 --- a/docs/code/interfaces/types_transaction.ConfirmedTransactionResults.md +++ b/docs/code/interfaces/types_transaction.ConfirmedTransactionResults.md @@ -37,7 +37,7 @@ The response from sending and waiting for the primary transaction #### Defined in -[src/types/transaction.ts:93](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L93) +[src/types/transaction.ts:97](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L97) ___ @@ -53,7 +53,7 @@ The response from sending and waiting for the transactions #### Defined in -[src/types/transaction.ts:95](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L95) +[src/types/transaction.ts:99](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L99) ___ @@ -69,7 +69,7 @@ The transaction #### Defined in -[src/types/transaction.ts:55](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L55) +[src/types/transaction.ts:59](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L59) ___ @@ -85,4 +85,4 @@ The transactions that have been prepared and/or sent #### Defined in -[src/types/transaction.ts:63](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L63) +[src/types/transaction.ts:67](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L67) diff --git a/docs/code/interfaces/types_transaction.SendAtomicTransactionComposerResults.md b/docs/code/interfaces/types_transaction.SendAtomicTransactionComposerResults.md index a6a0afe9..8d78434e 100644 --- a/docs/code/interfaces/types_transaction.SendAtomicTransactionComposerResults.md +++ b/docs/code/interfaces/types_transaction.SendAtomicTransactionComposerResults.md @@ -37,7 +37,7 @@ the index of the confirmation will match the index of the underlying transaction #### Defined in -[src/types/transaction.ts:81](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L81) +[src/types/transaction.ts:85](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L85) ___ @@ -49,7 +49,7 @@ base64 encoded representation of the group ID of the atomic group #### Defined in -[src/types/transaction.ts:73](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L73) +[src/types/transaction.ts:77](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L77) ___ @@ -61,7 +61,7 @@ If ABI method(s) were called the processed return values #### Defined in -[src/types/transaction.ts:77](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L77) +[src/types/transaction.ts:81](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L81) ___ @@ -77,7 +77,7 @@ The transactions that have been prepared and/or sent #### Defined in -[src/types/transaction.ts:63](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L63) +[src/types/transaction.ts:67](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L67) ___ @@ -89,4 +89,4 @@ The transaction IDs that have been prepared and/or sent #### Defined in -[src/types/transaction.ts:75](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L75) +[src/types/transaction.ts:79](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L79) diff --git a/docs/code/interfaces/types_transaction.SendParams.md b/docs/code/interfaces/types_transaction.SendParams.md index 3ed53aec..d0cfc9eb 100644 --- a/docs/code/interfaces/types_transaction.SendParams.md +++ b/docs/code/interfaces/types_transaction.SendParams.md @@ -31,7 +31,7 @@ Whether to use simulate to automatically calculate required app call inner trans #### Defined in -[src/types/transaction.ts:142](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L142) +[src/types/transaction.ts:146](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L146) ___ @@ -43,7 +43,7 @@ The number of rounds to wait for confirmation. By default until the latest lastV #### Defined in -[src/types/transaction.ts:136](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L136) +[src/types/transaction.ts:140](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L140) ___ @@ -55,7 +55,7 @@ Whether to use simulate to automatically populate app call resources in the txn #### Defined in -[src/types/transaction.ts:140](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L140) +[src/types/transaction.ts:144](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L144) ___ @@ -67,4 +67,4 @@ Whether to suppress log messages from transaction send, default: do not suppress #### Defined in -[src/types/transaction.ts:138](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L138) +[src/types/transaction.ts:142](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L142) diff --git a/docs/code/interfaces/types_transaction.SendTransactionParams.md b/docs/code/interfaces/types_transaction.SendTransactionParams.md index c3666e63..a0942352 100644 --- a/docs/code/interfaces/types_transaction.SendTransactionParams.md +++ b/docs/code/interfaces/types_transaction.SendTransactionParams.md @@ -30,6 +30,8 @@ The sending configuration for a transaction - [atc](types_transaction.SendTransactionParams.md#atc) - [fee](types_transaction.SendTransactionParams.md#fee) +- [firstValid](types_transaction.SendTransactionParams.md#firstvalid) +- [lastValid](types_transaction.SendTransactionParams.md#lastvalid) - [maxFee](types_transaction.SendTransactionParams.md#maxfee) - [maxRoundsToWaitForConfirmation](types_transaction.SendTransactionParams.md#maxroundstowaitforconfirmation) - [populateAppCallResources](types_transaction.SendTransactionParams.md#populateappcallresources) @@ -63,6 +65,30 @@ The flat fee you want to pay, useful for covering extra fees in a transaction gr ___ +### firstValid + +• `Optional` **firstValid**: `number` + +If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Defined in + +[src/types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48) + +___ + +### lastValid + +• `Optional` **lastValid**: `number` + +If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Defined in + +[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) + +___ + ### maxFee • `Optional` **maxFee**: [`AlgoAmount`](../classes/types_amount.AlgoAmount.md) diff --git a/docs/code/interfaces/types_transaction.SendTransactionResult.md b/docs/code/interfaces/types_transaction.SendTransactionResult.md index 58470c14..fd7470e0 100644 --- a/docs/code/interfaces/types_transaction.SendTransactionResult.md +++ b/docs/code/interfaces/types_transaction.SendTransactionResult.md @@ -33,7 +33,7 @@ The response if the transaction was sent and waited for #### Defined in -[src/types/transaction.ts:57](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L57) +[src/types/transaction.ts:61](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L61) ___ @@ -45,4 +45,4 @@ The transaction #### Defined in -[src/types/transaction.ts:55](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L55) +[src/types/transaction.ts:59](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L59) diff --git a/docs/code/interfaces/types_transaction.SendTransactionResults.md b/docs/code/interfaces/types_transaction.SendTransactionResults.md index 12e5e9b4..55e956a7 100644 --- a/docs/code/interfaces/types_transaction.SendTransactionResults.md +++ b/docs/code/interfaces/types_transaction.SendTransactionResults.md @@ -34,7 +34,7 @@ the index of the confirmation will match the index of the underlying transaction #### Defined in -[src/types/transaction.ts:67](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L67) +[src/types/transaction.ts:71](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L71) ___ @@ -46,4 +46,4 @@ The transactions that have been prepared and/or sent #### Defined in -[src/types/transaction.ts:63](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L63) +[src/types/transaction.ts:67](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L67) diff --git a/docs/code/interfaces/types_transaction.TransactionGroupToSend.md b/docs/code/interfaces/types_transaction.TransactionGroupToSend.md index 10dc5e5e..2aa70dbf 100644 --- a/docs/code/interfaces/types_transaction.TransactionGroupToSend.md +++ b/docs/code/interfaces/types_transaction.TransactionGroupToSend.md @@ -25,7 +25,7 @@ Any parameters to control the semantics of the send to the network #### Defined in -[src/types/transaction.ts:123](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L123) +[src/types/transaction.ts:127](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L127) ___ @@ -37,7 +37,7 @@ Optional signer to pass in, required if at least one transaction provided is jus #### Defined in -[src/types/transaction.ts:130](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L130) +[src/types/transaction.ts:134](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L134) ___ @@ -51,4 +51,4 @@ The list of transactions to send, which can either be a raw transaction (in whic #### Defined in -[src/types/transaction.ts:128](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L128) +[src/types/transaction.ts:132](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L132) diff --git a/docs/code/interfaces/types_transaction.TransactionToSign.md b/docs/code/interfaces/types_transaction.TransactionToSign.md index 70ad95ed..48176af4 100644 --- a/docs/code/interfaces/types_transaction.TransactionToSign.md +++ b/docs/code/interfaces/types_transaction.TransactionToSign.md @@ -23,7 +23,7 @@ The account to use to sign the transaction, either an account (with private key #### Defined in -[src/types/transaction.ts:115](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L115) +[src/types/transaction.ts:119](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L119) ___ @@ -35,4 +35,4 @@ The unsigned transaction to sign and send #### Defined in -[src/types/transaction.ts:113](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L113) +[src/types/transaction.ts:117](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L117) diff --git a/docs/code/interfaces/types_transfer.AlgoRekeyParams.md b/docs/code/interfaces/types_transfer.AlgoRekeyParams.md index 1c208997..8e7f4d3d 100644 --- a/docs/code/interfaces/types_transfer.AlgoRekeyParams.md +++ b/docs/code/interfaces/types_transfer.AlgoRekeyParams.md @@ -20,7 +20,9 @@ Parameters for `rekeyAccount` call. - [atc](types_transfer.AlgoRekeyParams.md#atc) - [fee](types_transfer.AlgoRekeyParams.md#fee) +- [firstValid](types_transfer.AlgoRekeyParams.md#firstvalid) - [from](types_transfer.AlgoRekeyParams.md#from) +- [lastValid](types_transfer.AlgoRekeyParams.md#lastvalid) - [lease](types_transfer.AlgoRekeyParams.md#lease) - [maxFee](types_transfer.AlgoRekeyParams.md#maxfee) - [maxRoundsToWaitForConfirmation](types_transfer.AlgoRekeyParams.md#maxroundstowaitforconfirmation) @@ -66,6 +68,22 @@ The flat fee you want to pay, useful for covering extra fees in a transaction gr ___ +### firstValid + +• `Optional` **firstValid**: `number` + +If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[firstValid](types_transaction.SendTransactionParams.md#firstvalid) + +#### Defined in + +[src/types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48) + +___ + ### from • **from**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom) @@ -78,6 +96,22 @@ The account that will be rekeyed ___ +### lastValid + +• `Optional` **lastValid**: `number` + +If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[lastValid](types_transaction.SendTransactionParams.md#lastvalid) + +#### Defined in + +[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) + +___ + ### lease • `Optional` **lease**: `string` \| `Uint8Array` diff --git a/docs/code/interfaces/types_transfer.AlgoTransferParams.md b/docs/code/interfaces/types_transfer.AlgoTransferParams.md index efdb0af3..e710959a 100644 --- a/docs/code/interfaces/types_transfer.AlgoTransferParams.md +++ b/docs/code/interfaces/types_transfer.AlgoTransferParams.md @@ -21,7 +21,9 @@ Parameters for `transferAlgos` call. - [amount](types_transfer.AlgoTransferParams.md#amount) - [atc](types_transfer.AlgoTransferParams.md#atc) - [fee](types_transfer.AlgoTransferParams.md#fee) +- [firstValid](types_transfer.AlgoTransferParams.md#firstvalid) - [from](types_transfer.AlgoTransferParams.md#from) +- [lastValid](types_transfer.AlgoTransferParams.md#lastvalid) - [lease](types_transfer.AlgoTransferParams.md#lease) - [maxFee](types_transfer.AlgoTransferParams.md#maxfee) - [maxRoundsToWaitForConfirmation](types_transfer.AlgoTransferParams.md#maxroundstowaitforconfirmation) @@ -79,6 +81,22 @@ The flat fee you want to pay, useful for covering extra fees in a transaction gr ___ +### firstValid + +• `Optional` **firstValid**: `number` + +If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[firstValid](types_transaction.SendTransactionParams.md#firstvalid) + +#### Defined in + +[src/types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48) + +___ + ### from • **from**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom) @@ -91,6 +109,22 @@ The account that will send the Algo ___ +### lastValid + +• `Optional` **lastValid**: `number` + +If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[lastValid](types_transaction.SendTransactionParams.md#lastvalid) + +#### Defined in + +[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) + +___ + ### lease • `Optional` **lease**: `string` \| `Uint8Array` diff --git a/docs/code/interfaces/types_transfer.EnsureFundedParams.md b/docs/code/interfaces/types_transfer.EnsureFundedParams.md index 31b82e06..e2da05a6 100644 --- a/docs/code/interfaces/types_transfer.EnsureFundedParams.md +++ b/docs/code/interfaces/types_transfer.EnsureFundedParams.md @@ -21,7 +21,9 @@ Parameters for `ensureFunded` call. - [accountToFund](types_transfer.EnsureFundedParams.md#accounttofund) - [atc](types_transfer.EnsureFundedParams.md#atc) - [fee](types_transfer.EnsureFundedParams.md#fee) +- [firstValid](types_transfer.EnsureFundedParams.md#firstvalid) - [fundingSource](types_transfer.EnsureFundedParams.md#fundingsource) +- [lastValid](types_transfer.EnsureFundedParams.md#lastvalid) - [lease](types_transfer.EnsureFundedParams.md#lease) - [maxFee](types_transfer.EnsureFundedParams.md#maxfee) - [maxRoundsToWaitForConfirmation](types_transfer.EnsureFundedParams.md#maxroundstowaitforconfirmation) @@ -80,6 +82,22 @@ The flat fee you want to pay, useful for covering extra fees in a transaction gr ___ +### firstValid + +• `Optional` **firstValid**: `number` + +If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[firstValid](types_transaction.SendTransactionParams.md#firstvalid) + +#### Defined in + +[src/types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48) + +___ + ### fundingSource • `Optional` **fundingSource**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom) \| [`TestNetDispenserApiClient`](../classes/types_dispenser_client.TestNetDispenserApiClient.md) @@ -92,6 +110,22 @@ The account to use as a funding source, will default to using the dispenser acco ___ +### lastValid + +• `Optional` **lastValid**: `number` + +If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[lastValid](types_transaction.SendTransactionParams.md#lastvalid) + +#### Defined in + +[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) + +___ + ### lease • `Optional` **lease**: `string` \| `Uint8Array` diff --git a/docs/code/interfaces/types_transfer.TransferAssetParams.md b/docs/code/interfaces/types_transfer.TransferAssetParams.md index f88a55c8..c8cba8c6 100644 --- a/docs/code/interfaces/types_transfer.TransferAssetParams.md +++ b/docs/code/interfaces/types_transfer.TransferAssetParams.md @@ -23,7 +23,9 @@ Parameters for `transferAsset` call. - [atc](types_transfer.TransferAssetParams.md#atc) - [clawbackFrom](types_transfer.TransferAssetParams.md#clawbackfrom) - [fee](types_transfer.TransferAssetParams.md#fee) +- [firstValid](types_transfer.TransferAssetParams.md#firstvalid) - [from](types_transfer.TransferAssetParams.md#from) +- [lastValid](types_transfer.TransferAssetParams.md#lastvalid) - [lease](types_transfer.TransferAssetParams.md#lease) - [maxFee](types_transfer.TransferAssetParams.md#maxfee) - [maxRoundsToWaitForConfirmation](types_transfer.TransferAssetParams.md#maxroundstowaitforconfirmation) @@ -105,6 +107,22 @@ The flat fee you want to pay, useful for covering extra fees in a transaction gr ___ +### firstValid + +• `Optional` **firstValid**: `number` + +If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[firstValid](types_transaction.SendTransactionParams.md#firstvalid) + +#### Defined in + +[src/types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48) + +___ + ### from • **from**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom) @@ -117,6 +135,22 @@ The account that will send the asset ___ +### lastValid + +• `Optional` **lastValid**: `number` + +If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod + +#### Inherited from + +[SendTransactionParams](types_transaction.SendTransactionParams.md).[lastValid](types_transaction.SendTransactionParams.md#lastvalid) + +#### Defined in + +[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) + +___ + ### lease • `Optional` **lease**: `string` \| `Uint8Array` diff --git a/docs/code/modules/index.md b/docs/code/modules/index.md index 6c4d9556..e898d17c 100644 --- a/docs/code/modules/index.md +++ b/docs/code/modules/index.md @@ -575,7 +575,7 @@ the estimated rate. #### Defined in -[src/transaction/transaction.ts:1057](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L1057) +[src/transaction/transaction.ts:1062](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L1062) ___ @@ -639,7 +639,7 @@ Allows for control of fees on a `Transaction` or `SuggestedParams` object #### Defined in -[src/transaction/transaction.ts:1084](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L1084) +[src/transaction/transaction.ts:1089](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L1089) ___ @@ -966,7 +966,7 @@ Converts `bigint`'s for Uint's < 64 to `number` for easier use. #### Defined in -[src/transaction/transaction.ts:927](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L927) +[src/transaction/transaction.ts:932](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L932) ___ @@ -1942,7 +1942,7 @@ Returns the array of transactions currently present in the given `AtomicTransact #### Defined in -[src/transaction/transaction.ts:1133](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L1133) +[src/transaction/transaction.ts:1138](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L1138) ___ @@ -2329,7 +2329,7 @@ Returns suggested transaction parameters from algod unless some are already prov #### Defined in -[src/transaction/transaction.ts:1111](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L1111) +[src/transaction/transaction.ts:1116](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L1116) ___ @@ -2761,7 +2761,7 @@ A new ATC with the resources populated into the transactions #### Defined in -[src/transaction/transaction.ts:382](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L382) +[src/transaction/transaction.ts:387](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L387) ___ @@ -2790,7 +2790,7 @@ A new ATC with the changes applied #### Defined in -[src/transaction/transaction.ts:401](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L401) +[src/transaction/transaction.ts:406](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L406) ___ @@ -2940,7 +2940,7 @@ An object with transaction IDs, transactions, group transaction ID (`groupTransa #### Defined in -[src/transaction/transaction.ts:776](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L776) +[src/transaction/transaction.ts:781](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L781) ___ @@ -2969,7 +2969,7 @@ Signs and sends a group of [up to 16](https://dev.algorand.co/concepts/transacti #### Defined in -[src/transaction/transaction.ts:956](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L956) +[src/transaction/transaction.ts:961](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L961) ___ @@ -3242,4 +3242,4 @@ Throws an error if the transaction is not confirmed or rejected in the next `tim #### Defined in -[src/transaction/transaction.ts:1000](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L1000) +[src/transaction/transaction.ts:1005](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/transaction/transaction.ts#L1005) diff --git a/docs/code/modules/types_transaction.md b/docs/code/modules/types_transaction.md index f10bdc91..db598751 100644 --- a/docs/code/modules/types_transaction.md +++ b/docs/code/modules/types_transaction.md @@ -48,7 +48,7 @@ Result from sending a single transaction. #### Defined in -[src/types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50) +[src/types/transaction.ts:54](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L54) ___ @@ -68,7 +68,7 @@ many types of accounts, including: #### Defined in -[src/types/transaction.ts:108](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L108) +[src/types/transaction.ts:112](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L112) ___ diff --git a/src/transaction/transaction.ts b/src/transaction/transaction.ts index 3e979a7c..b4fbbcf2 100644 --- a/src/transaction/transaction.ts +++ b/src/transaction/transaction.ts @@ -217,6 +217,11 @@ export const sendTransaction = async function ( const { transaction, from, sendParams } = send const { skipSending, skipWaiting, fee, maxFee, suppressLog, maxRoundsToWaitForConfirmation, atc } = sendParams ?? {} + // @ts-expect-error firstValid is marked as read only + if (sendParams?.firstValid) transaction.firstValid = sendParams.firstValid + // @ts-expect-error lastValid is marked as read only + if (sendParams?.lastValid) transaction.lastValid = sendParams.lastValid + controlFees(transaction, { fee, maxFee }) if (atc) { diff --git a/src/types/transaction.ts b/src/types/transaction.ts index 012ffa7f..8b7f36bc 100644 --- a/src/types/transaction.ts +++ b/src/types/transaction.ts @@ -44,6 +44,10 @@ export interface SendTransactionParams { maxRoundsToWaitForConfirmation?: number /** Whether to use simulate to automatically populate app call resources in the txn objects. Defaults to true when there are app calls in the group. */ populateAppCallResources?: boolean + /** If provided, explicitly set the first round this transaction will be valid. If not set, the suggested round will be retrieved from algod */ + firstValid?: number + /** If provided, explicitly set the last round this transaction will be valid. If not set, the suggested round will be retrieved from algod */ + lastValid?: number } /** Result from sending a single transaction. */