5.3.0 • Published 6 months ago

conseiljs v5.3.0

Weekly downloads
1,065
License
Apache-2.0
Repository
github
Last release
6 months ago

Note: As of January 2023, ConseilJS is maintained on a best effort basis for Tezos: https://discourse.cryptonomic.tech/t/psa-conseil-conseiljs-will-now-be-maintained-on-a-best-effort-basis-for-tezos/235/2

ConseilJS-core

npm version npm Build Status Coverage Status Quality Gate Status conseiljs

A library for building decentralized applications in Typescript and Javascript, currently focused on the Tezos platform.

ConseilJS connects to Tezos nodes for live chain data and operations and to Conseil servers for high-performance analytics on blockchain data. Internally, Cryptonomic uses Nautilus for infrastructure deployments of these services. This is the library at the core of our products – Arronax, Periscope, Harpoon and certainly Galleon. There are ReasonML bindings as well.

Cryptonomic offers an infrastructure service - Nautilus Cloud which enables quick access to the Tezos platform along with products that make it easier build on it.

Sub-modules

As of version 5.0.0, ConseilJS has been split into three parts: this library, which is considered to be the core, ConseilJS-softsigner and ConseilJS-ledgersigner. This was done in an effort to make the library more portable across different environments. If neither of these additional modules meet your needs, the Signer and KeyStore interfaces can be implemented separately. In addition to a Signer and a KeyStore, fetch and logger objects are required to be provided, see below.

For more details on how to use these libraries see their respective readme files: ConseilJS-core, ConseilJS-softsigner, ConseilJS-ledgersigner. There is also an AWS KMS signer that is compatible with ConseilJS, maintained by @tacoinfra.

Use with Nodejs

Add our NPM package to your project and a signing library.

npm i conseiljs
npm i conseiljs-softsigner
import fetch from 'node-fetch';
import * as log from 'loglevel';

import { registerFetch, registerLogger, Signer, TezosMessageUtils } from 'conseiljs';
import { KeyStoreUtils, SoftSigner } from 'conseiljs-softsigner';

const logger = log.getLogger('conseiljs');
logger.setLevel('debug', false);
registerLogger(logger);
registerFetch(fetch);

let signer: Signer;
const keyStore = await KeyStoreUtils.restoreIdentityFromSecretKey('edskRgu8wHxjwayvnmpLDDijzD3VZDoAH7ZLqJWuG4zg7LbxmSWZWhtkSyM5Uby41rGfsBGk4iPKWHSDniFyCRv3j7YFCknyHH');
signer = await SoftSigner.createSigner(TezosMessageUtils.writeKeyWithHint(keyStore.secretKey, 'edsk'), -1);

Use with React

We have a complete React application tutorial for you to check out.

Use with React Native

Project honeybadger, which is the basis for Galleon Mobile us built with ConseilJS as well. Due to limitations of react-native we re-implemented some of the necessary functionality into a separate module.

Use with Web

<html>
<head>
    <script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs/dist-web/conseiljs.min.js"
        integrity="sha256-RsfjLoUXxZo1G4OGSlIuZEkSkVnlqn1eMvAYXwYwXXnnfMyiYg/PNWqjv4oWA2tb"
        crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs-softsigner/dist-web/conseiljs-softsigner.min.js"
        integrity="sha384-V1iaajn0x/SMFcZ9Y/xNQmqQSKyll6Dzt27U6OWiv8NdbHTVaHOGHdQ8g0G68HPd"
        crossorigin="anonymous"></script>
    <script>
        //conseiljssoftsigner.
    </script>
</head>
<body>
    ...
</body>
</html>

The web version sets fetch and logger internally to window.fetch and console respectively.

A fully functional sample html page is available too.

API Overview and Examples

We have ready-to-use examples to copy/paste.

Contribute

There are many ways to contribute to this project. You can develop applications or dApps with it. You can submit bug reports or feature requests. You can ask questions about it on r/Tezos or the Tezos StackExchange. We certainly welcome pull requests as well.

Other references

Developer Handbook

Smart Contract Development Syllabus

Wiki

Riot Dev Channel

Cryptonomic Reddit

The Cryptonomic Aperiodical

@CryptonomicTech

5.3.0

6 months ago

5.2.6

1 year ago

5.2.5

2 years ago

5.2.4

2 years ago

5.2.3

2 years ago

5.2.2

2 years ago

5.2.1

2 years ago

5.2.0

2 years ago

5.1.0-beta.1

3 years ago

5.1.0

3 years ago

5.0.9-5

