Ethers v5arrow-up-right is required as a peer dependency in order to use the SDK
We recommend installing SDK either through yarn or npm:
yarn
npm
yarn add @mento-protocol/mento-sdk npm i --save @mento-protocol/mento-sdk
After you've installed the SDK using your favourite package manager, you can go through the following walkthrough guides:
Discovering exchanges and pairs
Getting price quotes
Executing swaps
All the codes snippets in the above guides can be found in mento-sdk-examplesarrow-up-right. We encourage you to clone the repository, and execute the different code snippets as you read through the guides.
Last updated 2 years ago