Admin Login
HomeGuidesAPI ReferenceChangelogBlockdaemon Main Docs
Log In
API Reference

Prepare an OTC trade allocation

Use when a leg sender locks holdings against an active OTCTrade. Exercises AllocationFactory_Allocate using settlement fields derived from the OTCTrade. Returns an unsigned transaction for off-chain signing.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
enum
required

caip2 network reference segment

Allowed:
string
required

Daml contract ID of the OTCTrade; supplied via URL path.

Body Params

PrepareOtcTradeAllocateTxBody prepares AllocationFactory_Allocate for one leg of an OTCTrade.
Settlement and transfer-leg fields are derived from the on-ledger OTCTrade.

string

Daml contract ID of the allocation factory to use. When omitted, the API selects a factory automatically.

disclosedContracts
array of objects

Contracts disclosed to the submitter for this transaction.

disclosedContracts
extraArgs
object

Additional choice context and metadata for Splice allocation factories.

string
enum

Strategy for auto-selecting input holdings when inputHoldingCids is empty.

Allowed:
inputHoldingCids
array of strings

Daml contract IDs of the sender's input holdings. When omitted, the API selects holdings automatically.

inputHoldingCids
string
required

Canton party ID of the allocating party (must be the sender of transferLegId).

string
required

Transfer leg id within the OTCTrade to allocate against.

Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json