> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# Splice.Wallet.TopUpState

> Documentation for Splice.Wallet.TopUpState

## Templates

**template** ValidatorTopUpState

> The state of a given top-up loop.
>
> Records the last time when this validator purchased traffic for this sequencer member in order to:
>
> 1. allow for crash fault tolerant deduplication of traffic purchases
> 2. allow enforcing a rate limit to prevent the validator from spending too much on traffic purchases.
>
> Signatory: validator
>
> | Field | Type | Description |
> | - | - | - |
> | dso | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> | validator | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | The validator operator purchasing traffic for the given sequencer member |
> | memberId | [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) | The id of the sequencer member (participant or mediator) for which traffic has been purchased |
> | synchronizerId | [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) | The id of the synchronizer for which this contract tracks purchased extra traffic |
> | migrationId | [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261) | The migration id of the synchronizer for which this contract tracks purchased extra traffic |
> | lastPurchasedAt | [Time](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-time-63886) | Time when the traffic was last purchased by the validator for the given sequencer member |
>
> * **Choice** Archive
>
>   Controller: validator
>
>   Returns: ()
>
>   (no fields)

## Functions

initialValidatorTopUpState
: [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) -> [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) -> [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) -> [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) -> ValidatorTopUpState
