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

# Transaction manager

> Execute, retry and finalize transactions with strong guarantees

Kwala manages the full transaction lifecycle when your workflow calls a smart contract function. It handles all calls, submission, retries, and confirmation so your transactions land on-chain reliably. Kwala provides strong guarantees that your transactions will finalize through:

## Automatic retries

The `RetriesUntilSuccess` field ensures critical operations complete even when network conditions cause temporary failures.

```yaml theme={null}
actions:
  - Name: critical_transfer
    Type: call
    TargetContract: 0x65b2b850fee0e0c13d956ab5...
    TargetFunction: function execute(address to)
    TargetParams:
      - 0x742d35Cc6e9A5f1e7A0e6FD4C8b2Bc3F5d9E1234
    ChainID: 80002
    RetriesUntilSuccess: 5
```

**Retry behavior:**

* Retries happen automatically on failure
* A delay is applied between retries
* Total attempts = 1 (initial) + RetriesUntilSuccess

## Using dynamic parameters

Reference event data in your transaction parameters using `re.event()`:

```yaml theme={null}
TargetParams:
  - re.event(0)    # first parameter from triggering event
  - re.event(1)    # second parameter
```

This enables workflows where the triggering event determines transaction details.

## Use cases

The following use cases demonstrate Kwala's transaction manager in action:

> [card] [Auto top-up wallet](https://kwala.network/docs/use-cases/auto-top-up-wallet.md)
>
> Automatically fund wallets when balance is low

> [card] [Game reward payouts](https://kwala.network/docs/use-cases/blockchain-game-reward-payouts.md)
>
> Call payout functions on game contracts

## Next steps

> [card] [Actions](https://kwala.network/docs/concepts/actions.md)
>
> Learn about all available workflow actions

> [card] [Configure workflow](https://kwala.network/docs/workflow-builder/configure-workflow.md)
>
> Set up contract calls in the workflow builder


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.