rest

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EstimateTxFeeRequestHandlerFn added in v0.3.0

func EstimateTxFeeRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

EstimateTxFeeRequestHandlerFn returns estimated tx fee. In particular, it takes 'auto' for the gas field, then simulates and computes gas consumption.

func MultiSignRequestHandlerFn

func MultiSignRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

MultiSignRequestHandlerFn - http request handler to build multisign transaction.

func RegisterRoutes

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

RegisterRoutes registers the auth module REST routes

func RegisterTxRoutes added in v0.3.0

func RegisterTxRoutes(cliCtx context.CLIContext, r *mux.Router)

RegisterTxRoutes registers custom transaction routes on the provided router.

Types

type MultiSignPubKey added in v0.3.0

type MultiSignPubKey struct {
	Threshold int      `json:"threshold"`
	PubKeys   []string `json:"pubkeys"`
}

MultiSignPubKey defines the properties of a multisig account's public key

type MultiSignReq

type MultiSignReq struct {
	Tx            auth.StdTx          `json:"tx"`
	ChainID       string              `json:"chain_id"`
	Signatures    []auth.StdSignature `json:"signatures"`
	SignatureOnly bool                `json:"signature_only"`
	Sequence      uint64              `json:"sequence_number"`
	Pubkey        MultiSignPubKey     `json:"pubkey"` // (optional) In case the multisig account never reveals its pubkey, it is required.
}

MultiSignReq defines the properties of a multisign request's body.

Jump to

Keyboard shortcuts

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