@proto-kit/processor • Docs
Documentation / @proto-kit/processor / BlockFetching
Class: BlockFetching
Used by various module sub-types that may need to be configured
Extends
Constructors
new BlockFetching()
new BlockFetching(
blockMapper,blockResultMapper,transactionResultMapper):BlockFetching
Parameters
• blockMapper: BlockMapper
• blockResultMapper: BlockResultMapper
• transactionResultMapper: TransactionExecutionResultMapper
Returns
Overrides
Defined in
packages/processor/src/indexer/BlockFetching.ts:37
Properties
blockMapper
blockMapper:
BlockMapper
Defined in
packages/processor/src/indexer/BlockFetching.ts:38
blockResultMapper
blockResultMapper:
BlockResultMapper
Defined in
packages/processor/src/indexer/BlockFetching.ts:39
currentConfig
protectedcurrentConfig:undefined|BlockFetchingConfig
Store the config separately, so that we can apply additional checks when retrieving it via the getter
Inherited from
Defined in
packages/common/dist/config/ConfigurableModule.d.ts:17
transactionResultMapper
transactionResultMapper:
TransactionExecutionResultMapper
Defined in
packages/processor/src/indexer/BlockFetching.ts:40
Accessors
config
Get Signature
get config():
Config
Returns
Config
Set Signature
set config(
config):void
Parameters
• config: Config
Returns
void
Inherited from
Defined in
packages/common/dist/config/ConfigurableModule.d.ts:18
Methods
create()
create(
childContainerProvider):void
Parameters
• childContainerProvider: ChildContainerProvider
Returns
void
Inherited from
Defined in
packages/common/dist/config/ConfigurableModule.d.ts:20
fetchBlock()
fetchBlock(
height):Promise<undefined|BlockWithResult>
Parameters
• height: number
Returns
Promise<undefined | BlockWithResult>
Defined in
packages/processor/src/indexer/BlockFetching.ts:45
start()
start():
Promise<void>
Returns
Promise<void>