Prerequisites:
- Node.js version 22.11.00 or higher
- pnpm 10.9.0 or higher
1
Create a simple project
Create a simple project to test the SDK
2
Install the Mycelium SDK
3
Init SDK
Initiate an SDK with basic settings and API key. Get a keyThis will initiate an SDK object that you can use further to manage web3 account and getting DeFi opportunities
Don’t know what is risk level? Read about it!
4
That's it!
You’re done! Right now you can check which DeFi opportunities are available so far
SDK limitations
The SDK is the server only and can’t be used directly on frontend. To use Mycelium for frontend projects you need to create a basic API to access SDK abilitiesThe React library is currently under development and will be available soon. Stay tuned on our GitHub
SDK settings
There are several parameters that you need to define on the initialization step before using the SDK except of API key. To get more information about which settings can be provided and for what they are responsible to, you can check the SDK settingsTroubleshooting
How to get an API key?
How to get an API key?
This may be due to an outdated version of node. Try the following:
- Remove the currently-installed version of the CLI:
npm remove -g mint - Upgrade to Node v19 or higher.
- Reinstall the CLI:
npm i -g mint
The SDK is failing on the init step
The SDK is failing on the init step
Solution: Go to the root of your device and delete the
~/.mintlify folder. Then run mint dev again.SDK methods are not working
SDK methods are not working

