rpcmethod

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EstimateGasForActionRequest

type EstimateGasForActionRequest = iotexapi.EstimateGasForActionRequest

EstimateGasForActionRequest is a type of iotexapi types

type EstimateGasForActionResponse

type EstimateGasForActionResponse = iotexapi.EstimateGasForActionResponse

EstimateGasForActionResponse is a type of iotexapi types

type GetAccountRequest

type GetAccountRequest = iotexapi.GetAccountRequest

GetAccountRequest is a type of iotexapi types

type GetAccountResponse

type GetAccountResponse = iotexapi.GetAccountResponse

GetAccountResponse is a type of iotexapi types

type GetActionByHashRequest

type GetActionByHashRequest = iotexapi.GetActionByHashRequest

GetActionByHashRequest is a type of iotexapi types

type GetActionsByAddressRequest

type GetActionsByAddressRequest = iotexapi.GetActionsByAddressRequest

GetActionsByAddressRequest is a type of iotexapi types

type GetActionsByBlockRequest

type GetActionsByBlockRequest = iotexapi.GetActionsByBlockRequest

GetActionsByBlockRequest is a type of iotexapi types

type GetActionsByIndexRequest

type GetActionsByIndexRequest = iotexapi.GetActionsByIndexRequest

GetActionsByIndexRequest is a type of iotexapi types

type GetActionsRequest

type GetActionsRequest = iotexapi.GetActionsRequest

GetActionsRequest is a type of iotexapi types

type GetActionsRequestByAddr

type GetActionsRequestByAddr = iotexapi.GetActionsRequest_ByAddr

GetActionsRequestByAddr is a type of iotexapi types

type GetActionsRequestByBlk

type GetActionsRequestByBlk = iotexapi.GetActionsRequest_ByBlk

GetActionsRequestByBlk is a type of iotexapi types

type GetActionsRequestByHash

type GetActionsRequestByHash = iotexapi.GetActionsRequest_ByHash

GetActionsRequestByHash is a type of iotexapi types

type GetActionsRequestByIndex

type GetActionsRequestByIndex = iotexapi.GetActionsRequest_ByIndex

GetActionsRequestByIndex is a type of iotexapi types

type GetActionsRequestUnconfirmedByAddr

type GetActionsRequestUnconfirmedByAddr = iotexapi.GetActionsRequest_UnconfirmedByAddr

GetActionsRequestUnconfirmedByAddr is a type of iotexapi types

type GetActionsResponse

type GetActionsResponse = iotexapi.GetActionsResponse

GetActionsResponse is a type of iotexapi types

type GetBlockMetaByHashRequest

type GetBlockMetaByHashRequest = iotexapi.GetBlockMetaByHashRequest

GetBlockMetaByHashRequest is a type of iotexapi types

type GetBlockMetasByIndexRequest

type GetBlockMetasByIndexRequest = iotexapi.GetBlockMetasByIndexRequest

GetBlockMetasByIndexRequest is a type of iotexapi types

type GetBlockMetasRequest

type GetBlockMetasRequest = iotexapi.GetBlockMetasRequest

GetBlockMetasRequest is a type of iotexapi types

type GetBlockMetasRequestByHash

type GetBlockMetasRequestByHash = iotexapi.GetBlockMetasRequest_ByHash

GetBlockMetasRequestByHash is a type of iotexapi types

type GetBlockMetasRequestByIndex

type GetBlockMetasRequestByIndex = iotexapi.GetBlockMetasRequest_ByIndex

GetBlockMetasRequestByIndex is a type of iotexapi types

type GetBlockMetasResponse

type GetBlockMetasResponse = iotexapi.GetBlockMetasResponse

GetBlockMetasResponse is a type of iotexapi types

type GetChainMetaRequest

type GetChainMetaRequest = iotexapi.GetChainMetaRequest

GetChainMetaRequest is a type of iotexapi types

type GetChainMetaResponse

type GetChainMetaResponse = iotexapi.GetChainMetaResponse

GetChainMetaResponse is a type of iotexapi types

