Documentation ¶
Index ¶
Constants ¶
View Source
const ERR_emptyqcp = "empty qcp transaction"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP rpc http 接口调用客户端封装
func (*HTTP) BroadcastTxSync ¶
BroadcastTxSync 同步交易广播调用接口
type HTTPClient ¶
type HTTPClient interface { Call(method string, params map[string]interface{}, result interface{}) (interface{}, error) Codec() *amino.Codec SetCodec(*amino.Codec) }
HTTPClient is a common interface for JSONRPCClient and URIClient.
type JSONRPCClient ¶
type JSONRPCClient struct {
// contains filtered or unexported fields
}
JSONRPCClient takes params as a slice
func NewJSONRPCClient ¶
func NewJSONRPCClient(remote string) *JSONRPCClient
NewJSONRPCClient returns a JSONRPCClient pointed at the given address.
func (*JSONRPCClient) Call ¶
func (c *JSONRPCClient) Call(method string, params map[string]interface{}, result interface{}) (interface{}, error)
func (*JSONRPCClient) Codec ¶
func (c *JSONRPCClient) Codec() *amino.Codec
func (*JSONRPCClient) SetCodec ¶
func (c *JSONRPCClient) SetCodec(cdc *amino.Codec)
type RestClient ¶
type RestClient struct { // *client.HTTP *HTTP // contains filtered or unexported fields }
RestClient rpc 远程访问客户端
func (*RestClient) GetSequence ¶
func (r *RestClient) GetSequence(chainID string, outin string) (int64, error)
GetSequence 查询交易序列号
Click to show internal directories.
Click to hide internal directories.