Set Up Your Development Environment
Get started building with Euclid’s APIs in minutes. Whether you're integrating token swaps, fetching pricing and pool data, or exploring liquidity provisioning, this guide walks you through the minimal setup needed to begin.
1. Choose and Install a Tool
You can make requests to Euclid via:
- GraphQL: Using any GraphQL client like Apollo Client, Postman, or curl.
- REST API: Using tools like Postman, curl, or native
fetchin your language of choice.
No CLI or SDK is required.
Depending on what you're using, here's how to install the basics:
# No install needed in browser
# For Node.js (18+ includes fetch), otherwise:
npm install node-fetchnpm install axiosnpm install @apollo/client graphql cross-fetchnpm install @apollo/client graphqlpip install requests2. Connect a Wallet
If you're interacting with authenticated routes or signing and broadcasting transactions, you'll need a wallet connection.
Euclid supports several wallet types across EVM and Cosmos:
Wallets are required to sign transactions and resolve cross-chain identity and balances.
3. (Optional) Get an API Key
If your API usage requires a key (e.g. higher rate limits or transaction tracking), generate one in the Euclid Developer Portal.
Include it as a header:
Authorization: Bearer YOUR_API_KEY
4. Use the Sandbox / Testnet
Test trades and simulate transactions without spending real assets using our testnet.
- GraphQL Sandbox Endpoint:
https://testnet.api.euclidprotocol.com/ - Faucet Links
5. Explore Further
Once your environment is ready, explore key integrations: