Skip to content

chainstream-io/dex-openapi

Repository files navigation

dex-openapi

Install

yarn add @chainstream-io/dex

Usage

Fetch AccessToken(Server)

const tokenUrl = `https://dex.asia.auth.openweb3.io/oauth/token`;

const response = await axios.post(tokenUrl, new URLSearchParams({
  grant_type: 'client_credentials',
  client_id: 'your client id',
  client_secret: 'your client secret',
  audience: audience,
}));

return response.data.access_token;

Client

const client = new DexClient(accessToken)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors