simulateSwap
&simulateReverseSwap
method parameters extended with the optionalreferralFeeBps
filedsimulateSwap
&simulateReverseSwap
method parameters documented with JSDoc comments
- remove sending of the
offer_units
parameter in thesimulateSwap
request alongside with theunits
parameter - remove sending sending of the
ask_units
parameter in thesimulateReverseSwap
request alongside with theunits
parameter
- the
RouterInfo
structure was extended withpool_creation_enabled
field - the
AssetInfo.tags
was moved to the new tags format. SeeAssetTag
enum searchAssets
method parameters were extended with the optionalunconditionalAssets
- new
StonApiClient.queryPools
method
- fix
getRouters
response type declaration
- The
AssetInfo
structure was extended withextensions
&custom_payload_api_uri
fields (fields for Mintless Jetton's) - The
AssetInfoV2Response
structure was extended withextensions
&meta.custom_payload_api_uri
fields (fields for Mintless Jetton's) StonApiClient.getRouters
methodStonApiClient.getRouter
method- Most API methods now accept the optional
dexV2
parameter. If this parameter is passed to the API method, the response will contain v1 AND v2 addresses (for example,StonApiClient.getRouters()
will return only an array of v1 routers, andStonApiClient.getRouters({ dexV2: true })
will return an array of v1 and v2 routers). The same logic applies to all other methods where this parameter was added. By default, this parameter is set tofalse
and is needed to force users to explicitly confirm that they are ready to receive v2 addresses from the APIStonApiClient.getRouters
StonApiClient.getSwapPairs
StonApiClient.simulateSwap
StonApiClient.simulateReverseSwap
StonApiClient.getPools
StonApiClient.getWalletPools
StonApiClient.getFarms
StonApiClient.getWalletFarms
StonApiClient.getWalletOperations
AssetInfo
structure was extended with atags
fieldStonApiClient.queryAssets
methodStonApiClient.searchAssets
methodStonApiClient.getWalletOperations
methodStonApiClient.getOperationsStats
method
StonApiClient.getAsset
methodStonApiClient.getWalletAsset
methodStonApiClient.getPool
methodStonApiClient.getWalletPool
methodStonApiClient.getFarm
methodStonApiClient.getWalletFarm
methodStonApiClient.getFarmsByPool
methodAssetInfo.priority
fieldSwapSimulation.askJettonWallet
,SwapSimulation.offerJettonWallet
fieldFarmNftInfo.rewards
field
- fix
getWalletFarms
method URL
StonApiClient.getSwapPairs()
methodStonApiClient.simulateSwap()
methodStonApiClient.simulateReverseSwap()
methodStonApiClient.getSwapStatus()
method
baseUrl
client option deprecated. ExpectedbaseURL
to be used instead
StonApiClient.getAssets()
methodStonApiClient.getFarms()
methodStonApiClient.getPools()
methodStonApiClient.getJettonWalletAddress()
methodStonApiClient.getWalletAssets()
methodStonApiClient.getWalletFarms()
methodStonApiClient.getWalletPools()
method