@acala-network/chopsticks-core • Docs
@acala-network/chopsticks-core / TxPool
Class: TxPool
Constructors
new TxPool()
new TxPool(
chain
,inherentProviders
,mode
):TxPool
Parameters
• chain: Blockchain
• inherentProviders: InherentProvider
[]
• mode: BuildBlockMode
= BuildBlockMode.Batch
Returns
Defined in
packages/core/src/blockchain/txpool.ts:62
Properties
event
readonly
event:EventEmitter
<string
|symbol
,any
>
Defined in
packages/core/src/blockchain/txpool.ts:58
Accessors
dmp
get
dmp():DownwardMessage
[]
Returns
Defined in
packages/core/src/blockchain/txpool.ts:76
hrmp
get
hrmp():Record
<number
,HorizontalMessage
[]>
Returns
Record
<number
, HorizontalMessage
[]>
Defined in
packages/core/src/blockchain/txpool.ts:80
mode
get
mode():BuildBlockMode
set
mode(mode
):void
Parameters
• mode: BuildBlockMode
Returns
Defined in
packages/core/src/blockchain/txpool.ts:84
pendingExtrinsics
get
pendingExtrinsics(): `0x${string}`[]
Returns
`0x${string}`[]
Defined in
packages/core/src/blockchain/txpool.ts:68
ump
get
ump():Record
<number
, `0x${string}`[]>
Returns
Record
<number
, `0x${string}`[]>
Defined in
packages/core/src/blockchain/txpool.ts:72
Methods
buildBlock()
buildBlock(
params
?):Promise
<void
>
Parameters
• params?: Partial
<BuildBlockParams
>
Returns
Promise
<void
>
Defined in
packages/core/src/blockchain/txpool.ts:176
buildBlockWithParams()
buildBlockWithParams(
params
):Promise
<void
>
Parameters
• params: BuildBlockParams
Returns
Promise
<void
>
Defined in
packages/core/src/blockchain/txpool.ts:167
clear()
clear():
void
Returns
void
Defined in
packages/core/src/blockchain/txpool.ts:92
pendingExtrinsicsBy()
pendingExtrinsicsBy(
address
): `0x${string}`[]
Parameters
• address: string
Returns
`0x${string}`[]
Defined in
packages/core/src/blockchain/txpool.ts:103
submitDownwardMessages()
submitDownwardMessages(
dmp
):void
Parameters
• dmp: DownwardMessage
[]
Returns
void
Defined in
packages/core/src/blockchain/txpool.ts:132
submitExtrinsic()
submitExtrinsic(
extrinsic
):Promise
<void
>
Parameters
• extrinsic: `0x${string}`
Returns
Promise
<void
>
Defined in
packages/core/src/blockchain/txpool.ts:107
submitHorizontalMessages()
submitHorizontalMessages(
id
,hrmp
):void
Parameters
• id: number
• hrmp: HorizontalMessage
[]
Returns
void
Defined in
packages/core/src/blockchain/txpool.ts:140
submitUpwardMessages()
submitUpwardMessages(
id
,ump
):void
Parameters
• id: number
• ump: `0x${string}`[]
Returns
void
Defined in
packages/core/src/blockchain/txpool.ts:121
upcomingBlocks()
upcomingBlocks():
Promise
<number
>
Returns
Promise
<number
>