Backend API
Table of Contents
Initialization
Basic Initialization
import { Sodax } from '@sodax/sdk';
// Initialize with default configuration
const sodax = new Sodax();
const backendApi = sodax.backendApi;Custom Configuration
Configuration
BackendApiConfig Type
Default Configuration
Intent Endpoints
Get Intent by Transaction Hash
Get Intent by Intent Hash
Solver Endpoints
Get Orderbook
Money Market Endpoints
Get User Position
Get All Money Market Assets
Get Specific Money Market Asset
Get Asset Borrowers
Get Asset Suppliers
Get All Money Market Borrowers
Error Handling
Timeout Errors
HTTP Errors
Network Errors
Utility Methods
Set Custom Headers
Get Base URL
Complete Example
Notes
Last updated