Algodex SDK v2

Updated July 28th, 2022

Overview

The Algodex Software Development Kit (SDK) 2.0 is for developers who wish to programmatically interact with Algodex. The SDK enables developers to integrate Algodex's exchange logic into their own DApps. A robust description of the SDK can be found here, and the Github and setup instructions can be found here.

Tutorials

Setup

NPM

npm install @algodex/algodex-sdk

Yarn

yarn add @algodex/algodex-sdk

Examples

[WIP] Example Testnet Configuration [config.json]

{
  "config": {
    "algod": {
      "uri": "https://testnet-algorand.api.purestake.io/ps2",
      "token": "<TOKEN>"
    },
    "indexer": {
      "uri": "https://algoindexer.testnet.algoexplorerapi.io",
      "token": ""
    },
    "explorer": {
      "uri": "https://indexer.testnet.algoexplorerapi.io",
      "port": ""
    },
    "dexd": {
      "uri": "https://api-testnet-public.algodex.com/algodex-backend",
      "token": ""
    }
  }
}

Example Mainnet Configuration [config.json]

{
  "config": {
    "algod": {
      "uri": "https://mainnet-algorand.api.purestake.io/ps2",
      "token": "<TOKEN>"
    },
    "indexer": {
      "uri": "https://algoindexer.algoexplorerapi.io",
      "token": ""
    },
    "explorer": {
      "uri": "https://indexer.algoexplorerapi.io",
      "port": ""
    },
    "dexd": {
      "uri": "https://app.algodex.com/algodex-backend",
      "token": ""
    }
  }
}

Last updated