sdk-go

module
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2021 License: Apache-2.0

README

SDK Go

Requirements

  • Go >= 1.13

Install

go get -u github.com/katena-chain/sdk-go/...

Usage

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.go file.

Available examples:

  • Send a Certificate transaction
  • Send a Secret transaction
  • Send a KeyCreate transaction
  • Send a KeyRotate transaction
  • Send a KeyRevoke transaction
  • Retrieve Certificate related transactions and its state
  • Retrieve Secret related transactions and its state
  • Retrieve Key related transactions and its state
  • Retrieve a list of Key states for a company

For instance, to send a certificate:

go run examples/send_certificate_raw/main.go

Katena documentation

For more information, check the katena documentation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL