Skip to content

ExecuteBatchParameters

ExecuteBatchParameters<TCreates, TPatches> = object

Defined in: src/actions/wallet/executeBatch.ts:27

Parameters for the executeBatch function.

At least one operation is required; a batch with nothing in it throws rather than spending gas on an empty transaction.

Each create and patch names its own schema, and is typed by it — a batch can write entities of several schemas at once.

TCreates extends readonly Schema[] = readonly Schema[]

The schema of each create, in order. Inferred.

TPatches extends readonly Schema[] = readonly Schema[]

The schema of each patch, in order. Inferred.

optional creates: { readonly [I in keyof TCreates]: CreateEntityParameters<TCreates[I]> }

Defined in: src/actions/wallet/executeBatch.ts:32

The entities to create.


optional deletes: readonly DeleteEntityParameters[]

Defined in: src/actions/wallet/executeBatch.ts:36

The entities to delete.


optional extensions: readonly ExtendEntityParameters[]

Defined in: src/actions/wallet/executeBatch.ts:38

The expiries to set.


optional ownershipChanges: readonly ChangeOwnershipParameters[]

Defined in: src/actions/wallet/executeBatch.ts:40

The ownership transfers to perform.


optional patches: { readonly [I in keyof TPatches]: PatchEntityParameters<TPatches[I]> }

Defined in: src/actions/wallet/executeBatch.ts:34

The patches to apply.