Utility

#11

Batch operations and call dispatching

Part of Utility & Tools: Batch operations, proxies, multisig, and scheduling

Filter by:
as_derivative call v120 → v393 #1

Executes a call as a derivative account of the sender.

System
batch call v120 → v393 #0

Sends multiple calls in a batch, continuing on failure.

Emits: BatchInterrupted, BatchCompleted +2
●●●●○○ Active usage
System
batch_all call v120 → v393 #2

Sends multiple calls atomically, reverting all on any failure.

Emits: BatchInterrupted, BatchCompleted +1
●●●●●○ Core usage
System
BatchCompleted event v120 → v393 #1

Emitted when all calls in a batch completed successfully.

Emitted by: batch, batch_all +1
●●●●○○ Significant usage
System
BatchCompletedWithErrors event v120 → v393 #2

Emitted when a batch completed but some calls failed.

Emitted by: force_batch, batch
●●●●○○ Significant usage
System
batched_calls_limit constant v120 → v393

Maximum number of calls that can be batched in a single transaction.

BatchInterrupted event v120 → v393 #0

Emitted when a batch did not complete fully - gives index of first failing call.

Emitted by: batch, batch_all
●●●○○○ Active usage
System
dispatch_as call v120 → v393 #3

Dispatches a call with a specified origin (root only).

Emits: DispatchedAs
SystemAdmin
dispatch_as_fallible call v320 → v393 #7

Dispatches a call as a different origin, forwarding any errors (root only).

Emits: DispatchedAs
SystemAdmin
DispatchedAs event v120 → v393 #5

Emitted when a call was dispatched with a different origin.

Emitted by: dispatch_as, dispatch_as_fallible
SystemAdmin
force_batch call v120 → v393 #4

Sends multiple calls, ignoring failures entirely.

Emits: BatchCompleted, BatchCompletedWithErrors +2
●●●●●○ Core usage
System
if_else call v320 → v393 #6

Executes fallback call if main call fails.

Emits: IfElseMainSuccess, IfElseFallbackCalled
System
IfElseFallbackCalled event v320 → v393 #7

Emitted when the main call failed and fallback was executed.

Emitted by: if_else
System
IfElseMainSuccess event v320 → v393 #6

Emitted when the main call in if_else succeeded.

Emitted by: if_else
System
InvalidDerivedAccount error v334 → v393 #1

The derivative account index is invalid or cannot be computed.

ItemCompleted event v120 → v393 #3

Emitted for each call in a batch that completed successfully.

Emitted by: batch, batch_all +1
●●●●●○ Dominant usage
System
ItemFailed event v120 → v393 #4

Emitted for each call in a batch that failed.

Emitted by: force_batch
●●●●○○ Significant usage
System
TooManyCalls error v120 → v393 #0

The batch exceeds the maximum number of calls allowed.

with_weight call v120 → v393 #5

Dispatches a call with a specified weight (root only).

SystemAdmin

Related Pallets