@acala-network/chopsticks-core
@acala-network/chopsticks-core / dryRunExtrinsicsAmortized
Function: dryRunExtrinsicsAmortized()
dryRunExtrinsicsAmortized(
head,inherentProviders,extrinsics,params):Promise<DryRunResult[]>
Defined in: packages/core/src/blockchain/block-builder.ts:402
Dry-run a batch of extrinsics against the same initialized block.
Core_initialize_block and the inherents are executed once. Each extrinsic is then applied on a temporary storage layer that is pushed before the call and popped after, so no extrinsic side-effects leak into the next.
Caveat: because account nonces revert with each pop, all extrinsics must be pre-signed with the same base nonce.
Parameters
head
inherentProviders
extrinsics
`0x${string}`[]
params
Returns
Promise<DryRunResult[]>