Documentation
¶
Overview ¶
Copyright 2017-2018 OneLedger
Cover over the Tendermint client handling.
TODO: Make this generic to handle HTTP and local clients
Index ¶
- func Broadcast(packet []byte) *ctypes.ResultBroadcastTxCommit
- func BroadcastAsync(packet []byte) *ctypes.ResultBroadcastTx
- func BroadcastSync(packet []byte) *ctypes.ResultBroadcastTx
- func GetClient() (client *rpcclient.HTTP)
- func IsError(result interface{}) *string
- func NewAppClient() client.Client
- func Query(path string, packet []byte) interface{}
- func Search(query string, prove bool, page, perPage int) (res *ctypes.ResultTxSearch)
- func SetOption(key string, value string)
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 BroadcastSync ¶ added in v0.6.2
func BroadcastSync(packet []byte) *ctypes.ResultBroadcastTx
A sync'ed broadcast to the chain that waits for the commit to happen
func GetClient ¶
HTTP interface, allows Broadcast? TODO: Want to switch client type, based on config or cli args.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.