Skip to main content
curl --request POST \
  --url https://api.longshot.xyz/v1/users/withdraw \
  --header 'Authorization: Bearer <session_token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount_micros": 1000000,
  "destination_address": "0x742d35cC6634C0532925A3B844Bc9e7595F8B2A1",
  "idempotency_key": "550e8400-e29b-41d4-a716-446655440000"
}'
{
  "amount_micros": "1000000",
  "operation_id": "550e8400-e29b-41d4-a716-446655440000",
  "destination_address": "0x742d35cC6634C0532925A3B844Bc9e7595F8B2A1",
  "tx_hash": "0xabc123"
}
curl --request POST \
  --url https://api.longshot.xyz/v1/users/withdraw \
  --header 'Authorization: Bearer <session_token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount_micros": 1000000,
  "destination_address": "0x742d35cC6634C0532925A3B844Bc9e7595F8B2A1",
  "idempotency_key": "550e8400-e29b-41d4-a716-446655440000"
}'
{
  "amount_micros": "1000000",
  "operation_id": "550e8400-e29b-41d4-a716-446655440000",
  "destination_address": "0x742d35cC6634C0532925A3B844Bc9e7595F8B2A1",
  "tx_hash": "0xabc123"
}

Endpoint

POST https://api.longshot.xyz/v1/users/withdraw
Authorization: Bearer <session_token>
Content-Type: application/json
Debits available app balance and withdraws USDC from settlement to the explicit destination address in the request. The idempotency key protects the full withdrawal request, including the destination address.

Body Parameters

amount_micros
int64
required
Amount to withdraw, in USDC micros. Minimum is 1.
destination_address
string
required
EVM address that should receive the withdrawn USDC.
idempotency_key
uuid
required
Client-supplied idempotency key for replay-safe submission.

Response Fields

amount_micros
string
Amount withdrawn, in USDC micros, encoded as a decimal integer string.
operation_id
uuid
Operation ID used for idempotency and recovery correlation.
destination_address
string
EVM address that received the withdrawn USDC.
tx_hash
string
Transaction hash for the settlement withdrawal.