Skip to main content

Custody Gateway

A custody gateway is a client's own deposit and withdrawal point on one network, where coins held in custody are exchanged for custody receipts and back.
A client's gateway swaps coins for custody receipts and back.A client card on the left sends coins along an accent edge to the focal custody gateway card in the middle, which holds an escrow for anything that waits. The gateway sends custody receipts back to the client along a quiet edge and forwards the coins to a custody destination card on the right.A client's gateway swaps coins for custody receipts and back.The same figure as the desktop variant, drawn portrait: the client sends coins to the custody gateway, which holds an escrow for anything that waits, sends custody receipts back to the client, and forwards the coins to a custody destination.

A custody gateway swaps coins for custody receipts on deposit and back on withdrawal, and its escrow holds whatever waits for a decision.

  • Each client identity of a person or an organisation gets one deterministic gateway address per network (a contract identity, such as an escrow's, is refused), minting custody receipts only against received coins and burning them atomically on payout.

  • Every deposit and withdrawal is a tracked record with an explicit stage history and role-gated transitions.

  • Settings, profiles, roles, and on-chain add-on approvals are shared across all gateways deployed under the organisation's custody gateway add-on.

What a gateway does

A custody gateway is one client's dedicated deposit and withdrawal contract on a network, swapping deposited coins into Custody Receipts and burning receipts back into coins atomically. Three receipt-token roles act outside the gateway: Custodian (forced transfers), Supply management (leave unassigned), and Governance (compliance changes).

An organisation deploys the custody gateway add-on once per system, enables coins, creates profiles, and configures service wallets in Set up the custody gateway. Gateway managers then deploy client gateways from Create a client gateway.

Because every gateway runs the implementation registered on the add-on factory, a System manager or the add-on registry can upgrade every gateway simultaneously without gateway-manager or client approval.

How a deposit moves

Deposits enter either by calling the gateway directly or via a plain transfer reported by the keeper wallet. The gateway verifies that coins are unclaimed before recording any deposit.

A deposit passes four steps and can rest in three places before it ends.A top row shows the steps receive, source check, mint receipt and forward, joined by accent edges. Three resting stages sit below: quarantined, which waits for the screener, mint refused, which waits for the gateway managers, and awaiting custody, which waits for the custodian. A bottom band lists the three end states: settled, returned to the sender and recovered to the recovery address.A deposit passes four steps and can rest in three places before it ends.The same figure as the desktop variant, drawn portrait: the steps receive, source check, mint receipt and forward run top to bottom. A box lists the three resting stages, quarantined, mint refused and awaiting custody, and a final box lists the three end states, settled, returned and recovered.

A deposit that passes every check settles at once, and one that needs a decision rests in one of three stages until it settles, returns or is recovered.

The gateway's screening mode controls whether deposits settle immediately or wait in quarantine:

  • Always quarantine (default): every deposit waits for the screener before minting.
  • Credit approved sources: direct deposits from approved sources settle immediately, while plain transfers quarantine until confirmed.
  • Off: deposits settle immediately while unpaused.

Paused gateways reject direct deposits and quarantine all reported transfers. Clients can pull back unfrozen quarantined deposits after a configured wait, or exit a gateway paused past its coin time limit.

If minting fails (for instance because the client's wallet fails receipt compliance), a direct deposit reverts while a quarantined or reported deposit rests as mint refused for gateway managers to resolve or return. When waiting for external custodian acceptance (such as a Fireblocks vault), receipts mint under an on-chain hold (awaiting custody) until the keeper confirms acceptance or gateway managers return the deposit.

Every deposit ends settled, returned to the confirmed sender (redirected to the client's replacement wallet if the original wallet was lost), or recovered by gateway managers with add-on approval.

How a withdrawal moves

Clients return custody receipts to their gateway, locking them in the gateway's escrow until paid or returned. Requests snapshot the active fee, gas ceiling, and time limits at creation.

A withdrawal locks receipts, passes review where required, waits for funds, then pays in order.A top row shows the stages requested, in review, awaiting funds, claimable and settled, joined by accent edges. Below requested sits awaiting payout address, where a request waits when the client has named no approved payout address. A bottom band lists the two ways receipts go back to the client: receipt returned, and return pending while the client wallet is frozen.A withdrawal locks receipts, passes review where required, waits for funds, then pays in order.The same figure as the desktop variant, drawn portrait: the stages requested, in review, awaiting funds, claimable and settled run top to bottom. A side box names awaiting payout address, and a final box lists the two ways receipts go back to the client.

A withdrawal moves from request to payout through review and funding, and a request that stops short returns its receipts to the client.

Direct requests fail immediately if the payout address is unapproved, the amount is below minimum, or the daily cap would be exceeded. Plain receipt transfers without a default approved payout address wait as awaiting payout until the client names one or the payout time limit expires.

Requests subject to screening, travel-rule checks, or meeting the instant limit (default zero, meaning all requests need approval) wait in review until the screener and gateway managers (Approve via add-on approvals) both clear them.

Once cleared, the keeper pays awaiting funds requests strictly FIFO in full using confirmed funding. Making a request claimable reserves coins and, with auto-claim enabled (default), burns receipts and pays out immediately (deducting fees and any capped keeper gas recharge in deducted mode, or booking fees owed in accounting-only mode). See Custody gateway keeper gas price.

Clients can cancel requests in review, awaiting payout, past their awaiting-funds cancel limit, or claimable requests whose payout address was suspended or removed, and can exit gateways paused past the coin's pause limit. Frozen requests leave the queue and rejoin at the back when unfrozen, and returns to frozen client wallets wait as return pending.

A corporate action re-bases a queued request

Ratio-changing corporate actions (such as stock splits or bonus issues) freeze the gateway's escrow for that receipt token between record date and execution, blocking new requests, claims, and ordinary returns.

After execution lands, the gateway re-bases each queued request lazily the next time anything touches it (while read APIs already display re-based amounts). Changed claimable requests release reserved coins and return to awaiting funds, while requests rounded to zero end as “Returned by a corporate action”.

What waits in the escrow

Each gateway creates its own escrow holding quarantined and mint-refused coins, confirmed funding, claimable reserves, and locked withdrawal receipts. Direct forwarded deposits bypass the escrow, whereas gateways without a separate destination keep settled deposit coins inside their escrow as withdrawal funding.

What the escrow owes the gateway equals quarantined, held, provisional, funding, reserved, unallocated, and returning coins. Only gateway managers can recover unallocated coins. External forced transfers, burns, or negative rebases can still create shortfalls (Escrow).

The optional treasury

Linking one organisation treasury wallet per coin lets gateways without a separate forwarding destination pay withdrawals below their instant limit immediately by drawing into that client's escrow without mixing client balances. Linking a treasury requires add-on approval, while disconnecting it runs immediately. A gateway manager does both on the add-on's Treasury tab or through the custody gateway API.

Who acts at each step

Four operational roles act across deposits and withdrawals, administered by a Gateway permission manager on the organisation's system:

Role
What it does
What it cannot do
Client
Deposits, requests withdrawals, cancels, pulls back quarantined deposits, exits over-paused gateways, and sets payout addresses on its own gateway.
Act on another client's gateway.
Keeper
Reports plain transfers, runs the FIFO payout queue, retries refused mints, and confirms custodian deposit acceptance.
Clear screening or confirm senders.
Screener
Confirms senders, clears or refuses quarantined deposits, clears withdrawal screening, and freezes records.
Approve requests above the instant limit.
Gateway managers
Create gateways, enable coins, manage profiles and treasury, pause, approve above instant limit, and return or recover coins.
Pay a withdrawal without confirmed funding.

A frozen record pauses forward transitions on that record alone (facts such as custodian returns still record). Gateway managers can mark a frozen record reported so its freeze never expires until returned or recovered, and can set a per-gateway screener key with add-on approval.

Profiles and settings

Gateway settings resolve from three layers: gateway override, assigned profile, then add-on coin default. Five settings take the stricter of the gateway's own value and the layer below, so tightening a profile reaches every gateway on it and a gateway can only be stricter than its profile: the instant limit and the daily maximum take the lower amount, the minimum withdrawal the higher one, the screening mode the one that quarantines more (Always quarantine, then Approved sources credited, then Off), and wait for custody is on when either layer turns it on. Every other setting takes the nearest layer that sets it, and the time limits stay within the add-on coin default. Every settings change, at any layer and in either direction, waits for the add-on checker, because a value looser than the profile's is hidden today but applies as soon as the profile loosens.

Open requests keep the terms captured at creation, while lists, forwarding destinations, pause state, and approval counts read live. Profiles in use cannot be deleted.

For a coin, a profile or a gateway, the Console shows each setting's value and the layer it comes from, and a gateway manager changes it there (See and change the settings).

Approvals through the add-on checker

Sensitive gateway changes pass through the add-on's own access manager (Add-on approvals), appearing in Actions. Pauses and freezes apply immediately with one gateway manager. Lifting the pause of the whole add-on waits for the checker, and so does a change of the add-on's fee account. Every settings change, a stricter one too, and every value-moving action requires one other gateway manager by default. Enabling a coin sets its defaults, so it waits for one other gateway manager too.

Managing profiles and creating gateways without a profile need only Gateway manager. A Gateway permission manager can change required approval counts directly. Because one wallet equals one approval, assign a multisig wallet when multiple people must back one role seat.

Running the add-on through its API

Deposit and withdrawal stages lists every stage a record can enter, who moves it, and its time limit. The custody gateway API how-to documents the setup, signer, and lifecycle routes under /api/v2/addons/custody-gateways.

Roles and the two service wallets

One add-on access manager governs roles across every gateway of the organisation. Gateway permission managers grant or revoke manager, keeper, and screener roles one role per change with a PIN on the custody gateway's Permissions tab (in the Role holders table, where the keeper and screener service wallets are rows tagged “Service wallet”), or via /api/v2/addons/custody-gateways/role-members. Holders of a gateway role see the table with those controls disabled and the reason. After the first grant, a Gateway manager or Gateway permission manager also sees the service wallet rows, whose Add holder → A service wallet, Rotate and retired-wallet Revoke controls are disabled for the same reason when the acting wallet lacks the permission role. When the permission role sits on another of your wallets, that reason says to act with the wallet that holds it. Everyone else sees that they can't manage the custody gateway, an organisation owner or platform administrator included, because their organisation role alone gives no access. Before the first grant, only a gateway permission manager sees the empty table its first grant starts from.

A wallet a Permission manager blocks on the system keeps its gateway roles but cannot use them: a blocked manager, keeper or screener cannot act on any gateway, a blocked per-gateway screener key cannot screen, and the approvals a blocked manager gave stop counting until the wallet is unblocked. A gateway permission manager can still revoke the role.

Revoking an active keeper or screener wallet returns 409 GATEWAY_SIGNER_IN_USE until rotated. Keeper and screener service wallets are provisioned, rotated, and monitored for low native balances under /api/v2/addons/custody-gateways/signers. A scheduled pass activates each newly granted wallet and retires the previous one once its on-chain role grant settles, and a rotated-out wallet that still holds its role stays a row with Revoke in its row menu.

Role-member writes and signer setup or rotation require a Console-issued session plus wallet verification (no API keys, and non-Console sessions return 403 DALP-200384).

Reading a gateway's records

Each deposit, withdrawal, and unsupported transfer has a stable ID and immutable stage history readable in Deposits, Withdrawals, and Unsupported tabs (Review deposits and withdrawals) and in the Investor portal's Portfolio → Transfers tab.

A gateway's deposit, withdrawal and unsupported-coin records are read by wallets holding a gateway role (Manager, Screener or Keeper) and by wallets registered to the gateway's client identity. Others, including an organisation owner or platform administrator who holds no gateway role, receive 404. On a gateway with a screener override, only the override wallet counts as screener. Holders of a gateway role, and the gateway's screener override, also view the review queue, internal notes, screening provider scores, and the client flag. The client sees only its own gateway's approved addresses and funding sources. An owner or platform administrator without a gateway role sees none of these, but still reads the effective settings. Invalid stage transitions return 409, missing roles return 403, and approval-gated calls return 422 with proposal details.

Closing a gateway, and following a client to a new wallet

Closing a gateway requires add-on approval and refuses while any deposit, withdrawal, unburned receipt, open unsupported record (“Unsupported” or “Ignored”), or escrow balance remains. Closure is permanent, stamps closedAt, and leaves records read-only.

A gateway manager can then retire a closed gateway on chain with the factory's retireGateway, without a second approval. The factory stops serving a retired gateway and no longer counts it in its profile, and the client identity is left without a gateway. The retired gateway cannot rebind onto another identity, and creation cannot give the identity a new gateway, because the identity's gateway address is taken. Retiring is for a recovered client whose new identity already has an empty gateway of its own: the rebind refuses while that gateway exists, and moves the client's gateway onto the identity once it is retired.

When the identity registry recovers a client's lost wallet, anyone can rebind the gateway along recovery links (up to eight hops) once Custodian token recovery has moved held custody receipts. When two of the client's wallets were recovered into the same new wallet, the registry lists both, so one rebind moves the held receipts of both. The rebind preserves the gateway address, escrow, and records under the new identity and wallet. Console identity recovery performs this rebind automatically.

When a client's claim is revoked or expires

Revoking or expiring a claim from one of the organisation's configured compliance providers flags the client, freezing open withdrawals and deposits waiting for custody, suspending payout addresses, and blocking new withdrawals or value-moving transitions with GATEWAY_CLIENT_FLAGGED (DALP-13995).

Re-issuing or renewing the claim clears the flag automatically, or a screener can clear reviewed triggers explicitly, unfreezing records once no triggers remain (suspended payout addresses stay suspended until reinstated).

A flag leaves the client's wallets on the receipt tokens unfrozen. To freeze them, select Freeze client on an open gateway's detail view, which sends one freeze for each wallet of the client on the receipt token of each coin enabled on the custody gateway add-on. The wallet you act with needs the Custodian role on every one of those receipt tokens. Otherwise the button stays disabled and shows a reason, so the Console never starts a freeze that some receipt tokens would refuse for a missing role. When your acting wallet lacks the role on a receipt token, the reason names the role. When one of your other wallets holds it on every receipt token, the reason says to act with that wallet. When the Console cannot read the role, the reason asks you to reload the page. A Custodian of each receipt token lifts the freeze on that token.

When a client's account is suspended in the organisation

While the participant account of the gateway's client wallet is suspended, closed or terminated in the gateway's organisation, the gateway mints no receipts to it. The keeper holds each deposit that would credit the client: a deposit waits in quarantine, and receipts held for custody stay held, under a review item with the reason client-suspended. A client flag takes precedence, so a flagged client's deposit shows client-flagged instead. Clearing or retrying such a deposit is refused with RECIPIENT_SUSPENDED (DALP-190196).

Nothing is dropped: once an identity manager lifts the suspension or closure, the keeper resolves the review and the deposit continues. The same account suspended in another organisation does not hold the gateway's deposits.

Recovering a deposit or an unsupported coin to a wallet whose account is suspended, closed or terminated in the organisation is refused with the same error, so the coins stay at the gateway until a manager recovers them to another wallet. Returning coins to their sender is not refused.

Whitelisted addresses against the approved lists

The Whitelist panel on the gateway's Client tab (backed by /whitelist-entries) compares the client's proved and revoked destination entries against the gateway's approved sources and payout addresses, letting operators raise verified add or remove proposals without unattended changes.

Frequently asked questions

Does a client need the keeper to leave a gateway?

No. Cancelling withdrawals, pulling back quarantined deposits, and exiting an over-paused gateway are sent directly by the client's wallet without relying on the keeper.

Can a deposit mint receipts for a coin the gateway does not accept?

No. Direct deposits of unenabled coins revert, while plain transfers become unsupported records for gateway managers to return, enable, recover, or mark ignored (ignored records still block gateway closure until returned or recovered).

Why does a deposit rest in awaiting custody instead of settling?

When an external custodian screens incoming transfers after arrival, the gateway mints held receipts so the client sees the deposit while spending waits until the custodian confirms acceptance.

Was this page helpful?