POST
/
api
/
v1
/
vault
/
{address}
/
withdraw
curl --request POST \
  --url https://apiserver.beratrade.io/api/v1/vault/{address}/withdraw \
  --header 'Bliq-Key: <bliq-key>' \
  --header 'Bliq-Secret: <bliq-secret>' \
  --header 'Bliq-Signature: <bliq-signature>' \
  --header 'Bliq-Signer-Address: <bliq-signer-address>' \
  --header 'Content-Type: application/json' \
  --data '{
  "baseAmount": "<string>",
  "quoteAmount": "<string>",
  "userAddress": "<string>",
  "chainId": 123,
  "nonce": 123
}'
{
  "body": {
    "success": true
  },
  "message": "<string>",
  "status": 123
}

Withdraws tokens from a vault.

Headers

Bliq-Key
string
required

bliq_key obtained during authentication

Bliq-Secret
string
required

bliq_secret obtained during authentication

Bliq-Signature
string
required

Signature generated by signing the payload with signingKey

Bliq-Signer-Address
string
required

signingKey used to generate the signature

Path Parameters

address
string
required

Vault address

Body

application/json

Response

200
application/json

Withdraw successful

The response is of type object.