Documentation ¶
Index ¶
- func Connect(protoAddr string) (net.Conn, error)
- func DialerFunc(ctx context.Context, addr string) (net.Conn, error)
- func FetchChainID(rpcURL string) (string, error)
- func HexToBytes(str string) ([]byte, error)
- func LoadTlsCert(path string, serverName string) credentials.TransportCredentials
- func MsgResponse(data []byte) []*chaintypes.TxResponseGenericMessage
- func ProtocolAndAddress(listenAddr string) (string, string)
- type ClientOption
- type ClientOptions
- type Network
- type NodeInfo
- type RPCRequest
- type RPCResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect dials the given address and returns a net.Conn. The protoAddr argument should be prefixed with the protocol, eg. "tcp://127.0.0.1:8080" or "unix:///tmp/test.sock"
func FetchChainID ¶ added in v1.2.52
func HexToBytes ¶
func LoadTlsCert ¶
func LoadTlsCert(path string, serverName string) credentials.TransportCredentials
func MsgResponse ¶
func MsgResponse(data []byte) []*chaintypes.TxResponseGenericMessage
func ProtocolAndAddress ¶
ProtocolAndAddress splits an address into the protocol and address components. For instance, "tcp://127.0.0.1:8080" will be split into "tcp" and "127.0.0.1:8080". If the address has no protocol prefix, the default is "tcp".
Types ¶
type ClientOption ¶
type ClientOption func(opts *ClientOptions) error
func OptionGasPrices ¶
func OptionGasPrices(gasPrices string) ClientOption
func OptionTLSCert ¶
func OptionTLSCert(tlsCert credentials.TransportCredentials) ClientOption
type ClientOptions ¶
type ClientOptions struct { GasPrices string TLSCert credentials.TransportCredentials }
func DefaultClientOptions ¶
func DefaultClientOptions() *ClientOptions
type Network ¶
type Network struct { ApiEndpoint string TmEndpoint string ChainGrpcEndpoint string ChainEvmRpcEndpoint string ChainTlsCert credentials.TransportCredentials ExchangeTlsCert credentials.TransportCredentials ChainId string Fee_denom string Name string }
type RPCRequest ¶ added in v1.2.52
type RPCResponse ¶ added in v1.2.52
type RPCResponse struct {
Result map[string]interface{} `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.