Automation

Fystack's automation tools help businesses streamline their crypto operations, reduce development time, and minimize operational overhead. Instead of building complex fund management systems from scratch, teams can focus on their core business while ensuring secure and efficient treasury operations.

Key Benefits

  • Development Efficiency: Implement automated fund movements without writing complex blockchain monitoring code
  • Operational Excellence: Reduce manual treasury operations and minimize human error
  • Team Management: Simplify fund consolidation across multiple business units and wallets
  • Risk Reduction: Automate the movement of funds to secure storage based on configurable thresholds
Fystack Auto Consolidation

Sweep Tasks

A sweep task automatically transfers funds from source wallets to a destination wallet based on configured triggers.

Common Use Cases

  • Exchange Operations: Automatically sweep user deposits to hot wallet, cold storage
  • Payment Gateway: Process merchant settlements to operational wallets
  • Treasury: Consolidate funds from multiple business wallets
  • Risk Management: Move funds from hot wallets to secure storage

Read more about automation use cases and best practices in our detailed guide.

Creating Sweep Tasks

During Wallet Creation (API, SDKs)

You can set up automatic sweeping when creating a new wallet through our API or SDKs:

// Create wallet with new sweep task
await sdk.createWallet({
    name: 'User Payment Wallet',
    walletType: WalletType.Standard,
    sweepTaskParams: {
        minTriggerValueUsd: '100.00',
        destinationWalletId: '123e4567-e89b-12d3-a456-426614174001',
        destinationType: 'internal_wallet'
    }
})

See Create a Wallet for complete wallet creation details.

Create Sweep Task Manually

Wallet Configuration
  1. Navigate to Automation > Add Sweep Task
image-2025-09-15T14-37-20-837Z
  1. Enter task name and select "periodic" strategy
image-2025-09-15T14-37-57-659Z
  1. Trigger Configuration
  • Minimum Trigger Value (USD): Balance threshold that triggers a sweep
  • Check Frequency (Seconds): How often to check source wallets

Wallet Configuration

  1. Source Wallets
    • Select wallets to monitor for sweeping
    • Multiple wallets can be selected
image-2025-09-15T14-39-01-087Z
  1. Destination Wallet Choose either:
    • Internal Wallet: Select from workspace wallets
    • Address Book: Use saved wallet addresses
image-2025-09-15T14-39-22-626Z

Updating Sweep Tasks

You can modify existing sweep tasks:

  1. Change Destination Wallet
    • Click on the task you want to update
    • Click on the destination wallet dropdown
    • Choose a new destination wallet
image-2025-09-15T14-40-22-977Z
  1. Adjust Trigger Settings

    • Modify minimum trigger value
    • Update check frequency
  2. Task Status

    • Toggle the task status switch to activate/deactivate the sweep task
    • Deactivating a task temporarily stops all automatic sweeping
    • Reactivate anytime to resume sweeping with the same configuration
image-2025-09-15T14-42-27-909Z

Deleting a Sweep Task

To delete a sweep task:

  1. Navigate to the sweep tasks list view
  2. Find the task you want to delete
  3. Click the kebab menu (⋮) on the right side of the task
  4. Select "Delete" from the menu options
Deleting a sweep task

Best Practices

  • Test with small amounts first
  • Start with higher check frequencies for critical operations
  • Verify destination addresses before activating
  • Monitor initial transfers to ensure correct setup