Set Up the Development Environment
This guide explains how to setup a development environment (Typescript, NodeJS) to use the DeFi API (via the Typescript SDK)
expand.network by Blockdaemon
- Docs - Explore API documentation and guides.
- Playground - Test API requests in a live environment.
Before exploring the various features of the Blockdaemon DeFi API, we need to set up our development environment with some example scripts. The following guides use the Typescript SDK and a generic REST API.
We assume basic knowledge of Node.JS and your operating system’s command line interface.
Before we delve into the code, let’s set some groundwork:
- Contact us to get the API key, or go to https://app.blockdaemon.com/
- Clone our DeFi API example project:
git clone https://github.com/Blockdaemon/defi-api-examples.git - Enter into the project directory:
cd defi-api-examples - Follow the setup instructions in the project README. The
README.mdexplores a set of functionalities such as obtaining chain information, token information, and conducting a swap. Please refer to the accompanying guides for more details.
The following guides help you build powerful features using the DeFi API. Our repo includes scripts that complement the available guides.
👋 Need Help?
Contact us through email or our support page for any issues, bugs, or assistance you may need.
Updated 7 days ago
What’s Next
