Quickstart
The eckoDEX SDK is a stand-alone library designed to assist developers when interacting with the protocol in any environment that can execute JavaScript, such as websites or node scripts. With the SDK, you can manipulate data that has been queried from the Kadena Chainweb blockchain using libraries that assist with several needs, such as protection from rounding errors.
Good to know: The Kadena Chainweb blockchain uses a unique runtime environment which uses the Pact programming language to describe and execute smart contracts. Pact provides several benefits over an EVM/Solidity environment, but it does require a few concepts in order to work with effectively. This SDK does wrap some common errors and edge cases, however please keep in mind that expertise with Kadena Chainweb and/or Pact may be required to support your use case. For more about Kadena, see https://kadena.io/. To learn about the Pact runtime, you can refer to the full documentation: https://pact-language.readthedocs.io/en/stable/pact-reference.html
Install the library
You can install kaddex-sdk
using any npm package manager.
Make your first request
To make your first request, send a signed Kadena chainweb transaction `to the swap smart contract using the KaddexSdk library function, swapExactIn
. You will need to have some tokens in your account.
Take a look at how you might call this method using our official library:
Last updated