3 years ago

5.0.9-3

3 years ago

5.0.9-4

3 years ago

5.0.9-2

3 years ago

5.0.9

3 years ago

5.0.9-beta.6

3 years ago

5.0.9-beta.5

3 years ago

5.0.9-beta.7

3 years ago

5.0.9-1

3 years ago

5.0.9-beta.4

3 years ago

5.0.9-beta.3

3 years ago

5.0.9-beta.2

3 years ago

5.0.9-beta.1

3 years ago

5.0.9-beta.0

4 years ago

5.0.8-3

4 years ago

5.0.8-2

4 years ago

5.0.8-1

4 years ago

5.0.8

4 years ago

5.0.8-beta.0

4 years ago

5.0.7-2

4 years ago

5.0.7-1

4 years ago

5.0.7

4 years ago

5.0.7-beta.4

4 years ago

5.0.7-beta.3

4 years ago

5.0.7-beta.2

4 years ago

5.0.7-beta.1

4 years ago

5.0.7-beta.0

4 years ago

5.0.6-3

4 years ago

5.0.6-2

4 years ago

5.0.6-1

4 years ago

5.0.6

4 years ago

5.0.6-beta.4

4 years ago

5.0.6-beta.3

4 years ago

5.0.6-beta.2

4 years ago

5.0.6-beta.1

4 years ago

5.0.6-beta.0

4 years ago

5.0.5

4 years ago

5.0.5-beta.5

4 years ago

5.0.5-beta.4

4 years ago

5.0.5-beta.3

4 years ago

5.0.5-beta.2

4 years ago

5.0.5-beta.1

4 years ago

5.0.4

4 years ago

5.0.4-beta.1

4 years ago

5.0.4-beta.0

4 years ago

5.0.3

4 years ago

5.0.3-beta.3

4 years ago

5.0.3-beta.2

4 years ago

5.0.3-beta.1

4 years ago

5.0.3-beta.0

4 years ago

5.0.2-beta.3

4 years ago

5.0.2-beta.2

4 years ago

5.0.2-beta.1

4 years ago

5.0.2-beta.0

4 years ago

5.0.1-beta.3

4 years ago

5.0.1-beta.2

4 years ago

0.4.3

4 years ago

5.0.1-beta

4 years ago

5.0.0-alpha.2

4 years ago

0.4.3-beta

4 years ago

0.4.3-beta.1

4 years ago

0.4.3-beta.0

5 years ago

5.0.0-alpha.1

5 years ago

5.0.0-alpha.0

5 years ago

0.4.2

5 years ago

0.4.2-beta.8

5 years ago

0.4.2-beta.7

5 years ago

0.4.2-beta.6

5 years ago

0.4.2-beta.5

5 years ago

0.4.2-beta.4

5 years ago

0.4.2-beta.3

5 years ago

0.4.2-beta.2

5 years ago

0.4.2-beta.1

5 years ago

0.4.2-beta.0

5 years ago

0.4.1

5 years ago

0.4.1-beta.3

5 years ago

0.4.1-beta.2

5 years ago

0.4.1-beta.1

5 years ago

0.4.1-beta

5 years ago

0.4.0-beta

5 years ago

0.4.0-alpha.5

5 years ago

0.4.0-alpha.4

5 years ago

0.3.8-beta

5 years ago

0.4.0-alpha.3

5 years ago

0.4.0-alpha.2

5 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5-beta

5 years ago

0.4.0-alpha.1

5 years ago

0.3.4-beta

5 years ago

0.3.3-beta

5 years ago

0.3.3-alpha

5 years ago

0.3.2-beta

5 years ago

0.3.2-alpha

5 years ago

0.3.1

5 years ago

0.3.1-beta

5 years ago

0.3.1-alpha

5 years ago

0.3.0

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.41

6 years ago

0.1.40

6 years ago

0.1.39

6 years ago

0.1.38

6 years ago

0.1.37

6 years ago

0.1.36

6 years ago

0.1.35

6 years ago

0.1.34

6 years ago

0.1.33

6 years ago

0.1.32

6 years ago

0.1.31

6 years ago

0.1.30

6 years ago

0.1.29-z

6 years ago

0.1.28-z

6 years ago

0.1.27-z

6 years ago

0.1.26-z

6 years ago

0.1.25

6 years ago

0.1.24

6 years ago

0.1.23

6 years ago

0.1.22

6 years ago

0.1.21

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.18

6 years ago

0.1.17

6 years ago

0.1.16

6 years ago

0.1.15

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago