IoTeX gRPC API
When running in "Gateway" mode, an IoTeX node exposes both the IoTeX native API and the Ethereum JSON API. The IoTeX native API is based on the gRPC protocol. In this document, we list the official IoTeX public gateway nodes exposing the gRPC API and the API calls reference.
Official gRPC API endpoints
Mainnet
Endpoint
Provider
More
Testnet
Endpoint
Text
More
gRPC API Reference
Below is the alphabetical list of all available gRPC calls provided by the IoTeX native API. To run the examples you can use the grpcurl command-line client for your OS.
EstimateActionGasConsumptionByExecution
Usage:
Get Estimated Action Gas Consumption By Execution
Request:
Execution: iotextypes.Execution
-Amount: Execution Amount
-Contract: Contract Address
-Data: Data
CallerAddress: Address of Caller
Response:
Gas: Estimated Gas AmountExample:
EstimateActionGasConsumptionByTransfer
Example:
EstimateGasForAction
Example:
GetAccount
Example:
GetActionsByAddress
Example:
GetActionsByBlock
Example:
GetActionByHash
Example:
GetActionsByIndex
Example:
GetBlockMetasByHash
Example:
GetBlockMetasByIndex
Example:
GetChainMeta
Example:
GetEpochMeta
Example:
GetLogsByBlock
Example:
GetLogsByRange
Example:
GetRawBlocks
Example:
GetReceiptByAction
Example:
GetServerMeta
Example:
GetTransactionLogByActionHash
Example:
GetTransactionLogByBlockHeight
Example:
GetUnconfirmedActionsByAddress
Example:
ReadContract
Example:
ReadState
Example:
SendAction
Example:
SuggestGasPrice
Example:
StreamBlocks
Example:
StreamLogs
Example:

