client

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidatorExRate added in v0.3.2

func GetValidatorExRate(ctx context.CoreContext, cdc *wire.Codec) http.HandlerFunc

func RegisterRoutes

func RegisterRoutes(ctx app.Context, r *mux.Router, cdc *wire.Codec, kb keys.Keybase)

func RegisterStakeExRate added in v0.3.2

func RegisterStakeExRate(ctx context.CoreContext, r *mux.Router, cdc *wire.Codec)

func SendTxRequestHandlerFn

func SendTxRequestHandlerFn(cdc *wire.Codec, kb keys.Keybase, ctx app.Context) http.HandlerFunc

send traction(sign with rainbow) to irishub

func ServeCommand

func ServeCommand(cdc *wire.Codec) *cobra.Command

ServeCommand will generate a long-running rest server (aka Light Client Daemon) that exposes functionality similar to the cli, but over rest

Types

type ExRateResponse added in v0.3.2

type ExRateResponse struct {
	ExRate float64 `json:"token_shares_rate"`
}

type StdSignature

type StdSignature struct {
	PubKey        []byte `json:"pub_key"` // optional
	Signature     []byte `json:"signature"`
	AccountNumber int64  `json:"account_number"`
	Sequence      int64  `json:"sequence"`
}

Jump to

Keyboard shortcuts

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