type GetEpochMetaRequest

type GetEpochMetaRequest = iotexapi.GetEpochMetaRequest

GetEpochMetaRequest is a type of iotexapi types

type GetEpochMetaResponse

type GetEpochMetaResponse = iotexapi.GetEpochMetaResponse

GetEpochMetaResponse is a type of iotexapi types

type GetReceiptByActionRequest

type GetReceiptByActionRequest = iotexapi.GetReceiptByActionRequest

GetReceiptByActionRequest is a type of iotexapi types

type GetReceiptByActionResponse

type GetReceiptByActionResponse = iotexapi.GetReceiptByActionResponse

GetReceiptByActionResponse is a type of iotexapi types

type GetServerMetaRequest

type GetServerMetaRequest = iotexapi.GetServerMetaRequest

GetServerMetaRequest is a type of iotexapi types

type GetServerMetaResponse

type GetServerMetaResponse = iotexapi.GetServerMetaResponse

GetServerMetaResponse is a type of iotexapi types

type GetUnconfirmedActionsByAddressRequest

type GetUnconfirmedActionsByAddressRequest = iotexapi.GetUnconfirmedActionsByAddressRequest

GetUnconfirmedActionsByAddressRequest is a type of iotexapi types

type RPCMethod

type RPCMethod struct {
	Endpoint string
	// contains filtered or unexported fields
}

RPCMethod provides simple interface tp invoke rpc method

func NewRPCMethod

func NewRPCMethod(endpoint string, secure bool) (*RPCMethod, error)

NewRPCMethod returns RPCMethod interacting with endpoint

func (*RPCMethod) Close

func (r *RPCMethod) Close()

Close closes the underlaying connection, after Close, no method should be invoked anymore

func (*RPCMethod) EstimateGasForAction

EstimateGasForAction estimates gas for action

func (*RPCMethod) GetAccount

GetAccount gets the address detail of an address

func (*RPCMethod) GetActions

GetActions gets action(s) by: 1. start index and action count 2. action hash 3. address with start index and action count 4. get unconfirmed actions by address with start index and action count 5. block hash with start index and action count

func (*RPCMethod) GetBlockMetas

GetBlockMetas gets block metadata(s) by: 1. start index and block count 2. block hash

func (*RPCMethod) GetChainMeta

GetChainMeta gets chain metadata

func (*RPCMethod) GetEpochMeta

GetEpochMeta get epoch meta

func (*RPCMethod) GetReceiptByAction

GetReceiptByAction gets receipt by action hash

func (*RPCMethod) GetServerMeta

GetServerMeta gets server metadata

func (*RPCMethod) ReadContract

ReadContract reads contract

func (*RPCMethod) ReadState

ReadState reads state from blockchain

func (*RPCMethod) SendAction

SendAction sends atcion to svr

func (*RPCMethod) SuggestGasPrice

SuggestGasPrice suggests gas price

type ReadContractRequest

type ReadContractRequest = iotexapi.ReadContractRequest

ReadContractRequest is a type of iotexapi types

type ReadContractResponse

type ReadContractResponse = iotexapi.ReadContractResponse

ReadContractResponse is a type of iotexapi types

type ReadStateRequest

type ReadStateRequest = iotexapi.ReadStateRequest

ReadStateRequest is a type of iotexapi types

type ReadStateResponse

type ReadStateResponse = iotexapi.ReadStateResponse

ReadStateResponse is a type of iotexapi types

type SendActionRequest

type SendActionRequest = iotexapi.SendActionRequest

SendActionRequest is a type of iotexapi types

type SendActionResponse

type SendActionResponse = iotexapi.SendActionResponse

SendActionResponse is a type of iotexapi types

type SuggestGasPriceRequest

type SuggestGasPriceRequest = iotexapi.SuggestGasPriceRequest

SuggestGasPriceRequest is a type of iotexapi types

type SuggestGasPriceResponse

type SuggestGasPriceResponse = iotexapi.SuggestGasPriceResponse

SuggestGasPriceResponse is a type of iotexapi types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL