Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagMinHeight = "minHeight" FlagMaxHeight = "maxHeight" )
nolint
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "search",
Short: "Search for specific transactions based on tags",
Long: `Search has subcommands for each specific tx type.
Each one has specific flags it allows you to search on and
these are exposed on those subcommands. Returns all historical
transactions that match those tags.
`,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
type TxExtractor ¶
TxExtractor take an encoded tx and converts it to a usable format
type TxOutput ¶
type TxOutput struct { Tx interface{} `json:"tx"` Height int64 `json:"height"` }
TxOutput is like the query output, but stores Tx data
func FormatSearch ¶
func FormatSearch(res []*ctypes.ResultTx, fn TxExtractor) ([]TxOutput, error)
FormatSearch takes the FindTx results and converts them to a format to display with help of a TxExtractor that knows how to present the tx
Click to show internal directories.
Click to hide internal directories.