tanX Docupaper
AboutTrade
  • ABOUT
    • πŸ“’tanX Docupaper
  • TECH
    • πŸ‘©β€πŸ’»Tech Docupaper
      • 🏨High level architecture
      • πŸ€”Starkware logic
      • 🌊Transactional flow
        • Off-chain accounts
        • The deposit flow
        • The withdrawal flow
        • The trade flow
        • The transfer flow
        • Full withdrawal
    • πŸ”ŒAPI Documentation
      • πŸ˜‹Getting started
        • Test connectivity
      • πŸ“ˆMarket
        • 24hr Tickers Price
        • K-line/Candlestick data
        • Orderbook
        • Recent trades
      • ↔️Trading
        • Create order
        • Get order
        • List orders
        • Cancel order
        • Bulk Cancel
        • List trades
      • πŸ”Account
        • Generating L2 Key Pairs
        • Login
        • Deposit
        • Withdrawal
        • Profile Information
        • Balance details
        • Profit and loss details
      • 🌏Web-socket stream
        • πŸ—οΈPrivate web-socket connection
        • πŸ‘₯Public websocket connection
      • ✨Internal Transfer
        • Create Internal Transfer
        • Get Internal Transfer
        • Check User Existence
        • List Internal Transfers
      • πŸ§ͺSDK Reference
        • NodeJS SDK
        • Python SDK
  • LEGAL
    • ‼️tanX Disclaimer
Powered by GitBook
On this page

Was this helpful?

  1. TECH
  2. Tech Docupaper
  3. Transactional flow

Full withdrawal

On tanX, which is a spot trading system, the only forced action is a withdrawal of all the funds. This guarantees that tanX, which is a L2 application cannot block users from getting their funds, which is an essential attribute of a DeFi application.

This section describes the specific parameters of a Full Withdrawal request.

Full Withdrawal parameters

When a User wants to perform Full Withdrawal, s/he calls the fullWithdrawalRequestfunction in Starkware contract. This function gets two parameters: starkKey and vaultId. The request is valid only if the starkKey parameter is associated with the Ethereum address that initiated the transaction. Otherwise, the request is rejected by the Starkware smart contract (and won’t be treated by tanX).

PreviousThe transfer flowNextAPI Documentation

Last updated 1 year ago

Was this helpful?

πŸ‘©β€πŸ’»
🌊