Skip to main content
POST
cURL

Body

application/json

The request to get the factory and choice context for burn and mint.

instrumentId
object
required

The identifier of the instrument.

inputHoldingCids
string[]
required

Contract ids of Holdings to be used for the burn.

outputs
object[]
required

The list of specification of a holding to be minted.

Response

ok

A factory contract together with the choice context required to exercise the choice provided by the factory. Typically used to implement the generic initiation of on-ledger workflows via a Daml interface.

Clients SHOULD avoid reusing the same FactoryWithChoiceContext for exercising multiple choices, as the choice context MAY be specific to the choice being exercised.

factoryId
string
required

The contract ID of the contract of the factory which can be used to create instruction.

choiceContext
object
required

The context required to exercise a choice on a contract via an interface. Used to retrieve additional reference date that is passed in via disclosed contracts, which are in turn referred to via their contract ID in the choiceContextData.