Skip to main content
Use this brief with a coding agent that can inspect your application. First configure API access and the chosen product’s test assets and signer. Complete login, passkey ceremonies, and authorizations yourself. Store credentials directly in server secrets, outside chat and logs. Portfolio Wallet signing setup is in Transaction approvals. Wallet-signed gtoken and MicroVault transactions use the holder’s wallet instead.

Copy the prompt

Establish the integration contract

Before coding, record these decisions in the application’s integration notes. Reuse existing choices where they are explicit; surface consequential missing decisions to the developer. Use the current request and response schemas through the product’s API reference tab. Resolve IDs, addresses, supported routes, decimals, limits, lifecycle states, and access from the selected environment. Read contract ABIs from verified deployed implementations, including the implementation behind a proxy.

Implement the application

Build each of the following using the project’s existing architecture.
  1. Server API boundary. Load the organization key from server secrets. Authorize the application’s user and verify their ownership before acting on a Ground resource; the organization key alone does not establish end-user ownership. Validate inputs, return useful safe errors, and keep credentials and signing material out of client bundles and logs.
  2. Account mapping and operation persistence. Persist the application account’s Ground resource identity. Before a write, save one stable logical operation ID and payload. Track its Ground resource/task ID or onchain request and transaction evidence. Make concurrent submissions and retries resolve to that operation. API idempotency and chain transaction nonces are separate mechanisms.
  3. Funding and exit actions. Implement the selected product’s full procedure below, including access activation, approvals, address readiness, quotes, signing, and asynchronous claims. Check the chosen chain, asset, receiver, and amount immediately before signing. Decode integer units with the asset’s decimals; preserve API decimal strings without floating-point rounding.
  4. Balance and progress reads. Show confirmed balances and shares, and distinguish principal, yield, and APY. Use each product’s documented statuses to show progress through access setup, approvals, submission, settlement, claims, completion, or failure. Prevent repeated clicks from creating another logical operation.
  5. Reconciliation. Use the product’s documented webhook verification where available; deduplicate delivery and refresh current resource state. Add bounded polling and recovery on application restart, missed events, delayed indexing, and RPC interruption. Keep a queued redemption resumable until proceeds arrive. Stop polling on terminal states; use appropriate backoff and a visible pending state instead of promising a completion time.
  6. Setup and checks. Document required secret names, enabled access, networks, test asset/gas preparation, and how to run the integration. Add tests for authorization/ownership, precise amounts, repeat submission, uncertain responses, pending/failed operations, and restart recovery using the repository’s test tools. Run existing affected checks and the sandbox acceptance flow below.

Product procedures

Use this reading order to obtain exact executable payloads and transaction calls. Complete all steps in the chosen row, including its exit path. Follow the complete procedure for the selected product. Read each linked operation guide before constructing that operation; it contains the exact payload, authorization, and contract call for that lifecycle.

Recover safely

Verify the result

Run a real sandbox round trip when the developer has supplied access, test assets, and signing authorization. Capture starting balances, fund or subscribe, wait for confirmed credit/shares, exit, and confirm assets at the intended receiver. Exercise a restart while an operation is pending and recover the same operation. For a queued source, include successful claim and receiver delivery; if settlement is still pending, retain the request and report it as incomplete. The final handoff must include changed files, setup/run instructions, check results, resource and operation IDs, chain and transaction hashes, and starting/final asset and share balances. State whether each check used a mock, simulation, or confirmed sandbox transaction. List unresolved approvals, access, signing, failed tasks, and queued settlement with the exact next action.

Integration feedback

Use Submit integration feedback to report a distinct bug, documentation mismatch, friction point, request, or successful test. Submit from the backend with a write-enabled organization key. Save the report and its submission UUID before sending; retry uncertain outcomes with the same content and ID. Reporting is optional and must not block the integration.