JS SDK is a client-side Javascript library for communicating with a Horizon server forked from js-stellar-sdk. It is used for building apps either on Node.js or in the browser.
It provides:
- a networking layer API for Horizon endpoints.
- facilities for building and signing transactions, for communicating with the Horizon instance, and for submitting transactions or querying network history.
Warning! Node version of
js-base
(js-sdk
dependency) package is usinged25519
package, a native implementation of Ed25519 in Node.js, as an optional dependency. This means that if for any reason installation of this package fails,js-base
(andjs-sdk
) will fallback to the much slower implementation contained intweetnacl
.If you are using
js-sdk
/js-base
in a browser you can ignore this. However, for production backend deployments you should definitely be usinged25519
. Ifed25519
is successfully installed and workingStellarSdk.FastSigning
variable will be equaltrue
. Otherwise it will befalse
.
master
- branch with latest feature;
dev
- branch with features deployed to dev env;
staging
- branch with features deployed to staging env;
Unfortunately, the Stellar platform development team mostly works on OS X and Linux, and so sometimes bugs creep through that are specific to windows. When installing js-sdk on windows, you might see an error that looks similar to the following:
error MSB8020: The build tools for v120 (Platform Toolset = 'v120 ') cannot be found. To build using the v120 build tools, please install v120 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution"
To resolve this issue, you should upgrade your version of nodejs, node-gyp and then re-attempt to install the offending package using npm install -g --msvs_version=2015 ed25519
. Afterwards, retry installing stellar-sdk as normal.
In the event the above does not work, please join us on our community slack to get help resolving your issue.
js-sdk is licensed under an Apache-2.0 license.