1. Create a server-side API key
Create an API key in the Ground Developer Portal. Store it only on your backend.2. Discover available gtokens
Retrieve the environment’s yield-source catalogue:id is the gVaultId used
by the allowlist API, while contractAddress is the contract your application
calls onchain.
GVAULT_ID from the selected catalogue row and CUSTOMER_ADDRESS to the
address that will receive gtokens:
3. Allowlist the user’s address
Before the user’s first deposit, follow Manage gtoken access to fetch Ground’s wallet authorization message, collect the address’s signature, and submit theownershipProof from your backend. The message expires after five minutes.
Ground checks your organization’s source access and screens the address before
admission.
A 202 response means processing is pending. Poll the allowlist endpoint and
enable deposits only after allowed is true and processing is complete.
The calls in steps 4–7 apply to ground_ustb_v1. For tempo_earn_v1, use the
Tempo Earn integration guide.
4. Read the deposit asset
Read the ERC-4626-styleasset() method from the backing vault contract:
assets in
that token’s native units.
5. Approve and deposit
The user first approves the backing vault contract to spend the deposit asset:receiver to the allowlisted address that should receive gtokens.
The backing vault checks the receiver’s access, not merely the transaction sender.
Before submitting, you can estimate the output with:
6. Withdraw within current liquidity
Read the user’s immediately available capacity:owner to the calling wallet. receiver
is the address that receives the deposit asset.
7. Request a larger redemption
When the requested exit exceeds current synchronous liquidity, submit an asynchronous redemption:requestId. Ground processes queued redemptions
onchain. After the request is processed, the same owner claims the proceeds:
requestId in your operation
record until the claim confirms.
8. Remove deposit access
The managing organization can remove the address’s deposit access:allowed becomes false. For ground_ustb_v1, removal blocks future
deposits and retains your organization’s management rights; existing shares can
still be redeemed. For tempo_earn_v1, removal also blocks share transfers and
redemptions until permission is restored.