Skip to main content
Make your first sandbox deposit into Ground RWA yield. Your backend uses the Ground API to discover a gVault, configure fees and admit a customer wallet. The customer’s wallet sends the deposit transaction.

Before you start

You need:
  • A sandbox API key from the Ground Developer Portal. Keep this key on your backend.
  • A customer wallet connected to the chain returned by discovery, with the listed funding asset and funds for transaction fees.
  • Ethers v5 in your wallet application for the deposit example below.

1. Discover your contract

Account setup automatically provisions one USTB and one PRIME gVault for your sandbox organization. List the available contracts from your backend:
The response lists contracts ready for deposits:
The example addresses are illustrative. Select a row from your response and save its id for API calls. Pass the complete row to your wallet application as gVault in step 4. Use its chain to connect the customer wallet and its asset to fund the deposit. If data is empty, retry while setup completes; contact Ground if contracts remain unavailable.

2. Configure your fees (optional)

To charge your customers fees, configure them below. Otherwise, continue to step 3. Set FEE_RECIPIENT_ADDRESS to the wallet that should receive both your management and performance fee shares. This example sets a 0.20% annual management fee and a 15% performance fee:
Rates use percentages: 1 means 1%. Omitted fields stay unchanged. See configure fees for fee limits and recipient requirements. A 200 response with status: confirmed means your requested configuration is already effective. For a 202 response, poll the detail endpoint:
If feeUpdate.status is awaiting_approval, use its activityId with the approval API and your registered signing key. Continue when feeUpdate.status is confirmed and fees contains the requested values. If the update fails or a request times out, read the current state before retrying. A 409 gvault_fee_update_pending means another update must finish first.

3. Admit the customer wallet

Use the address that will make the deposit and receive the shares:
Your API key authorizes this call; no request body is needed. Poll the same URL with GET until allowed is true:
If the request times out, check access with GET before retrying the admission.

4. Make a deposit

For PRIME on Tempo Moderato, request gTESTUSDC for the admitted customer wallet from the sandbox faucet. Each request can transfer up to 100 gTESTUSDC:
Save the returned id and check its status until it is confirmed:
Keep the same idempotency key when retrying the request. If the transfer remains pending, continue checking its status. If it fails, contact Ground with the request ID and failureCode before requesting another transfer. Pass the discovery row to your wallet application without your Ground API key. The following Ethers v5 function works with both PRIME and USTB organization contracts. signer is the admitted customer’s signer on the discovered chain; assetAmount is a decimal string such as "1" for one funding token.
The simulation estimates the share output after approval. The submitted deposit accepts at most 0.5% less than that estimate; choose a tolerance appropriate for your application. If simulation or submission fails, refresh access, balances and the quote before retrying. Never treat an approval receipt as a deposit. The function returns the confirmed transaction hash and the customer’s updated share balance. Store the receipt with the chain and gVault ID.

Next steps