- 0.2.45Latest
- 0.2.44
- 0.2.43
- 0.2.42
- 0.2.41
- 0.2.40
- 0.2.39
- 0.2.38
- 0.2.37
- 0.2.36
- 0.2.35
- 0.2.34
- 0.2.33
- 0.2.32
- 0.2.31
- 0.2.30
- 0.2.29
- 0.2.28
- 0.2.27
- 0.2.25
- 0.2.24
- 0.2.23
- 0.2.22
- 0.2.21
- 0.2.20
- 0.2.19
- 0.2.18
- 0.2.17
- 0.2.16
- 0.2.15
- 0.2.14
- 0.2.13
- 0.2.12
- 0.2.11
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.0
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.4-9
- 0.0.4-8
- 0.0.4-7
- 0.0.4-6
- 0.0.4-5
- 0.0.4-4
- 0.0.4-3
- 0.0.4-2
- 0.0.4-1
- 0.0.3
- 0.0.2
- 0.0.1
- 0.0.0-9
- 0.0.0-8
- 0.0.0-7
- 0.0.0-6
- v0.0.0-5
- v0.0.0-4
- v0.0.0-3
- v0.0.0-2
- v0.0.0-1
deno/polkadot
Experimental This is the first release of the Deno interfaces for the polkadot-js family, as such it still needs a lot of testing and comes with no guarantee that it actually does what it says on the tin. Being brand new and not completely tested on end-to-end operation, unfound dragons probably do remain even with very basic operations. If you do try it out, let us know.
Here you will find most of the utilities, generally available elsewhere for Node, the browser and RN in a consumable form for the Deno runtime.
Access is to be done via the https://deno.land/x/polkadot[@<version>]/<module>/mod.ts
form, where <module>
corresponds to the namespace generally found elsewhere for @polkadot/<module>
.
For example, to access polkadot/util
& polkadot/api
interfaces -
import { ApiPromise, WsProvider } from 'https://deno.land/x/polkadot@0.0.9/api/mod.ts';
import { stringToU8a } from 'https://deno.land/x/polkadot@0.0.9/util/mod.ts';
const api = await ApiPromise.create({ provider: new WsProvider() });
console.log(stringToU8a('hello world'));
api.rpc.chain.subscribeNewHeads(({ hash }) => console.log(hash.toHex()));
For any issues related to the Deno runtime usage (since this is still very new), please log the issues against the relevant repos.