Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Guides Wallets Fund wallets during testing

Fund wallets during testing

See which sandbox wallets a public test-network faucet can fund, and why EVM sandbox wallets show a sandbox test dollar instead.

2 min read

This page shows how to put test funds on a sandbox wallet. Sandbox wallets are test-network wallets, and how you fund one depends on its network.

Example. You create a sandbox Stellar wallet for Ada and send it 10 test-network USDC from a public faucet. Her wallet then shows a USDC balance of 10.0000000. A sandbox Polygon wallet would still show 0, because faucet USDC does not count on that network.

NetworkHow to fund it in sandbox
stellar, solanaA public USDC faucet for that test network. These are real test-network wallets
polygon, ethereum, avalancheYou cannot fund these with a faucet. On these networks the USDC balance of a sandbox wallet is the sandbox test dollar, a test token that stands for US dollars. USDC from a public faucet does not show. Fund a Polygon wallet with a simulated collection, below

To test money arriving in an account, use a simulated deposit on a v2 account.

Fund a Polygon wallet

Start a test bank collection into the wallet, then pay it with the collection simulator. This is what gravv try wallet in the Gravv CLI does.

1.

Start the collection. Save data.transaction_id from the answer.

start a test collection into the wallet
curl --request POST \
--url https://api.gravv.xyz/v1/collections \
--header 'Api-Key: <API_KEY>' \
--header 'Idempotency-Key: 0e2c4a6b-8d1f-4b3a-9c5e-7f0a2b4c6d81' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "401d68fb-fe97-4c56-84a6-5651cdbde747",
"client_customer_id": "ada-sandbox-funding",
"amount": "20.00",
"currency": "NGN",
"source": { "source_type": "external", "methods": ["bank_transfer"] },
"destination": { "destination_type": "internal_crypto_wallet", "id": "bbab27f6-04b8-457d-83ed-b92009758340" },
"asset": "USDC",
"client_reference": "ada-sandbox-fund-0001",
"metadata": { "bank_account_number": "2034567891" }
}
'
2.

Pay it with the collection simulator from the Gravv CLI. It refuses a live key.

pay the collection in sandbox
gravv collections simulate webhook --transaction-id <transaction_id> --status success
3.
Read the collection with GET /v1/collections/{transaction_id} until transaction_status is completed, usually within 2 minutes. Then read the wallet. Its USDC balance shows 20.

Use a new Idempotency-Key and client_reference for each top-up. Sandbox can settle one collection twice, so the balance may show 40. The ledger shows one credit.

Fund a Stellar or Solana wallet

1.

Read the wallet's address and network with Get a single wallet:

read the wallet address
curl --request GET \
--url https://api.gravv.xyz/v1/wallets/30803889-fa61-4774-8d11-8e3781728a07 \
--header 'Api-Key: <API_KEY>'
2.
Open a public USDC faucet for the Stellar or Solana test network, and send USDC to the address.
3.
Wait for inflow.onchain.completed, then read the wallet again for the balance.

A Stellar wallet already holds its USDC trustline a few seconds after Gravv creates it. A new Solana wallet lists only SOL until the first USDC arrives.

Do not send main-network coins to a sandbox address. You lose them.

Was this page helpful? Yes No