Skip to main content
POST
/
v2
/
wallets
/
{id}
/
withdrawal-preview
Preview a withdrawal
curl --request POST \
  --url https://sandbox.groundtech.co/v2/wallets/{id}/withdrawal-preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "destinationChain": "arbitrum",
  "amountUsd": 50
}
'
{
  "error": "<string>",
  "code": "validation_error"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Wallet ID

Body

application/json
destinationChain
string
required

Target chain for the withdrawal (e.g. arbitrum, solana).

amountUsd
number<double> | null

If omitted, the preview returns the maximum withdrawable amount.

Response

Withdrawal preview