Prerequisites
You’ll need:- An API user for your organization.
- A Stellar vault.
- XLM to fund the vault, transferred from another vault or an exchange.
Setup overview
Complete these steps in order for each vault.- Fund the vault with XLM. Reserve enough XLM for account activation, token trustlines, and transaction fees.
- Activate the Stellar account. The account is created onchain when it receives the required XLM funding.
- Enable each token you want to receive. Call the asset activation contract method for each supported token.
Step 1: Fund and activate the vault
Fund the vault with enough XLM to cover the account reserve, token reserves, and transaction fees. As a planning estimate, use:1 XLM + (0.5 XLM × number of tokens) + a buffer
For example:
These amounts are estimates. Confirm the current reserve requirements before funding.
Step 2: Enable each token
Stellar requires an account to establish a trustline before it can hold a corresponding token. In PrimeVault, enable each token using the asset activation contract call. Repeat this step for every token the vault needs to receive. For example, enable USDC and USDT separately before receiving either asset. Important: Enable the token before sending it to the vault. Payments in tokens without an established trustline will fail.XLM reserve requirements
The following estimates apply to the vault’s minimum reserve:
Keep an additional buffer to cover transaction fees and any changes in network requirements.
Before sending tokens
Verify that:- The Stellar account has been activated.
- The required token has been enabled.
- The vault has sufficient XLM to cover its reserve requirements and transaction fees.