7.6.9 • Published 2 years ago

polkadot-js-bundle v7.6.9

Weekly downloads
56
License
Apache-2.0
Repository
github
Last release
2 years ago

polkadot-js-bundle

This project was used to create JS bundles for the Polkadot JS APIs.

Polkadot{JS} now supports official JS bundles, so this project is mostly deprecated.

This page just serves to show how you can use them.

Include the official Polkadot JS Bundles like so:

<script src="//unpkg.com/@polkadot/util/bundle-polkadot-util.js"></script>
<script src="//unpkg.com/@polkadot/util-crypto/bundle-polkadot-util-crypto.js"></script>
<script src="//unpkg.com/@polkadot/types/bundle-polkadot-types.js"></script>
<script src="//unpkg.com/@polkadot/api/bundle-polkadot-api.js"></script>
<script src="//unpkg.com/@polkadot/keyring/bundle-polkadot-keyring.js"></script>

Note that some bundles may require you to include other bundles. For example, to use bundle-polkadot-api.js you must include the other 3 bundles as well.

To access to the bundle within a JavaScript file, just do the following:

// Just some random examples...
const { stringToHex, hexToString } = polkadotUtil;
const { blake2AsHex, xxhashAsHex } = polkadotUtilCrypto;
const { TypeRegistry, createType } = polkadotTypes;
const { WsProvider, ApiPromise } = polkadotApi;
const { Keyring } = polkadotKeyring;

See the test page as a sanity check that things are working.

7.5.3

2 years ago

7.5.2

2 years ago

7.5.1

2 years ago

7.6.9

2 years ago

6.5.1

3 years ago

4.15.1

3 years ago

4.13.1

3 years ago

3.8.1

3 years ago

3.0.1

3 years ago

2.1.1

4 years ago

1.31.2

4 years ago

1.26.1

4 years ago

1.26.2

4 years ago

1.22.1

4 years ago

1.16.1

4 years ago