Endpoint updates
- Update GET
/chainsto include thedisplayname andnative_asset_id - Update GET
/liquidityto include the solver’saddress
Endpoint updates
- Add Tron and Litecoin support
- Update GET
/fee,/volume,/chainsand/assetsendpoints to accept new query parameters - Update PATCH
/orders/:idendpoint requiressignaturesarray instead ofsignaturestring foraction=instant-refund
Endpoint updates
- Update GET
/chainsto include theidand theexplorer_urlfields - Update GET
/assetsto include ticker symbols in thenamefield and chain identifiers in thechainfield - Update GET
/liquidityto include correspondingsolver_idfield for each liquidity entry - Update GET
/schemasto return an array of schemas
Endpoint update
- Update GET
/quoteendpoint to includefeeandfixed_fee - Update GET
/assetsendpoint to includename - Update GET
/chainsendpoint to includename
Endpoint updates
- Update POST
/ordersto useinitiate_on_behalfcalldata when the source delegate is passed
Endpoint updates
- Update GET
/ordersto include the following filters:from_owner,to_owner - Update GET
/quoteendpoint to acceptslippageparameter
Watcher improvements
- Update event watch deadline for Bitcoin swaps from 1 hour to 6 hours
New chains
- Add Sui support
API call improvements
- Extend
getOrdersfunction with new filters (e.g. status , transaction hash) for more precise order queries. - Accept
AbortControlleras a parameter in get methods of@gardenfi/orderbookto allow cancellation of ongoing orderbook API calls.
Network switching improvements
- Fix error handling in
switchOrAddNetworkutility for case when network is not found.
Local testing
- Add
yarn linksupport allowing developers to locally test the changes done in SDK within a working project directory.
Affiliate fees endpoint
- Add GET
/apps/earningsto 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.
Endpoint updates
- Update GET
/ordersto include the following filters:address,tx_hash,from_chain,to_chain,page,per_page,status - Update GET
/chainsto include the default explorer URL
New chains
- Add BNB Chain support
One-click swaps
- Add
handleSecretManagementflag 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
- When set to
New endpoint
- Add PATCH
/orders/:id?action=refundendpoint to process Bitcoin refunds
Endpoint updates
- Update GET
/assetsendpoint to returnchain_idand fiat value - Update POST
/ordersendpoint 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
New endpoints
- Add
/schemas/{name}endpoint for fetching specific contract schemas - Add
/schemasendpoint for browsing available contract interfaces
Enhanced schema types
- Add support for different HTLC contract types across chains:
evm:htlc,evm:htlc_erc20solana:htlc,solana:htlc_spltokenstarknet:htlc,starknet:htlc_erc20
- Add support for blockchain-specific token standards:
evm:erc20,solana:spltoken,starknet:erc20
- Add
supported_htlc_schemasandsupported_token_schemasfields to chain information - Update
htlcandtokenfields 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-idheader authentication
New endpoints
- Add
/policyendpoint for client-side route validation and reduced API dependencies - Add
/liquidityendpoint for real-time liquidity information
Consolidated API structure
- Unify quote functionality under
/quoteendpoint - Streamline order operations with
/ordersand/orders/{order}endpoints - Simplify chain and asset queries with
/chainsand/assetsendpoints - Add
/healthendpoint for service monitoring - Integrate
/feesand/volumeendpoints 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
getBalanceutility in Phantom provider
- Upgrade Starknet dependencies
- Update Arbitrum Sepolia address
- Add Botanix support
- Add Corn support
- 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)