Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 1.18 KB

FAQ.md

File metadata and controls

21 lines (13 loc) · 1.18 KB

Frequently Asked Questions

Where did the dist folder go?

Starting with version 1.9.0, a minified browser bundle can be obtained from npm CDNs such as unpkg or jsDelivr. The link can be found in the README.md.

In prior versions, the browser bundles were made available in the dist directory. In order to access those, look in the dist folder on the version's GitHub tag, e.g. https://github.com/algorand/js-algorand-sdk/tree/v1.8.1/dist.

Can I host the browser bundle myself?

Yes! If you would instead prefer to host the package yourself, a minified browser bundle can be found in the dist/browser/ folder of the published npm package starting with version 1.9.0.

How do I generate the SRI hash of algosdk.min.js?

The SRI hash of algosdk.min.js is the base64 string after sha384- in the integrity attribute of the <script> tag used to import algosdk.min.js. See the instructions to import algosdk in browser. It can be computed as follows after building the project:

cat dist/browser/algosdk.min.js | openssl dgst -sha384 -binary | openssl base64 -A