@acala-network/chopsticks-core • Docs
@acala-network/chopsticks-core / HeadState
Class: HeadState
Constructors
new HeadState()
new HeadState(
head
):HeadState
Parameters
• head: Block
Returns
Defined in
packages/core/src/blockchain/head-state.ts:17
Methods
setHead()
setHead(
head
):Promise
<void
>
Parameters
• head: Block
Returns
Promise
<void
>
Defined in
packages/core/src/blockchain/head-state.ts:46
subscribeHead()
subscribeHead(
cb
):string
Parameters
• cb
Returns
string
Defined in
packages/core/src/blockchain/head-state.ts:21
subscribeStorage()
subscribeStorage(
keys
,cb
):Promise
<string
>
Parameters
• keys: string
[]
• cb: Callback
Returns
Promise
<string
>
Defined in
packages/core/src/blockchain/head-state.ts:31
unsubscribeHead()
unsubscribeHead(
id
):void
Parameters
• id: string
Returns
void
Defined in
packages/core/src/blockchain/head-state.ts:27
unsubscribeStorage()
unsubscribeStorage(
id
):void
Parameters
• id: string
Returns
void