Skip to main contentEndpoint update
- Update GET
/quote endpoint to include fee and fixed_fee
- Update GET
/assets endpoint to include name
- Update GET
/chains endpoint to include name
New endpoint
- Add
/apps/earnings endpoint for fetching affiliate earnings
Endpoint updates
- Update POST
/orders to use initiate_on_behalf calldata when the source delegate is passed
Endpoint updates
- Update GET
/orders to include the following filters: from_owner, to_owner
- Update GET
/quote endpoint to accept slippage parameter
Endpoint update
- Update GET
/quote endpoint to include estimated_time
New chains
New assets
- Add SPL tokens support for Solana
Approval flow improvements
- Add check after approval to verify the latest allowance amount.
Watcher improvements
- Update event watch deadline for Bitcoin swaps from 1 hour to 6 hours
New chains
API call improvements
- Extend
getOrders function with new filters (e.g. status , transaction hash) for more precise order queries.
- Accept
AbortController as a parameter in get methods of @gardenfi/orderbook to allow cancellation of ongoing orderbook API calls.
Network switching improvements
- Fix error handling in
switchOrAddNetwork utility for case when network is not found.
Local testing
- Add
yarn link support allowing developers to locally test the changes done in SDK within a working project directory.
Affiliate fees endpoint
- Add GET
/apps/earnings to track an integrator’s affiliate fees
Order status fixes
- Fix order status parsing to ensure swap initiation and initiation detection are confirmed before the attested deadline, preventing orders from being accepted after expiry.
New chains
- Add SPL tokens support for Solana
Endpoint updates
- Update GET
/orders to include the following filters: address, tx_hash, from_chain, to_chain, page, per_page, status
- Update GET
/chains to include the default explorer URL
New chains
One-click swaps
- Add
handleSecretManagement flag for optional secret management.
- When set to
false, we use one-click swaps
- When set to
true, we manage secrets within the SDK, and the user has to keep his session active
New endpoint
- Add PATCH
/orders/:id?action=refund endpoint to process Bitcoin refunds
Endpoint updates
- Update GET
/assets endpoint to return chain_id and fiat value
- Update POST
/orders endpoint to make Bitcoin address optional, to allow refund address updates after expiry
Phantom wallet fixes
- Finalize all inputs of a Partially Signed Bitcoin Transaction in
PhantomProvider, fixing issues with transaction broadcasting
Dependency update
- Internalised
@catalogfi/wallets dependency to Garden SDK
New endpoints
- Add
/schemas/{name} endpoint for fetching specific contract schemas
- Add
/schemas endpoint for browsing available contract interfaces
Enhanced schema types
- Add support for different HTLC contract types across chains:
evm:htlc, evm:htlc_erc20
solana:htlc, solana:htlc_spltoken
starknet:htlc, starknet:htlc_erc20
- Add support for blockchain-specific token standards:
evm:erc20, solana:spltoken, starknet:erc20
- Add
supported_htlc_schemas and supported_token_schemas fields to chain information
- Update
htlc and token fields to be objects that include schema names
API architecture overhaul
- Migrate from microservice-based endpoints to unified API at https://{environment}.garden.finance/v2
- Replace Bearer JWT authentication with
garden-app-id header authentication
New endpoints
- Add
/policy endpoint for client-side route validation and reduced API dependencies
- Add
/liquidity endpoint for real-time liquidity information
Consolidated API structure
- Unify quote functionality under
/quote endpoint
- Streamline order operations with
/orders and /orders/{order} endpoints
- Simplify chain and asset queries with
/chains and /assets endpoints
- Add
/health endpoint for service monitoring
- Integrate
/fees and /volume endpoints for swap metrics
Developer experience improvements
- Enhance OpenAPI specification with detailed descriptions and examples
- Improve schema definitions for better SDK generation
- Standardize error response formats across all endpoints
- Add Solana support
- Add retry logic for transactions dropped in mempool
- Fix
getBalance utility in Phantom provider
- Upgrade Starknet dependencies
- Update Arbitrum Sepolia address
- Initialise quote using API
- Automatically handle network switching in wallets
- Add support for Phantom, Xverse, and Keplr wallets
- Fix build issues
- Exit script execution if build fails
- Update script file
- Add Unichain support
- Remove unnecessary API calls in
react-hooks
- Support for affiliate fees
- Add helper function
getQuoteFromAssets
- Add Starknet support
- Add support for network switching in Node environment (previously supported in browser)