rest

package
v0.0.0-...-19e21eb Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeSignature

func MakeSignature(name, passphrase string, msg auth.StdSignMsg) (sig auth.StdSignature, err error)

MakeSignature builds a StdSignature given key name, passphrase, and a StdSignMsg.

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, storeBlock string)

RegisterRoutes - Central function to define routes that get registered by the main application

Types

type MessageBody

type MessageBody struct {
	Tx               auth.StdTx `json:"tx"`
	LocalAccountName string     `json:"name"`
	Address          string     `json:"address"`
	Password         string     `json:"password"`
	ChainID          string     `json:"chain_id"`
	AccountNumber    int64      `json:"account_number"`
}

Jump to

Keyboard shortcuts

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