jasmine_eth_go

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

Ethereum Client of Jasmine Project (Go Implementation)

The api documentation can be found at pkg.go.dev.

Usage

To sign a TFC claim message:

First instantiate a new SDK object.

sdk := NewSDK("ws://3.125.17.119:8546") // connect to the dev blockchain running on server 9523

Then instantiate an TFC Manager object using the Manager contract address

manager := sdk.Manager(managerAddress)

Retrieve admin account using private key:

admin := sdk.RetrieveAccount(privateKey)

Sign a TFC claim message which will mint a certain amount of TFC token for a recipient address;

nonce, err := manager.GetUnusedNonce()
signature := manager.SignTFCClaim(recipientAddress, amount, nonce, admin)

The signature string can be given to user to claim TFC tokens by themselves.

Get SDK version

Version()

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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