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
}
'
{
  "amountUsd": "50.000000",
  "feeUsd": "0.000000",
  "availableUsd": "1000.000000",
  "availableToInitiateUsd": "1000.000000",
  "estimatedCompletionTime": "PT2H"
}

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
enum<string>
required

Target chain for the withdrawal. Use ethereum_sepolia for sandbox testing.

Available options:
arbitrum,
base,
ethereum,
ethereum_sepolia,
polygon,
solana
amountUsd
number<double> | null

If omitted, the preview returns the maximum withdrawable amount.

Response

Withdrawal preview

amountUsd
string

The withdrawal amount (requested amount, or the maximum available if omitted).

feeUsd
string

Fee charged for the withdrawal (currently always "0.000000").

availableUsd
string

Backwards-compatible alias for availableToInitiateUsd.

availableToInitiateUsd
string

Conservative amount that can safely start a new withdrawal for this destination right now.

estimatedCompletionTime
string

ISO-8601 duration estimate for withdrawal completion.