1.0.10 • Published 10 months ago
@mytonswap/sdk v1.0.10
Installation:
npm install @mytonswap/sdk
Usage
Here's a basic example of how to use the MyTonSwap SDK:
import { MyTonSwapClient } from '@mytonswap/sdk';
const client = new MyTonSwapClient();
async function performSwap() {
const userWallet = 'your-wallet-address';
const TON = await client.assets.getExactAsset('TON');
const NOT = await client.assets.getExactAsset('NOT');
const bestRoute = await client.router.findBestRoute(
TON!.address,
NOT!.address,
toNano(1),
1,
);
const swap = await client.swap.createSwap(userWallet, bestRoute);
console.log(swap);
}
performSwap();
Contributing
We welcome contributions! Please read our contributing guidelines before submitting a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
If you have any questions or need help, feel free to open an issue on our GitHub repository.
1.0.9
10 months ago
1.0.8
10 months ago
1.0.7
10 months ago
1.0.10
10 months ago
1.0.6
10 months ago
1.0.5
10 months ago
1.0.4
10 months ago
1.0.3
10 months ago
1.0.2
10 months ago
0.0.18
10 months ago
0.0.17
10 months ago
0.0.14
10 months ago
0.0.13
10 months ago
0.0.12
10 months ago
0.0.11
10 months ago
0.0.10
10 months ago
0.0.9
10 months ago
0.0.8
10 months ago
0.0.7
10 months ago
0.0.6
10 months ago
0.0.5
10 months ago
0.0.4
10 months ago
0.0.3
11 months ago
0.0.2
11 months ago
0.0.1
11 months ago