Documentation ¶
Index ¶
- type EstimateGasForActionRequest
- type EstimateGasForActionResponse
- type GetAccountRequest
- type GetAccountResponse
- type GetActionByHashRequest
- type GetActionsByAddressRequest
- type GetActionsByBlockRequest
- type GetActionsByIndexRequest
- type GetActionsRequest
- type GetActionsRequestByAddr
- type GetActionsRequestByBlk
- type GetActionsRequestByHash
- type GetActionsRequestByIndex
- type GetActionsRequestUnconfirmedByAddr
- type GetActionsResponse
- type GetBlockMetaByHashRequest
- type GetBlockMetasByIndexRequest
- type GetBlockMetasRequest
- type GetBlockMetasRequestByHash
- type GetBlockMetasRequestByIndex
- type GetBlockMetasResponse
- type GetChainMetaRequest
- type GetChainMetaResponse
- type GetEpochMetaRequest
- type GetEpochMetaResponse
- type GetReceiptByActionRequest
- type GetReceiptByActionResponse
- type GetServerMetaRequest
- type GetServerMetaResponse
- type GetUnconfirmedActionsByAddressRequest
- type RPCMethod
- func (r *RPCMethod) Close()
- func (r *RPCMethod) EstimateGasForAction(in *iotexapi.EstimateGasForActionRequest) (*iotexapi.EstimateGasForActionResponse, error)
- func (r *RPCMethod) GetAccount(in *iotexapi.GetAccountRequest) (*iotexapi.GetAccountResponse, error)
- func (r *RPCMethod) GetActions(in *iotexapi.GetActionsRequest) (*iotexapi.GetActionsResponse, error)
- func (r *RPCMethod) GetBlockMetas(in *iotexapi.GetBlockMetasRequest) (*iotexapi.GetBlockMetasResponse, error)
- func (r *RPCMethod) GetChainMeta(in *iotexapi.GetChainMetaRequest) (*iotexapi.GetChainMetaResponse, error)
- func (r *RPCMethod) GetEpochMeta(in *iotexapi.GetEpochMetaRequest) (*iotexapi.GetEpochMetaResponse, error)
- func (r *RPCMethod) GetReceiptByAction(in *iotexapi.GetReceiptByActionRequest) (*iotexapi.GetReceiptByActionResponse, error)
- func (r *RPCMethod) GetServerMeta(in *iotexapi.GetServerMetaRequest) (*iotexapi.GetServerMetaResponse, error)
- func (r *RPCMethod) ReadContract(in *iotexapi.ReadContractRequest) (*iotexapi.ReadContractResponse, error)
- func (r *RPCMethod) ReadState(in *iotexapi.ReadStateRequest) (*iotexapi.ReadStateResponse, error)
- func (r *RPCMethod) SendAction(in *iotexapi.SendActionRequest) (*iotexapi.SendActionResponse, error)
- func (r *RPCMethod) SuggestGasPrice(in *iotexapi.SuggestGasPriceRequest) (*iotexapi.SuggestGasPriceResponse, error)
- type ReadContractRequest
- type ReadContractResponse
- type ReadStateRequest
- type ReadStateResponse
- type SendActionRequest
- type SendActionResponse
- type SuggestGasPriceRequest
- type SuggestGasPriceResponse
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 ¶
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 ¶
func (r *RPCMethod) EstimateGasForAction(in *iotexapi.EstimateGasForActionRequest) (*iotexapi.EstimateGasForActionResponse, error)
EstimateGasForAction estimates gas for action
func (*RPCMethod) GetAccount ¶
func (r *RPCMethod) GetAccount(in *iotexapi.GetAccountRequest) (*iotexapi.GetAccountResponse, error)
GetAccount gets the address detail of an address
func (*RPCMethod) GetActions ¶
func (r *RPCMethod) GetActions(in *iotexapi.GetActionsRequest) (*iotexapi.GetActionsResponse, error)
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 ¶
func (r *RPCMethod) GetBlockMetas(in *iotexapi.GetBlockMetasRequest) (*iotexapi.GetBlockMetasResponse, error)
GetBlockMetas gets block metadata(s) by: 1. start index and block count 2. block hash
func (*RPCMethod) GetChainMeta ¶
func (r *RPCMethod) GetChainMeta(in *iotexapi.GetChainMetaRequest) (*iotexapi.GetChainMetaResponse, error)
GetChainMeta gets chain metadata
func (*RPCMethod) GetEpochMeta ¶
func (r *RPCMethod) GetEpochMeta(in *iotexapi.GetEpochMetaRequest) (*iotexapi.GetEpochMetaResponse, error)
GetEpochMeta get epoch meta
func (*RPCMethod) GetReceiptByAction ¶
func (r *RPCMethod) GetReceiptByAction(in *iotexapi.GetReceiptByActionRequest) (*iotexapi.GetReceiptByActionResponse, error)
GetReceiptByAction gets receipt by action hash
func (*RPCMethod) GetServerMeta ¶
func (r *RPCMethod) GetServerMeta(in *iotexapi.GetServerMetaRequest) (*iotexapi.GetServerMetaResponse, error)
GetServerMeta gets server metadata
func (*RPCMethod) ReadContract ¶
func (r *RPCMethod) ReadContract(in *iotexapi.ReadContractRequest) (*iotexapi.ReadContractResponse, error)
ReadContract reads contract
func (*RPCMethod) ReadState ¶
func (r *RPCMethod) ReadState(in *iotexapi.ReadStateRequest) (*iotexapi.ReadStateResponse, error)
ReadState reads state from blockchain
func (*RPCMethod) SendAction ¶
func (r *RPCMethod) SendAction(in *iotexapi.SendActionRequest) (*iotexapi.SendActionResponse, error)
SendAction sends atcion to svr
func (*RPCMethod) SuggestGasPrice ¶
func (r *RPCMethod) SuggestGasPrice(in *iotexapi.SuggestGasPriceRequest) (*iotexapi.SuggestGasPriceResponse, error)
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