> For the complete documentation index, see [llms.txt](https://docs-processing.crypto-chief.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-processing.crypto-chief.com/managing-wallets/overview.md). Agents can also search and read this documentation through its [MCP server](https://docs-processing.crypto-chief.com/~gitbook/mcp).

# Overview

Signing modes for project wallets and how funds move from deposits to payouts.

### Wallet roles and signing

Each master, transit or static wallet has its own signing mode. You can use both modes in one project. The [wallet list](https://docs-processing.crypto-chief.com/managing-wallets/list-of-wallets.md) shows the mode in `custody_type`.

#### Internal wallets

Upload your project's RSA public key for encrypted key exports, then generate a wallet for the role you need. CryptoChief manages the wallet key and signs outgoing transactions, including payouts from a master and sweeps from a deposit address. Previously generated wallets also use `internal` custody. [Generate wallet](https://docs-processing.crypto-chief.com/managing-wallets/generate-wallet.md)

#### External wallets

Your project keeps the private key. To add a wallet, submit its public address, role and HTTPS `signing_callback_url`. Sign the registration challenge with the wallet key to prove control of the address. [Register an external wallet](https://docs-processing.crypto-chief.com/managing-wallets/external-wallets.md)

To spend from that address, CryptoChief sends `wallet.signature.requested` to the signing URL. Your signer verifies the request and checks the network, recipients, asset and amounts. If it approves the transaction, it returns the signature via `POST /v1/wallets/signatures/complete`. CryptoChief proceeds only if it receives a valid signature before `expires_at`. [Signing request and response](https://docs-processing.crypto-chief.com/pages/D8comWIqzrtjDHcsSrEk#id-3.-receive-a-signing-request)

{% hint style="info" %}
A customer pays into an external static wallet linked to an internal master. Receiving the deposit requires no signature from your project. Your project signs the sweep from the static wallet. CryptoChief signs the payout from the master.
{% endhint %}

***

### Master Wallets (Liquidity Wallets)

A master wallet receives sweeps from its linked transit and static wallets and funds [payouts](https://docs-processing.crypto-chief.com/payments/creating-a-payout.md). It can also supply native coin to a deposit address when the project's [sweep fee mode](https://docs-processing.crypto-chief.com/sweeps/auto-sweep-settings.md) uses the master as the gas source.

An external master receives sweeps without signing. When processing sends funds from that master, it requests a signature from the project's signer.

***

### Transit Wallets (Payment Reception Wallets)

Transit wallets are designed to receive funds from end users as part of an **order-based** payment flow.

**Used as**:

* one-time deposit addresses
* intermediate storage before the automatic transfer to the master wallet

**Key Properties**

* Generated by the platform or registered by the project.
* Linked to a specific master wallet.
* Not used for payouts.

***

### Static Wallets (Permanent Deposit Wallets)

A Static Wallet is a permanent, dedicated deposit address assigned to a specific entity — a user, a merchant, a service, or any logical unit within the integrating system.

Unlike transit wallets, which are created per-order and recycled after use, static wallets persist indefinitely and always belong to the same recipient. Every deposit to a static wallet is tracked, confirmed, and reported automatically — without requiring an order to be created.

**Key Properties:**

* Persist indefinitely — the address never changes or expires.
* Every incoming transaction is automatically detected by the blockchain scanner.
* Support both native coin and token deposits on the assigned chain family.
* Supports outgoing transfers through [Sign Transaction](https://docs-processing.crypto-chief.com/blockchain-data/sign-transaction.md). Payouts use master wallets.
* Support force sweep to move accumulated funds to the master wallet.

**Notification Modes:**

When a deposit arrives on a static wallet, the platform notifies the merchant in one of two ways:

* **Webhook** — if a callback URL was provided when the wallet was created, the platform sends HTTP notifications with deposit details for every status change.
* **Email** — if no callback URL was configured, the platform sends an email notification to the project owner.

You can [change or clear the deposit callback](https://docs-processing.crypto-chief.com/managing-wallets/set-callback-url.md) after creating the wallet. Changing the signing URL of an external wallet requires a [new proof from its registered key](https://docs-processing.crypto-chief.com/managing-wallets/external-wallets.md#change-the-signing-url).

***

#### Naming a wallet

Set a `label` when you generate or register a wallet to identify it in the wallet list. You can change or clear it later. [Set wallet label](https://docs-processing.crypto-chief.com/managing-wallets/set-label.md)

***

#### Which master a deposit wallet sweeps into

A transit or static wallet is bound to one master wallet, and that binding is what decides where its funds settle. It is set when the wallet is created — either the master you pass as `master_wallet_address`, or, if you pass none, the project's oldest master of that chain family. External wallet registration selects the oldest unfrozen master.

**Name it explicitly whenever your project has more than one master.** The default is not "no master", it is a specific wallet that is rarely the one you meant. A binding that turned out wrong can be corrected afterwards with [Re-point a wallet at another master](https://docs-processing.crypto-chief.com/managing-wallets/rebind-master.md) — it applies from the next sweep and moves nothing that has already been swept.

***

#### XRP Ledger: activating a new address

A new XRP address — master, transit or static — must be activated before it is used. See [XRP Wallet Activation](https://docs-processing.crypto-chief.com/native-coin/xrp-activation.md).

***

#### Automatic Sweep (auto-sweep)

Automatic Sweep is a built-in mechanism that moves funds from **transit/static wallets** to the corresponding **master wallet** according to a predefined strategy.

The sweep mode controls when funds move. The source wallet's `custody_type` controls who signs. [Sweeps overview](https://docs-processing.crypto-chief.com/sweeps/overview.md)

**Sweep Modes**

`turned_off`

Automatic sweep is disabled.

* Funds remain on transit wallets
* Transfers can be executed only manually (force sweep)

`momentum`

Funds are transferred **immediately after deposit**.

* Event-driven sweep
* No balance thresholds or delays

`threshold`

Funds are transferred only after the accumulated balance reaches a defined **USD equivalent threshold**.

* The threshold is checked against the current balance of **each asset separately**, on every incoming deposit to the address **and** on a repeating re-check while an asset is still below the bar
* The re-check runs about every 30 minutes for as long as an asset is accumulating, so a balance that crosses the threshold without a new deposit arriving — a price move, or a deposit to a different asset — is swept without waiting for the next payment. It gives up after roughly two days of no crossing, and the next deposit to the address picks it up again
* Every check is visible in the sweep history, including the ones that did not sweep: a skipped row carries its reason, for example `below threshold: $37.20 < $100.00`, so "still accumulating" is distinguishable from "not working"
* A sweep can always be triggered on demand regardless of the threshold — see [Force Sweep](https://docs-processing.crypto-chief.com/sweeps/force-sweep.md)

**Knowing a sweep happened**

Whichever mode a wallet is on, the [Sweep Webhook](https://docs-processing.crypto-chief.com/webhooks/sweep-webhook.md) tells you when a sweep has actually settled on chain, and what it cost. It is the other half of a deposit notification: `static_deposit.paid` means a customer paid you and the funds are still on the deposit address, `sweep.confirmed` means they have finished moving to the master wallet. Move a balance to "available for payout" on the second, not the first.

**Where the policy lives**

The project page in the cabinet sets the policy for the whole project. A single wallet can also decide for itself over the API — see [Auto-Sweep Settings](https://docs-processing.crypto-chief.com/sweeps/auto-sweep-settings.md). Inheritance is per field, so a wallet can take its own mode and keep the project's fee mode; anything it does not set follows the project.

**Fee Handling Modes**

Each sweep operation may require payment of **network fees** (gas).\
The platform supports **three fee handling modes**, applied consistently across all sweep modes.

`client`

* Network fees are paid by the **client**
* If the transit wallet does not have enough native tokens:
  * the system temporarily transfers the required amount from the **master wallet**
* Fees are fully charged to the client

`service`

* Network fees are paid by **Crypto Chief**
* Required native tokens are supplied by the platform
* The equivalent fee amount is deducted from **API Credits**
* No interaction with the master wallet for gas funding

`mix`

The platform tries `client` first. If the master cannot cover the top-up, it uses `service`.

**Native Token Availability**

If a transit/static wallet already contains enough **native tokens**, they are always used to pay network fees — regardless of the selected fee mode.

Only when native tokens are insufficient does the platform apply the configured fee handling logic.

{% hint style="info" %}
Registered external transit wallets join the project's pool of deposit addresses. When processing needs to generate an additional transit wallet, it creates an `internal` wallet using the project's [RSA public key](https://docs-processing.crypto-chief.com/getting-started/generating-an-rsa-key-pair.md). Register each external transit address your signer will manage.
{% endhint %}

***

### Cold Wallets (Payout Destinations)

A cold wallet is a customer or merchant address supplied as a payout destination. Sending to it requires only the address. To spend from a wallet your project controls through CryptoChief, register it as an external project wallet.

***

### Private Key Logic

* For an internal wallet, [Wallet information](https://docs-processing.crypto-chief.com/managing-wallets/wallet-information.md) returns `private_key_encrypted`. Decrypt it with your project's RSA private key. [Decrypting the private key](https://docs-processing.crypto-chief.com/getting-started/decrypting-the-private-key.md)
* For an external wallet, `private_key_encrypted` is empty. The key stays with your signer.

***

### Funds Flow

#### 1. Transit/Static → Master

[Automatic](https://docs-processing.crypto-chief.com/sweeps/auto-sweep-settings.md) and [manual](https://docs-processing.crypto-chief.com/sweeps/force-sweep.md) sweeps send funds from a transit or static wallet to its linked master. When the deposit wallet is external, the project signs its outgoing transfers.

#### 2. Master → Cold

Payouts are executed **only** from master wallets.

The platform validates:

* liquidity sufficiency
* availability of the requested asset
* adequate native token balance for gas

#### 3. Payout in a different asset

If the requested asset differs, you can enable:

```json
{ "auto_convert": true }
```

The system will:

* convert the asset (DEX / internal routing)
* send the required token to the cold wallet

#### 4. Any project wallet → any address

[Sign Transaction](https://docs-processing.crypto-chief.com/blockchain-data/sign-transaction.md) → [Execute Transaction](https://docs-processing.crypto-chief.com/blockchain-data/execute-transaction.md) sends a native, token or contract transaction from any project wallet, transit and static included, to any address. The wallet pays its own network fee.

***

### Security Restrictions

* Payouts and withdrawals cannot be made from transit or static wallets.
* Only wallets generated or registered for your project can be selected as senders.
* Master wallets should not receive external deposits.
