Back to

Package rest

Latest Go to latest

The highest tagged major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module:


func EstimateTxFeeRequestHandlerFn

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

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

RegisterTxRoutes registers custom transaction routes on the provided router.

type MultiSignPubKey

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.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier