Skip to main content
POST
Picks the pocket of a vault group that holds the currency or asset you name. It builds the deposit into that pocket exactly as Deposit does for a single vault: an approval, then the deposit, attributed to your instance as the depositor’s distributor. Every check and refusal of Deposit applies, and so does the attribution table there. The depositor receives the pocket’s shares, in the pocket’s currency. Name the pocket by exactly one of currency and asset. A currency matches a pocket’s asset symbol first, for example USDC, and otherwise its settlement currency, for example USD. When two pockets settle in the same currency, naming the currency is ambiguous and is refused with GROUP_CURRENCY_AMBIGUOUS, which lists the candidates. Name the asset symbol or address then. Confirm the deposit on the pocket with Confirm Transaction, using the pocket’s vault ID that vaultId and confirmWith name.

Path Parameters

string
required
Vault group ID from List Vaults or Get Vault Group.

Body Parameters

string
required
Amount to deposit as a decimal string greater than zero, in the pocket’s asset and at its decimals.
string
An asset symbol such as USDC or EURC, or a currency such as USD or EUR: 2 to 12 letters, digits or .. Not accepted beside asset.
string
The settlement asset address of the pocket. Not accepted beside currency.
string
Wallet that will sign, checked as on Deposit. When sent, it must be a 0x address of 40 hex characters, otherwise VALIDATION_ERROR.

Response Fields

The fields of Deposit, plus:
object
The example shortens attribution.

Error Codes

Every code of Deposit can be returned for the chosen pocket. The group adds: