Skip to main content

Custody gateway

Set the custody gateway's approval rule, raise a held gateway change, and approve, run or cancel a change that an add-on approval holds.
Open it fromAsset lifecycleCustody gatewayApprovalsRoles:ManagerGateway permission managerConsole address: /addon/addonFactoryAddress/custody-gateway/checker

The Approvals tab under Asset lifecycle → Custody gateway lists the proposals waiting for sign-off. The add-on's on-chain approval rule is set on the Permissions tab. An add-on approval holds a checked contract call until enough approvers sign on chain, after which a holder of the requester's role executes it from Approvals or Actions. See Add-on approvals for the model.

Add-on approvals apply to checked calls on an existing add-on, not to deploying new airdrops or offerings. Deploying a client gateway on the default settings profile runs directly for any Manager, while non-default profiles wait for approval. See Airdrops for other add-on screens.

The “Approvals” tab of the custody gateway lists only the changes that wait for approval.

Steps

The tab lists only the changes that wait. The add-on's state (“Active” or “Paused”) is the badge beside the page title. If the tab reads “This add-on has no access manager, so its changes cannot require approval.”, changes cannot require approval.

1. Set the approval mode

The approval rule lives on the gateway's Permissions tab, in the approval section. A new gateway starts with one other person approving each checked change within 7 days, but the rule on the approval settings themselves is not set until you save once, so until then a single Gateway permission manager can still switch the approvals off. The section names that role and lists its holders. While the approvals are on and only one wallet holds the role, it warns that nobody else can approve turning them off, and while the rule on the approval settings is not set it says the switch has no approval rule. There is no approvals count to enter. Check the live status line:

  • “On. Each of these changes waits for one other person to approve it, and so does turning this off.”
  • “Off. These changes run without a second approval.”
  • “On, with rules that differ from the standard. Saving writes the standard rule for every change.” A new gateway reads this way until the first save. (Select the on option beside Off and Save to bring every change, and the approval rule itself, under the standard rule.)
  1. Choose Off or the on option beside it.
  2. Select Save and confirm each PIN prompt (rules spanning many functions split across multiple transactions).
  3. Once you have saved the standard rule, turning it off opens A second administrator must approve this instead of taking effect immediately. Select Ask for approval to raise the change as a proposal, and a second wallet with the Gateway permission manager role approves it in Actions.

Grant Manager and Gateway permission manager to one wallet per person because on-chain approval counts identities (and unregistered wallets count separately).

2. Raise a proposal

  1. Submit a checked change as usual (on Coins, Profiles, Deposits or Withdrawals, or Resume all gateways under Actions beside the page title).
  2. Every gateway change opens in the action window. When the change is held, the Console sends nothing and the same window changes to This change needs approval first (it names the held action under Change, with Contract and Technical details showing Function selector and Call hash).
  3. Select Ask for approval and confirm with your PIN. The toast reports “Approval requested. The approvers see it in their actions inbox and on the Approvals tab.”

Withdrawals at or above the instant limit read “In review: needs approval” under Stage on Withdrawals. While the rule is on, Approve opens the action window, and the window then asks you to raise the approval request. Frozen withdrawals and flagged clients cannot be approved.

Raise an approved source or payout address for the client

On a client gateway's Client tab, use the Whitelist panel to select Add source, Add payout or Raise removal (for a revoked source address), then confirm in the action window with your PIN. A held change turns the same window into This change needs approval first.

Review and approve

  1. Open the “Add-on approval” row in Actions (Needs you → “Waiting for your approval”) or under Waiting for approval on Approvals, then select Review.
  2. Inspect the Approval request sheet: action summary (such as “Release a frozen withdrawal”), Contract, labelled arguments, transfer details (Amount, Client, Sender or Payout address), Requested by, Expires, Approvals progress and Approved by (plus Actions covered, Approvals required, Approval window and Approver for rule changes). A held gateway setting change shows the setting by the name the gateway Settings views use and its value in the same words they use: an amount in the coin's units and symbol, a duration in days or hours, a fee, a choice, an address or on and off. A setting being removed reads “Value from the level above”. A second row says what the change applies to: the gateway with its client's name, a coin default with the coin, or a profile with its name. A coin enable names each setting with the value it writes.
  3. Select Approve and confirm with your PIN. Status updates to “Approval recorded.” and “You approved this. Waiting for other approvers.” until the threshold is met. When your approval is the last one needed, the button reads Approve and run: the access manager runs the change as the requester in the same transaction (“Approved. The change has run.”).

3. Run or cancel the change

  • Run: The last approval normally runs the change. If the run fails, the proposal stays open with its approvals and the sheet reads “Approved, couldn't run: ” with the contract error. The requester or any approver selects Review → Run again and confirms with their PIN once the cause is fixed. A requester or approver who also holds the requester's role gets Run change instead, which sends the call from their own wallet. Another holder of the requester's role sees “Ready to run” and can select Run change, which sends the call from their own wallet.
  • Cancel: The proposer, any approver who signed or any eligible approver can select Review → Cancel request, confirm Cancel request and enter their PIN (“Request cancelled.”).

What an add-on approval holds

Operation
Enforcement
Client gateway creation or changes (payout address, unfreeze, withdrawal approval), enabling a coin, the add-on's fee account and lifting the pause of every gateway
On-chain gateway access manager rule (new access managers default to 1 approval and a 7-day window, gateway creation is held only for non-default profiles, and every setting change is held, a stricter one too).
Creating an offering or XvP settlement
Role-based only (no add-on approval). Offerings also follow Approvals → Offerings when enabled (see Offerings).
Registering an add-on factory
System manager role, plus off-chain maker-checker when system-administration is protected.
Changing offering terms or sale roles
Sale role, plus off-chain maker-checker when token-administration or role-management is protected.
Trading venue checked calls (listing, fees, holding period, halt, delist, pause/resume, bust)
Run immediately by default (Venue operator, Venue admin or submitter). The holder of the default administrator role on the venue's access manager, at first the venue's creator, any admin listed at creation and the organisation's operations signer, can add on-chain rules by calling that access manager directly. The Platform API returns 404 for a venue's access manager while no system role is bound to it. Calls on other contracts show “Unrecognized call” with no Approve button.

What approvers see

The Console treats all wallets of one user as one person, and the on-chain access manager refuses approvals from the proposer's identity (counting one approval per identity). Proposals are visible to Permission manager, System manager, holders of an access-manager role and holders of the bound system role. The Investor portal shows the same rows read-only without Review.

Your relationship to the proposal
Actions inbox row
Available buttons in Review
Eligible approver, none of your wallets proposed or approved
“Waiting for your approval” (Needs you)
Approve, Cancel request
Eligible approver, call unreadable in Console
“Can't be approved here” (Needs you)
Function selector and raw Call data only (no buttons)
Proposer or already approved, approvals still needed
“Waiting for other approvers” (Waiting on others)
Cancel request
Proposer or approver, threshold met but not run
“Ready to run” (Needs you)
Run change (Run again after a failed run), Cancel request
Hold requester's role and threshold met
“Ready to run” (Needs you)
Run change

Refusal codes

Refused proposal writes simulate before queueing and return 422 (platform.addonApprovals.PROPOSAL_REFUSED, DALP-12408) with a reason (or one of the approval codes below). See the error reference for full details.

Code or reason
Cause
Action
proposer-cannot-approve
One of your wallets proposed the change.
Ask a different approver.
already-approved
One of your wallets already approved (or approval is queued).
Wait for other approvers. Do not retry from another wallet.
checker-unauthorized
Wallet lacks the required approver role.
Switch wallets or ask a Gateway permission manager to grant it.
not-maker
Run change sent from a wallet without the requester's role.
Execute from a wallet holding the requester's role.
not-proposer-or-approver
Run again sent from a wallet that neither proposed the change nor holds one of its approver roles.
Run it from the proposer's or an approver's wallet.
run-failed
The approved call reverted when it ran (revert holds the contract error). The approvals stay.
Fix the cause, then select Run again.
not-approved
Approval threshold is still unmet.
Wait for remaining approvals.
proposal-not-open
Proposal already ran or was cancelled.
Raise a new proposal if still needed.
proposal-expired
Approval window closed (“Expired” in sheet).
Raise the change again.
proposal-superseded
Approver role changed after proposal creation.
Raise the change again under the new rule.
proposal-already-open
An identical open proposal already exists.
Approve or run the existing proposal.
target-not-managed
Target contract does not use this access manager.
Propose on the contract's own access manager.
invalid-proposal-call
Call data too short or invalid access-manager target call.
Fix the encoded call data.
too-few-admins
Fewer people among the default administrators than the rule's approvals plus one. A gateway never returns it, because its access manager is bound to a system role (revert holds TooFewAdmins).
Grant the administrator role to another person, then save the rule again.
refused
Access manager reverted for another reason (revert holds contract error).
Inspect revert, fix the condition and retry.
APPROVAL_NOT_REQUIRED (DALP-12407, 422)
No rule holds this call.
Send the call directly from a wallet with the required role.
APPROVAL_REQUIRED (DALP-12411, 422)
Rule update itself is held (response includes the proposal payload).
Propose, approve and execute that rule-update payload.
GATEWAY_APPROVAL_REQUIRED (DALP-9821, 422)
Gateway write is held (shown as This change needs approval first in Console).
Select Ask for approval.

Troubleshooting

A proposal returns 404 or 422, or a rule change returns 403

Proposals outside your role visibility return 404 (platform.http.NOT_FOUND). Attempting to write a rule without access-manager administrator authority returns 403 (platform.http.ACCESS_DENIED, DALP-12252). For a rule change, verify your Gateway permission manager role under Organisation settings → Roles and permissions. A proposal write you can see but make without Manager returns 422 (platform.addonApprovals.PROPOSAL_REFUSED, DALP-12408) with reason checker-unauthorized, not-maker on Run change, or not-proposer-or-approver on Run again. Verify your Manager role in the Role holders table on Permissions.

Saving a rule says the new rule has not shown up yet

“The last save was sent, but the new rule has not shown up yet. Refresh to check again.” means the multi-step transactions are still confirming or indexing. Wait briefly and refresh the tab before saving again.

Approve fails with proposal-expired right before the deadline

Approving a proposal whose window closes before the next block returns proposal-expired. Raise a fresh proposal for the change.

API routes

Proposals and rules live under the add-on's access manager address, accessManager in the factory read (GET /api/v2/addons/custody-gateways/factory). Writes require wallet verification and Idempotency-Key.

Task
Route
List proposals
GET /api/v2/system/addon-access-managers/{accessManagerAddress}/proposals
Read one proposal
GET /api/v2/system/addon-access-managers/{accessManagerAddress}/proposals/{proposalId}
Propose a call
POST /api/v2/system/addon-access-managers/{accessManagerAddress}/proposals
Approve a proposal
POST …/proposals/{proposalId}/decisions with {"decision":"approve"}
Run or cancel a proposal
POST …/proposals/{proposalId}/transitions with {"transition":"execute"} or {"transition":"cancel"}
List active rules
GET /api/v2/system/addon-access-managers/{accessManagerAddress}/action-configs
Set a rule (up to 50 functions)
POST /api/v2/system/addon-access-managers/{accessManagerAddress}/action-configs

Filter GET …/proposals by target, status and viewer (approver or maker). See the v2 API reference for schemas.

Was this page helpful?