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

Off-chain accounts

An off-chain account is the default account for users of tanX which is a platform powered by Starkware. These accounts' balances are stored and managed off-chain (except when moving the funds to/from an on-chain account). From the L1 perspective, the funds of these accounts are stored under the Starkware smart contract.

In this section, we describe the flows that update these accounts. Specifically, a deposit of funds to an L2 account, a transfer of funds to another L2 account, trading tokens from an L2 account, and a withdrawal of funds back to L1.

Moving forward we have described flows that tanX initiates and might affect these accounts on L2, namely minting off-chain assets for spot trading systems, and liquidation, deleverages and price changes in the perpetual trading systems.

PreviousTransactional flowNextThe deposit flow

Last updated 1 year ago

Was this helpful?

๐Ÿ‘ฉโ€๐Ÿ’ป
๐ŸŒŠ