@symbol-blockchain-community/symbol-rest-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Symbol REST Client

Client package supporting interaction with Symbol Node. It is automatically generated from publicly available OpenAPI.

You can easily start interacting with Node with the following simple introduction.

Installation

npm install @symbol-blockchain-community/symbol-rest-client

Usage

const {Configuration,NodeRoutesApi} = require("@symbol-blockchain-community/symbol-rest-client");

const config = new Configuration({
  basePath: "https://symbolnode.blockchain-authn.app:3001",
})

const nodeRoutesApi = new NodeRoutesApi(config);
nodeRoutesApi.getNodeInfo().then(console.log);
/*
// result example
{
  version: 16777990,
  publicKey: '55B9B62A6EF89EF57ECBC5FD0928CB5B4A28B443C2BE6EEF781E544BCDF57C4B',
  networkGenerationHashSeed: '57F7DA205008026C776CB6AED843393F04CD458E0AA2D9F1D5F31A402072B2D6',
  roles: 3,
  port: 7900,
  networkIdentifier: 104,
  friendlyName: 'faunsu19000',
  host: 'symbolnode.blockchain-authn.app',
  nodePublicKey: 'D144195E31C5EB60A4D26887E1AD913452847D8181EA5F8D2A9DF1ACB6EE31E3'
}
*/

Contributing

symbol-rest-client is an open-source project. Contributions are welcome. Please refer to the GitHub repository for details.

License

This software is provided under the MIT License.

Contact

For questions or feedback, please contact us through the GitHub repository.

External sites

Package Sidebar

Install

npm i @symbol-blockchain-community/symbol-rest-client

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

2.85 MB

Total Files

1070

Last publish

Collaborators

  • kicnft
  • toshi0301
  • ymuichiro
  • symbol-community