Skip to main content
POST
/
api
/
withdraw
Withdraw unspent funds back to your wallet
curl --request POST \
  --url https://mag3nt.com/api/withdraw \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 50,
  "network": "eip155:8453",
  "asset": "USDC"
}
'
{
  "success": true,
  "withdrawal_id": "wd_abc123",
  "amount": 50,
  "withdrawal_fee": 0.5,
  "net_amount": 49.5,
  "status": "PROCESSING"
}

Authorizations

Authorization
string
header
required

API key prefixed with 'Bearer sx_live_...'

Body

application/json
amount
required

Gross amount to withdraw (fee is deducted from this)

Example:

50

network
string
required

CAIP-2 network to withdraw on

Example:

"eip155:8453"

asset
string
required
Example:

"USDC"

to_address
string

Destination wallet address (defaults to authenticated wallet)

Response

Withdrawal initiated

success
boolean
withdrawal_id
string
amount

Gross amount deducted from balance

withdrawal_fee

Flat network fee retained by platform

net_amount

Amount sent on-chain (amount - fee)

status
string
Example:

"PROCESSING"

balance
object