1.3.0 • Published 5 years ago
@katena-chain/sdk-js v1.3.0
SDK JS
Requirements
- NodeJS >= 8.x
Install
npm install @katena-chain/sdk-jsUsage
To rapidly interact with our API, you can use our Transactor helper. It handles all the steps needed to correctly
format, sign and send a tx.
Feel free to explore and modify its code to meet your expectations.
Examples
Detailed examples are provided in the examples folder to explain how to use our Transactor helper methods.
You can change various settings in the examples/common/settings.js file.
Available examples:
- Send a
Certificatetransaction - Send a
Secrettransaction - Send a
KeyCreatetransaction - Send a
KeyRotatetransaction - Send a
KeyRevoketransaction - Retrieve
Certificaterelated transactions - Retrieve
Secretrelated transactions - Retrieve
Keyrelated transactions and its state - Retrieve a list of
Keystates for a company
For instance, to send a certificate:
node examples/sendCertificateRaw.jsKatena documentation
For more information, check the katena documentation.