Documentation ¶
Index ¶
- Constants
- Variables
- 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
Constants ¶
const (
Mainnet = "api.iotex.one:443"
)
Variables ¶
var ( ErrGrpcConnFailed = "failed to establish gRPC connection" ErrGrpcCallFailed = "failed to execute gRPC call" )
Functions ¶
func GetAccount ¶
GetAccount extracts address from http request, make gRPC call GetAccount()
func GetActionByAddr ¶
GetActionByHash extracts address from http request, make gRPC call GetActions()
func GetActionByHash ¶
GetActionByHash extracts hash from http request, make gRPC call GetActions()
func GetChainMeta ¶
GetChainMeta make gRPC call GetChainMeta(), and returns the chain meta
func GetReceiptByHash ¶
GetReceiptByHash extracts hash from http request, make gRPC call GetActions()
func GetTsfInBlock ¶
GetTsfInBlock make gRPC call GetRawBlocks(), and returns all transfers in the block
func GetVotesByAddr ¶
GetVotesByAddr extracts address from http request, make gRPC call GetBucket()
func GetVotesByIndex ¶
GetVotesByIndex extracts address from http request, make gRPC call GetBucket()
func GrpcConnection ¶
func GrpcConnection() (*grpc.ClientConn, error)
func GrpcToHttpHandler ¶
func GrpcToHttpHandler(fn func(*http.Request, iotexapi.APIServiceClient) (proto.Message, error)) http.HandlerFunc
GrpcToHttpHandler turns gRPC handler into http handler
func ReadContract ¶
GetActionByHash extracts address from http request, make gRPC call GetActions()
func SendSignedActionBytes ¶
SendSignedActionBytes extracts signed transaction bytes from http request, make gRPC call SendAction()
func TLSEnabled ¶
func TLSEnabled() bool
Types ¶
This section is empty.