Private API Calls
After you performed all steps in Registration Flow and Authentication Flow you can generate JWT token:
User creates a
ECDSAsignature withEthereum WalletCall this endpoint (passing
Ethereum Address, signature and sign message).Dexilon APIcheck ownership of yourEthereum Walletand getDexilon Chain Addresscause mapping has been created already.Returns
AccessandRefreshJWT TokensTo refresh current
Access JWT Tokenuse this endpoint
After you got valid Access JWT Token you can call private API methods. All private methods requires two request headers:
Authorization = "Bearer
<AccessJWT Token>"CosmosAddress = "
<granter Dexilon Chain Address>"
Example of calling private API method:
curl --header "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiI1IiwiaXNzIjoiY29zbW9zMW1qNnl5NDBsOXI2NnZldnhza3FoMHBlZDRjdnh0ZTlleHFuYTJhIiwiZXhwIjoxNjc2MDc4NDQx
fQ.tm3euJjyg9_FiKIaqlOptTtDM1NYae58cKM0Dg7cvV08issl-qXPCZ0n5u16wGhGA5gh0omgu34umDp63
dCRTw" --header "CosmosAddress: cosmos1jsc2y8a6ya9jy4d38mr508uletcxw32r4md2pp"
-v https://api.staging.dexilon.io/api/v1/accountsLast updated