Start with Breeze SDK within minutes
apiKey: string
- Your API authentication key (required)baseUrl?: string
- Base URL for the API (default: ‘https://api.breeze.baby/’)timeout?: number
- Request timeout in milliseconds (default: 30000)getUserYield(options)
Get user yield data with pagination and fund filtering.
getUserBalances(options)
Get user balance information with asset filtering and sorting.
createDepositTransaction(options)
Create a deposit transaction. Required parameters: fundId
, amount
, userKey
.
createWithdrawTransaction(options)
Create a withdraw transaction. Required parameters: fundId
, amount
, userKey
.
getDepositInstructions(options)
Get Solana transaction instructions for deposits. Required parameters: fundId
, amount
, userKey
.
getWithdrawInstruction(options)
Get Solana transaction instruction for withdrawals. Required parameters: fundId
, amount
, userKey
.
updateApiKey(newApiKey: string)
Update the API key used for authentication.
getApiClient()
Get the underlying ApiClient instance for advanced usage.
https://api.breeze.baby/
Make sure your API key has access to the following endpoints:
GET /user-yield/{user_id}
- User yield data retrievalGET /user-balances/{user_id}
- User balance informationPOST /deposit/tx
- Deposit transaction creationPOST /withdraw/tx
- Withdraw transaction creationPOST /deposit/ix
- Deposit instruction generationPOST /withdraw/ix
- Withdraw instruction generationmessage: string
- Error messagestatus?: number
- HTTP status codecode?: string
- Error code (‘TIMEOUT’, ‘NETWORK_ERROR’, etc.)response?: any
- Full error response from the APIGET /user-yield/{user_id}
- Get user yield data (supports pagination and fund filtering)GET /user-balances/{user_id}
- Get user balance information (supports asset filtering and sorting)POST /deposit/tx
- Create deposit transaction (requires fundId, amount, userKey)POST /withdraw/tx
- Create withdraw transaction (requires fundId, amount, userKey)POST /deposit/ix
- Get deposit instructions (requires fundId, amount, userKey)POST /withdraw/ix
- Get withdraw instruction (requires fundId, amount, userKey)examples/
directory:
basic-usage.ts
- Simple SDK initialization and basic method callsintegration-flow.ts
- Complete transaction flow with Solana executionintegration-flow-simple.ts
- API demonstration without transaction execution