Skip to main content

Calls

asDerivative

Send a call through an indexed pseudonym of the sender. Filter from origin are passed along. The call will be dispatched with an origin which use the same filter as the origin of this call. NOTE:
  • If you need to ensure that any account-based filtering is not honored (i.e. because you expect proxy to have been used prior in the call stack and you do not want the call restrictions to apply to any sub-accounts), then use as_multi_threshold_1 in the Multisig pallet instead.
  • Prior to version *12, this was called as_limited_sub.
The dispatch origin for this call must be Signed. Namespace
Type

batch

Send a batch of dispatch calls. May be called from any origin.
  • calls: The calls to be dispatched from the same origin. The number of call must not exceed the constant: batched_calls_limit (available in constant metadata).
If origin is root then call are dispatch without checking origin filter. (This includes bypassing frame_system::Config::BaseCallFilter). This will return Ok in all circumstances. To determine the success of the batch, an event is deposited. If a call failed and the batch was interrupted, then the BatchInterrupted event is deposited, along with the number of successful calls made and the error of the failed call. If all were successful, then the BatchCompleted event is deposited. Namespace
Type

batchAll

Send a batch of dispatch calls and atomically execute them. The whole transaction will rollback and fail if any of the calls failed. May be called from any origin.
  • calls: The calls to be dispatched from the same origin. The number of call must not exceed the constant: batched_calls_limit (available in constant metadata).
If origin is root then call are dispatch without checking origin filter. (This includes bypassing frame_system::Config::BaseCallFilter). Namespace
Type

dispatchAs

Dispatches a function call with a provided origin. The dispatch origin for this call must be Root. Namespace
Type

forceBatch

Send a batch of dispatch calls. Unlike batch, it allows errors and won’t interrupt. May be called from any origin.
  • calls: The calls to be dispatched from the same origin. The number of call must not exceed the constant: batched_calls_limit (available in constant metadata).
If origin is root then call are dispatch without checking origin filter. (This includes bypassing frame_system::Config::BaseCallFilter). Namespace
Type
undefined## Events

BatchCompleted

Batch of dispatches completed fully with no error. Namespace
Type

BatchCompletedWithErrors

Batch of dispatches completed but has errors. Namespace
Type

BatchInterrupted

Batch of dispatches did not complete fully. Index of first failing dispatch given, as well as the error. Namespace
Type

DispatchedAs

A call was dispatched. Namespace
Type

ItemCompleted

A single item within a Batch of dispatches has completed with no error. Namespace
Type

ItemFailed

A single item within a Batch of dispatches has been completed with error. Namespace
Type

Errors

TooManyCalls

Too many calls batched. Namespace

Constants

batchedCallsLimit

The limit on the number of batched calls. Namespace
Type