Versions in this module Expand all Collapse all v1 v1.999.10 Nov 28, 2022 Changes in this version + const BlockStatusOnChain + const BlockStatusReverted + var ErrInvalidOutputFormat = errors.New("the output format type is invalid") + var ErrMetachainOnlyEndpoint = errors.New("the endpoint is only available on metachain nodes") + var ErrShardOnlyEndpoint = errors.New("the endpoint is only available on shard nodes") + var ErrWrongTypeAssertion = errors.New("wrong type assertion") + type APIBlockHandler interface + GetBlockByHash func(hash []byte, options api.BlockQueryOptions) (*api.Block, error) + GetBlockByNonce func(nonce uint64, options api.BlockQueryOptions) (*api.Block, error) + GetBlockByRound func(round uint64, options api.BlockQueryOptions) (*api.Block, error) + IsInterfaceNil func() bool + func CreateAPIBlockProcessor(arg *ArgAPIBlockProcessor) (APIBlockHandler, error) + type APIInternalBlockHandler interface + GetInternalMetaBlockByHash func(format common.ApiOutputFormat, hash []byte) (interface{}, error) + GetInternalMetaBlockByNonce func(format common.ApiOutputFormat, nonce uint64) (interface{}, error) + GetInternalMetaBlockByRound func(format common.ApiOutputFormat, round uint64) (interface{}, error) + GetInternalMiniBlock func(format common.ApiOutputFormat, hash []byte, epoch uint32) (interface{}, error) + GetInternalShardBlockByHash func(format common.ApiOutputFormat, hash []byte) (interface{}, error) + GetInternalShardBlockByNonce func(format common.ApiOutputFormat, nonce uint64) (interface{}, error) + GetInternalShardBlockByRound func(format common.ApiOutputFormat, round uint64) (interface{}, error) + GetInternalStartOfEpochMetaBlock func(format common.ApiOutputFormat, epoch uint32) (interface{}, error) + IsInterfaceNil func() bool + func CreateAPIInternalBlockProcessor(arg *ArgAPIBlockProcessor) (APIInternalBlockHandler, error) + type APITransactionHandler interface + IsInterfaceNil func() bool + PopulateComputedFields func(tx *transaction.ApiTransactionResult) + UnmarshalReceipt func(receiptBytes []byte) (*transaction.ApiReceipt, error) + UnmarshalTransaction func(txBytes []byte, txType transaction.TxType) (*transaction.ApiTransactionResult, error) + type ArgAPIBlockProcessor struct + APITransactionHandler APITransactionHandler + AddressPubkeyConverter core.PubkeyConverter + Hasher hashing.Hasher + HistoryRepo dblookupext.HistoryRepository + LogsFacade logsFacade + Marshalizer marshal.Marshalizer + ReceiptsRepository receiptsRepository + SelfShardID uint32 + StatusComputer transaction.StatusComputerHandler + Store dataRetriever.StorageService + Uint64ByteSliceConverter typeConverters.Uint64ByteSliceConverter + type BlockStatus string