authorizeBatch
authorizeBatch(
input
):Promise
<SubmittableExtrinsic
>
Authorizes/signs a list of extrinsics grouping them in batches by required key type.
Parameters
• input
The object with named parameters.
• input.batchFunction: SubmittableExtrinsicFunction
<"promise"
>
The batch function to use, for example api.tx.utility.batchAll
.
• input.did: did:cord:3${string}
The DID document.
• input.extrinsics
The array of unsigned extrinsics to sign.
• input.nonce?: any
The optional nonce to use for the first batch, next batches will use incremented value.
• input.sign: SignExtrinsicCallback
The callback to sign the operation.
• input.submitter: 3${string}
The account to bind the DID operation to (to avoid MitM and replay attacks).
Returns
Promise
<SubmittableExtrinsic
>
The DID-signed submittable extrinsic.