Installation
Direct <script>
include via CDN
<script>
include via CDNIn case you're not using any JS bundling/compilation technique, the SDK can also be loaded with the traditional <script>
tag, as follows:
Latest SDK version
Specific SDK version
...where VERSION
is the version number of the SDK you want to use (eg. 14.1.0
).
Browser <script>
tag
<script>
tagThe bundle will assign the SDK to a global variable called Aeternity
that makes all functionalities of the SDK accessible.
Usage:
NPM
Latest Release
Pre Release
To install a Pre-Release (latest beta
or alpha
version) you have to install the package appending the @next
tag reference.
Specific Github Branch
You can also install a version coming from a specific branch. In this case you would install the SDK version of the develop
branch.
TypeScript projects
To work properly, sdk requires to enable allowSyntheticDefaultImports
flag and register folder
that contains type definitions for third-party packages sdk depends on.
This may be done in tsconfig.json
:
Vue CLI@4
SDK checks are not working correctly because CLI picks both ESM and CJS versions of autorest
dependencies. To fix this, you need to specify aliases in vue.config.js
.
Vue@3
TypeError: attempted to get private field on non-instance
Command Line Interface (CLI)
Last updated
Was this helpful?