tx

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommands

func AddCommands(cmd *cobra.Command, cdc *wire.Codec)

AddCommands adds a number of tx-query related subcommands

func BroadcastTxRequestHandlerFn added in v0.16.0

func BroadcastTxRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

BroadcastTx REST Handler

func QueryTxCmd

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

Get the default command for a tx query

func QueryTxRequestHandlerFn added in v0.16.0

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

transaction query REST handler

func RegisterRoutes

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

register REST routes

func SearchTxCmd

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

default client command to search through tagged transactions

func SearchTxRequestHandlerFn added in v0.16.0

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

Search Tx REST Handler

func SignTxRequstHandler

func SignTxRequstHandler(w http.ResponseWriter, r *http.Request)

sign transaction REST Handler

Types

type BroadcastTxBody

type BroadcastTxBody struct {
	TxBytes string `json="tx"`
}

Tx Broadcast Body

type SignTxBody

type SignTxBody struct {
	Name     string `json="name"`
	Password string `json="password"`
	TxBytes  string `json="tx"`
}

REST request body TODO does this need to be exposed?

Jump to

Keyboard shortcuts

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