Versions in this module Expand all Collapse all v0 v0.2.0 Aug 4, 2022 Changes in this version + const Mainnet + var ErrGrpcCallFailed = "failed to execute gRPC call" + var ErrGrpcConnFailed = "failed to establish gRPC connection" + func Endpoint() string + func GetAccount(r *http.Request, cli iotexapi.APIServiceClient) (proto.Message, error) + func GetActionByAddr(r *http.Request, cli iotexapi.APIServiceClient) (proto.Message, error) + func GetActionByHash(r *http.Request, cli iotexapi.APIServiceClient) (proto.Message, error) + func GetChainMeta(r *http.Request, cli iotexapi.APIServiceClient) (proto.Message, error) + func GetReceiptByHash(r *http.Request, cli iotexapi.APIServiceClient) (proto.Message, error) + func GetTsfInBlock(r *http.Request, cli iotexapi.APIServiceClient) (proto.Message, error) + func GetVotesByAddr(r *http.Request, cli iotexapi.APIServiceClient) (proto.Message, error) + func GetVotesByIndex(r *http.Request, cli iotexapi.APIServiceClient) (proto.Message, error) + func GrpcConnection() (*grpc.ClientConn, error) + func GrpcToHttpHandler(fn func(*http.Request, iotexapi.APIServiceClient) (proto.Message, error)) http.HandlerFunc + func ReadContract(r *http.Request, cli iotexapi.APIServiceClient) (proto.Message, error) + func SendSignedActionBytes(r *http.Request, cli iotexapi.APIServiceClient) (proto.Message, error) + func TLSEnabled() bool