API Reference
Complete API documentation for @tetherto/wdk-protocol-swap-stonfi-ton
Table of Contents
Class
Description
Methods
StonFiProtocolTon
Constructor
new StonFiProtocolTon(account, config?)import StonFiProtocolTon from '@tetherto/wdk-protocol-swap-stonfi-ton'
import { WalletAccountTon } from '@tetherto/wdk-wallet-ton'
const account = new WalletAccountTon(seedPhrase, {
tonApiKey: 'YOUR_TON_API_KEY',
tonApiEndpoint: 'YOUR_TON_API_ENDPOINT'
})
const swapProtocol = new StonFiProtocolTon(account, {
swapMaxFee: 1000000000n // Maximum swap fee in nanotons
})Methods
Method
Description
Returns
Throws
swap(options, config?)
swap(options, config?)quoteSwap(options, config?)
quoteSwap(options, config?)
