Skip to content

@acala-network/chopsticks-coreDocs


@acala-network/chopsticks-core / Options

Interface: Options

Properties

allowUnresolvedImports?

optional allowUnresolvedImports: boolean

Whether to allow wasm unresolved imports.

Defined in

packages/core/src/blockchain/index.ts:41


api

api: Api

API instance, for getting on-chain data.

Defined in

packages/core/src/blockchain/index.ts:29


buildBlockMode?

optional buildBlockMode: BuildBlockMode

Build block mode. Default to Batch.

Defined in

packages/core/src/blockchain/index.ts:31


db?

optional db: Database

Datasource for caching storage and blocks data.

Defined in

packages/core/src/blockchain/index.ts:35


header: object

Used to create the initial head.

hash

hash: `0x${string}`

number

number: number

Defined in

packages/core/src/blockchain/index.ts:37


inherentProviders

inherentProviders: InherentProvider[]

Inherent provider, for creating inherents.

Defined in

packages/core/src/blockchain/index.ts:33


maxMemoryBlockCount?

optional maxMemoryBlockCount: number

Max memory block count

Defined in

packages/core/src/blockchain/index.ts:49


mockSignatureHost?

optional mockSignatureHost: boolean

Whether to enable mock signature. Any signature starts with 0xdeadbeef and filled by 0xcd is considered valid

Defined in

packages/core/src/blockchain/index.ts:39


offchainWorker?

optional offchainWorker: boolean

Whether to enable offchain Worker.

Defined in

packages/core/src/blockchain/index.ts:47


processQueuedMessages?

optional processQueuedMessages: boolean

Whether to process queued messages

Defined in

packages/core/src/blockchain/index.ts:51


registeredTypes

registeredTypes: RegisteredTypes

Polkadot.js custom types registration.

Defined in

packages/core/src/blockchain/index.ts:45


runtimeLogLevel?

optional runtimeLogLevel: number

Wasm runtime log level.

Defined in

packages/core/src/blockchain/index.ts:43