🎬 Video Tutorial
Prefer learning by watching? Check out our integration walkthrough: Watch the integration walkthrough on YouTube:Generate your API Key
- Open the DeFindex Console and create your account, or log in.
- Go to API Keys and click Generate API Key.
- Copy the key. It looks like
sk_...and it is the only credential your backend needs.
Prerequisites
- Basic knowledge of TypeScript or JavaScript
- Node.js environment
- Stellar SDK installed (
npm install stellar-sdk) - DeFindex API key — see Getting Your API Key
1. Setting Up the API Client
First, create anApiClient class to handle authentication and API requests.
- Deposit
- Withdraw
- Balance
- APY
Request Parameters Reference
Deposit Request
Withdraw Request
Send Request
Sent toPOST /send, at the API root rather than under a vault path.