comm

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2017-2018 OneLedger

Cover over the Tendermint client handling.

TODO: Make this generic to handle HTTP and local clients

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broadcast

func Broadcast(packet []byte) *ctypes.ResultBroadcastTxCommit

A sync'ed broadcast to the chain that waits for the commit to happen

func BroadcastAsync added in v0.6.1

func BroadcastAsync(packet []byte) *ctypes.ResultBroadcastTx

An async Broadcast to the chain

func GetClient

func GetClient() (client *rpcclient.HTTP)

HTTP interface, allows Broadcast? TODO: Want to switch client type, based on config or cli args.

func NewAppClient

func NewAppClient() client.Client

Generic Client interface, allows SetOption

func Query

func Query(path string, packet []byte) (res *ctypes.ResultABCIQuery)

Send a very specific query

func Search(query string, prove bool, page, perPage int) (res *ctypes.ResultTxSearch)

func SetOption

func SetOption(key string, value string)

Set an option in the ABCi app directly

Types

This section is empty.

Jump to

Keyboard shortcuts

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