asyncSubmitReassignment posts POST /v2/commands/async/submit-reassignment with AsyncSubmitReassignmentParams:
reassignmentCommands(required) —BaseReassignmentCommandbundle (commandId,submitter,commands, optionalworkflowId,userId,submissionId).
Receiver: await canton.ledger.asyncSubmitReassignment
Setup
import { Canton } from '@fairmint/canton-node-sdk';
const canton = new Canton({
network: 'devnet',
provider: '5n',
partyId: 'OWN_PARTY_ID',
});
Minimal example
const resp = await canton.ledger.asyncSubmitReassignment({
reassignmentCommands: {
commandId: 'async-reassign-1',
submitter: canton.getPartyId(),
commands: [],
},
});
Parameters — AsyncSubmitReassignmentParams
Single property reassignmentCommands as above—validated against AsyncSubmitReassignmentParamsSchema.
Returns — AsyncSubmitReassignmentResponse
OpenAPI-generated acknowledgement JSON.
Errors and pitfalls
Malformed reassignment payloads fail synchronously; otherwise observe completions for eventual failures.
Auth and party
OAuth token; submitter party authorization required.