Skip to content

Reference

ledger.asyncSubmitReassignment

Submit reassignment commands asynchronously without blocking for reassignment completion.

asyncSubmitReassignment posts POST /v2/commands/async/submit-reassignment with AsyncSubmitReassignmentParams:

  • reassignmentCommands (required)BaseReassignmentCommand bundle (commandId, submitter, commands, optional workflowId, 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.

See also

Source

operations/v2/commands/async/submit-reassignment.ts