1. Get an API key
Sign in to the Ground Developer Portal and create an API key for your organization. Store the key securely in your backend and never expose it in your frontend or mobile app.2. Create the gVault
Create the gVault from your backend with your Ground API key:performanceFeeBps applies only to gains above the vault’s high-water mark.
For example, 2000 sends 20% of gains to feeRecipientAddress. The management
fee is zero.
The same organization and partnerAppId always return the same gVault when the
settings match. A different fee configuration requires a different
partnerAppId.
3. Wait until it is ready
PollGET /v2/gvaults/{gVaultId} until it returns status: ready. Store the
returned gVaultId and contractAddress in your backend configuration.