1.0.10 • Published 9 months ago

@mytonswap/sdk v1.0.10

Weekly downloads
-
License
-
Repository
github
Last release
9 months ago

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

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.10

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

0.0.18

9 months ago

0.0.17

9 months ago

0.0.14

9 months ago

0.0.13

9 months ago

0.0.12

9 months ago

0.0.11

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago