aepp-sdk-go

command module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: ISC Imports: 1 Imported by: 0

README

aepp-sdk-go

golang sdk for aeternity blockchain Go Report Card GoDoc

Development

download the latest openapi spcecifications

curl  https://sdk-edgenet.aepps.com/api -o api/swagger.json    

replace every integer (int64) with a uint64 in the swagger.json (except for time) generate the client (using go-swagger)

rm -rf generated/* && swagger generate client -f api/swagger.json -A node  --with-flatten=minimal --target generated  --tags=external --api-package=operations --client-package=client

Structure

No matter what kind of transaction you're making, it always follows the same rules:

  1. Find the account nonce, get the transaction TTL (in blocks)
  2. Make the transaction
  3. Sign the transaction with a given network ID
  4. Broadcast it to a node of your choosing

The functions in aeternity/helpers.go will help you with these 4 steps, wrapping away the raw implementation details. They use the more barebones functions in aeternity/transactions.go.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
generated
Package rlp implements the RLP serialization format.
Package rlp implements the RLP serialization format.

Jump to

Keyboard shortcuts

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