rest

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 20 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 QueryTxsRequestHandlerFn added in v0.4.0

func QueryTxsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

QueryTxsHandlerFn implements a REST handler that searches for transactions. Genesis transactions are returned if the height parameter is set to zero, otherwise the transactions are searched for by events.

func RegisterRoutes

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

RegisterRoutes registers the auth module REST routes

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