Skip to main content
POST
cURL

Body

application/json

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

holder
string
required

The party for whom the holding will be minted.

instrumentId
object
required

The identifier of the instrument.

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.