For the complete documentation index, see llms.txt. This page is also available as Markdown.

withdraw_history

Get withdraw history. Secure withdrawals are only set to claimable when ready. You should only expect the completed status on fast withdrawals. The filter supports all, pending and claimable; completed, failed and refunded cannot be selected individually.

get
/api/v1/withdraw/history
Query parameters
account_indexinteger · int64Required

Account index to query.

cursorstringOptional

Opaque pagination cursor returned by the previous response; pass it unchanged.

filterstring · enumOptional

Select the records to include using the listed filter values. Allowed values: all, pending, claimable.

Possible values:
Header parameters
authorizationstringRequired

Auth token in the Authorization header.

Responses
200

A successful response.

application/json
codeinteger · int32RequiredExample: 200
messagestringOptional
cursorstringRequired
get/api/v1/withdraw/history
GET /api/v1/withdraw/history?account_index=1 HTTP/1.1
Host: mainnet.zklighter.elliot.ai
authorization: text
Accept: */*
{
  "code": 200,
  "message": "text",
  "withdraws": [
    {
      "id": "text",
      "amount": "0.1",
      "timestamp": 1640995200,
      "status": "failed",
      "type": "secure",
      "l1_tx_hash": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
      "l2_tx_hash": "088c93e15f85d101f7191c25582f8a5857af80629470a5153a7578756b7dd22d61d42c58dcca2b3c",
      "l1_claim_tx_hash": "0x65eef86cccb1b1a15fd53930744bd630c92741d044afdf9d6d708c5e91096224",
      "l1_claim_amount": "0.1",
      "asset_id": 1
    }
  ],
  "cursor": "text"
}

Last updated

Was this helpful?