Documentation
¶
Overview ¶
Copyright 2017-2018 OneLedger
Cover over the arguments of client requests
Index ¶
- Constants
- Variables
- type ApplyValidatorArguments
- type Context
- func (ctx Context) Block(height int64) (res *ctypes.ResultBlock)
- func (ctx Context) BroadcastTxAsync(packet []byte) (res *ctypes.ResultBroadcastTx, err error)
- func (ctx Context) BroadcastTxCommit(packet []byte) (res *ctypes.ResultBroadcastTxCommit, err error)
- func (ctx Context) BroadcastTxSync(packet []byte) (res *ctypes.ResultBroadcastTx, err error)
- func (ctx Context) Query(serviceMethod string, args interface{}, response interface{}) error
- func (ctx Context) Search(query string, prove bool, page, perPage int) (res *ctypes.ResultTxSearch)
- func (ctx Context) Tx(hash []byte, prove bool) (res *ctypes.ResultTx)
- type ExSendArguments
- type SendArguments
- type SwapArguments
Constants ¶
View Source
const ( // Broadcast a tx and wait for being commit to block BroadcastCommit = "commit" // Broadcast a tx and wait for CheckTx response // Recommend for smart contract BroadcastSync = "sync" // Broadcast a tax and return immediately BroadcastAsync = "async" RPC_ADDRESS = "127.0.0.1:6019" )
Variables ¶
View Source
var ( ErrEmptyQuery = errors.New("empty query path") ErrEmptyResponse = errors.New("empty response") )
View Source
var ErrEmptyTransaction = errors.New("empty transaction")
Functions ¶
This section is empty.
Types ¶
type ApplyValidatorArguments ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func (Context) BroadcastTxAsync ¶
func (ctx Context) BroadcastTxAsync(packet []byte) (res *ctypes.ResultBroadcastTx, err error)
func (Context) BroadcastTxCommit ¶
func (ctx Context) BroadcastTxCommit(packet []byte) (res *ctypes.ResultBroadcastTxCommit, err error)
func (Context) BroadcastTxSync ¶
func (ctx Context) BroadcastTxSync(packet []byte) (res *ctypes.ResultBroadcastTx, err error)
type ExSendArguments ¶
type SendArguments ¶
Click to show internal directories.
Click to hide internal directories.