9.5.3 • Published 7 months ago

@concordium/node-sdk v9.5.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

Concordium NodeJS SDK

Deprecation notice

The @concordium/node-sdk package is now deprecated and will not receive major/minor version updates going forward.@concordium/web-sdk@^7 is now compatible with nodeJS, and can be used for both browser and nodeJS runtimes. A GRPC client for nodeJS runtimes is accessible at @concoridum/web-sdk/nodejs (does not use GRPC-web).

More information can be found in the upgrade guide

Contributor Covenant

Wrappers for interacting with the Concordium node, using nodejs.

Please see the documentation for more information

ConcordiumGRPCClient

The SDK provides a gRPC client, which can interact with the Concordium Node

For an overview of the endpoints, click here.

To create a client, the function createConcordiumClient can be used. It requires the address and port of the node. It also requires credentials to be specified. These can be used for create either an insecure connection or a TLS connection. In the following example the credentials are created for a TLS connection:

import { credentials } from '@grpc/grpc-js/';
import { createConcordiumClient } from '@concordium/node-sdk';
...
return createConcordiumClient(
    address,
    port,
    credentials.createSsl(),
    { timeout: 15000 }
);

The fourth argument is additional options. In the example above we sat the timeout for a call to the node to 15 seconds. The options allowed here are those allowed by the grpc-transport.

The connection to a node can be either an insecure connection or a TLS connection. Note that the node that you are trying to connect to must support TLS, for a TLS connection to work. Otherwise an insecure connection can be created by using credentials.createInsecure() instead.

To see the documentation for the deprecated v1 client, click here. For an overview of how to migrate from the v1 client to the v2 client, click here.

9.4.0

8 months ago

9.1.1

8 months ago

9.1.0

9 months ago

9.5.3

7 months ago

9.5.2

7 months ago

9.5.1

7 months ago

9.5.0

7 months ago

9.3.0

8 months ago

9.2.0

8 months ago

9.0.0

10 months ago

8.0.0

11 months ago

6.4.0

1 year ago

7.0.0

12 months ago

6.3.0

1 year ago

6.2.0

1 year ago

5.0.0

2 years ago

6.1.0

1 year ago

6.0.0

1 year ago

4.0.0

2 years ago

1.1.0

2 years ago

2.1.1

2 years ago

2.0.2

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

1.0.0

2 years ago

1.0.0-alpha.0

2 years ago

0.8.0-alpha.3

2 years ago

0.7.2

2 years ago

0.7.3

2 years ago

0.8.0-alpha.2

2 years ago

0.8.0-alpha.1

2 years ago

0.8.0-alpha.0

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.5.1

2 years ago

0.3.0

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.2

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago