Dexilon API Documentation
  • 👋Getting Started
  • General Info
    • ⚙️General API information
      • Base URLs
      • HTTP Return Codes
      • Enum Definition
    • 💻Clients
      • Dexilon Chain Client
    • 🚦Limits
      • REST API Rate limits
      • WS Stream Rate Limits
    • 🔐Security
      • Registration Flow
      • Authentication Flow
      • Sending Dexilon Transactions
      • Private API Calls
        • Access Token
        • Refresh Access Token
      • Timing security
    • ⚠️Error Codes
      • REST API Error Codes
      • WS Stream Error Codes
    • 🔍Audits
      • Bridge Audit
      • Smart-Contract Audit
  • Restful API
    • 📊Market Data Endpoints
      • Test Connectivity
      • Check Server Time
      • Exchange Information
      • Order Book
      • Recent Trades List
      • Kline/Candlestick Data
      • Symbol Data
      • Funding Rate History
      • Open Interest
      • Taker Buy/Sell Volume
      • Index Price History
      • Fee Tiers Structure
      • Fee Tiers Discount
      • Symbol Rules
      • Leverage Rules
    • ⚒️Account and Trades Endpoints
      • 🔒Account Information
      • 🔒Get User Address
      • 🔒Positions Information
      • 🔒Assets Information
      • 🔒Change Initial Leverage
      • 🔒Change Margin Type
      • 🔒Modify Isolated Position Margin
      • 🔒Create Withdrawal
      • 🔒Create market order
      • 🔒Create limit order
      • 🔒Cancel Order
      • 🔒Cancel All Orders
      • 🔒Query Order
      • 🔒Get Open Orders
      • 🔒Get Order History
      • 🔒Get Trade History
      • 🔒Get Transaction History
    • 🏆Rewards Endpoints
      • Current Reward Round
      • Reward Distribution
      • Rewards Settings
      • Current Tournament
      • Tournament Members
      • 🔒User's Reward Distributions
      • 🔒User's Reward Round Profit
      • 🔒User's Tournament Rating
    • 💸Liquidation Auctions Endpoints
      • Open Lots
      • Lot History
      • 🔒Place Bid
  • WebSocket Streams
    • 📈Market Data WS Streams
      • Working with Public Streams
      • Mark Price Stream
      • Mark Price Stream For All Markets
      • Kline/Candlestick Stream
      • Ticker Stream
      • Ticker Stream For All Markets
      • Partial Book Depth Stream
      • Book Ticker Stream
      • Trade Stream
      • Aggregate Trade Stream
      • Liquidation Trade Stream
      • Liquidation Auction Stream
    • 👥User Data WS Stream
      • 🔒Working with Private Streams
      • 🔒Order Update Stream
      • 🔒Account Update Stream
      • 🔒L2 Account Update Stream
Powered by GitBook
On this page
  1. General Info
  2. Security

Private API Calls

PreviousSending Dexilon TransactionsNextAccess Token

Last updated 2 years ago

After you performed all steps in and you can generate JWT token:

  1. User creates a ECDSA signature with Ethereum Wallet

  2. Call (passing Ethereum Address, signature and sign message).

  3. Dexilon API check ownership of your Ethereum Wallet and get Dexilon Chain Address cause mapping has been created already.

  4. Returns Access and Refresh JWT Tokens

  5. To refresh current Access JWT Token use

After you got valid Access JWT Token you can call private API methods. All private methods requires two request headers:

  1. Authorization = "Bearer <AccessJWT Token>"

  2. CosmosAddress = "<granter Dexilon Chain Address>"

Example of calling private :

curl --header "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiI1IiwiaXNzIjoiY29zbW9zMW1qNnl5NDBsOXI2NnZldnhza3FoMHBlZDRjdnh0ZTlleHFuYTJhIiwiZXhwIjoxNjc2MDc4NDQx
fQ.tm3euJjyg9_FiKIaqlOptTtDM1NYae58cKM0Dg7cvV08issl-qXPCZ0n5u16wGhGA5gh0omgu34umDp63
dCRTw" --header "CosmosAddress: cosmos1jsc2y8a6ya9jy4d38mr508uletcxw32r4md2pp" 
-v https://api.staging.dexilon.io/api/v1/accounts

ALL PRIVATE METHODS has 🔒 emodji in a name.

🔐
Registration Flow
Authentication Flow
this endpoint
this endpoint
API method