Add SDK to your App
Node.js
Our library is fully-annotated with
.d.ts
files so we recommend to write your applications in Typescript.
Let's start with a clean npm project.
Now lets install core package and bridge package for Node.js
If you want to use high-level AppKit package then install this package as well:
You must initialize the library before the first use. The best place to do it is an initialization code of your application.
You need to attach the chosen binary module to the TonClient
class. Create index.js
file and add this code:
That's it! Now you are ready to create and configure TONClient object!
Web
Our library is fully-annotated with
.d.ts
files so we recommend to write your applications in Typescript.
Let's start with a clean project.
Installation
Now lets install core package and bridge package for Web
Important! Each time you run npm install
the new version of the eversdk.wasm
and index.js
is downloaded. So you have to always update the eversdk.wasm
inside your web package before publishing (starting local web server, creating web bundle etc.). If you use Webpack the best way is to use CopyPlugin.
If you want to use high-level AppKit package then install this package as well:
You must initialize the library before the first use. The best place to do it is in initialization code of your application.
You need to attach the chosen binary module to the TonClient
class:
Last updated