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 to withdraw, in USDC micros. Minimum is 1.
EVM address that should receive the withdrawn USDC.
Client-supplied idempotency key for replay-safe submission.
Response Fields
Amount withdrawn, in USDC micros, encoded as a decimal integer string.
Operation ID used for idempotency and recovery correlation.
EVM address that received the withdrawn USDC.
Transaction hash for the settlement withdrawal.