Published 21 November 2018

How to use the CREDITS API 

References

References

https://github.com/Xela101/CreditsAPIDemo

How to connect to a node to call the CREDITS API

How to connect to a node to call the CREDITS API

To call the CREDITS API you have to connect to the Node’s Thrift API through port 9090. This port must be added to the firewall exceptions if you intend to connect to the Node’s Thrift API via the network.

Mandatory requirement for the correct use of the Node’s Thrift API is completed synchronization of the node.

Components required to use the API

Components required to use the API

The three main components you need to use with the API are:

  • Apache Thrift library
  • ABase58 encoding/decoding library for encoding and decoding pub and priv keys
  • Elliptic-curve digital signature library

Thrift API wrapper (for all languages)

Thrift API wrapper (for all languages)

Before generating code you should perform the following steps:

Generating a Thrift API wrapper (C#)

Generating a Thrift API wrapper (C#)

Before generating code you should perform the following steps:

Generating a Thrift API wrapper (C++)

Generating a Thrift API wrapper (C++)

Before generating code you should perform the following steps:

  • Code generation command: thrift --gen cpp api.thrift
  • Files will be generated in the gen-cpp directory.
  • Additional libraries and classes

Thrift API wrapper (JavaScript)

Thrift API wrapper (JavaScript)

API files and additional libraries - (https://github.com/CREDITSCOM/CS-API)

Generating a Thrift API wrapper (Java)

Generating a Thrift API wrapper (Java)

Before generating code you should perform the following steps:

Generating a Thrift API wrapper (Python)

Generating a Thrift API wrapper (Python)

Before generating code you should perform the following steps:

Generating a Thrift API wrapper (Delphi)

Generating a Thrift API wrapper (Delphi)

Before generating code you should perform the following steps:

29 Useful article

Contents