Versions in this module Expand all Collapse all v0 v0.0.3 Jul 5, 2024 v0.0.2 Jun 10, 2024 Changes in this version + const ConfGasStationPriceAverage + const ConfGasStationPriceFast + const ConfGasStationPriceFastest + const ConfGasStationPriceSafeLow + type CfxLogsApiHandler struct + func NewCfxLogsApiHandler(ms *mysql.MysqlStore, prunedHandler *CfxPrunedLogsHandler) *CfxLogsApiHandler + func (handler *CfxLogsApiHandler) GetLogs(ctx context.Context, cfx sdk.ClientOperator, filter *types.LogFilter) ([]types.Log, bool, error) + type CfxPrunedLogsHandler struct + func NewCfxPrunedLogsHandler(pool *node.CfxClientProvider, store *mysql.UserStore, client *redis.Client) *CfxPrunedLogsHandler + func (h *CfxPrunedLogsHandler) GetLogs(ctx context.Context, filter types.LogFilter) ([]types.Log, error) + type CfxStoreHandler struct + func NewCfxCommonStoreHandler(sname string, store store.Readable, next *CfxStoreHandler) *CfxStoreHandler + func (h *CfxStoreHandler) GetBlockByBlockNumber(ctx context.Context, blockNumer hexutil.Uint64, includeTxs bool) (block interface{}, err error) + func (h *CfxStoreHandler) GetBlockByEpochNumber(ctx context.Context, epoch *types.Epoch, includeTxs bool) (block interface{}, err error) + func (h *CfxStoreHandler) GetBlockByHash(ctx context.Context, blockHash types.Hash, includeTxs bool) (block interface{}, err error) + func (h *CfxStoreHandler) GetBlocksByEpoch(ctx context.Context, epoch *types.Epoch) (blockHashes []types.Hash, err error) + func (h *CfxStoreHandler) GetTransactionByHash(ctx context.Context, txHash types.Hash) (txn *types.Transaction, err error) + func (h *CfxStoreHandler) GetTransactionReceipt(ctx context.Context, txHash types.Hash) (rcpt *types.TransactionReceipt, err error) + type EthLogsApiHandler struct + func NewEthLogsApiHandler(ms *mysql.MysqlStore) *EthLogsApiHandler + func (handler *EthLogsApiHandler) GetLogs(ctx context.Context, eth *client.RpcEthClient, filter *types.FilterQuery) ([]types.Log, bool, error) + type EthStoreHandler struct + func NewEthStoreHandler(store store.Readable, next *EthStoreHandler) *EthStoreHandler + func (h *EthStoreHandler) GetBlockByHash(ctx context.Context, blockHash common.Hash, includeTxs bool) (block *web3Types.Block, err error) + func (h *EthStoreHandler) GetBlockByNumber(ctx context.Context, blockNum *web3Types.BlockNumber, includeTxs bool) (block *web3Types.Block, err error) + func (h *EthStoreHandler) GetLogs(ctx context.Context, filter store.LogFilter) (logs []web3Types.Log, err error) + func (h *EthStoreHandler) GetTransactionByHash(ctx context.Context, txHash common.Hash) (*web3Types.TransactionDetail, error) + func (h *EthStoreHandler) GetTransactionReceipt(ctx context.Context, txHash common.Hash) (*web3Types.Receipt, error) + type GasStationHandler struct + func NewGasStationHandler(db, cache store.Configurable) *GasStationHandler + func (handler *GasStationHandler) GetPrice() (*itypes.GasStationPrice, error)