Skip to main content

Upload contract sources

Upload a bundle of marlowe objects as contract sources. This API supports request body streaming, with newline framing between request bundles.

Query Parameters
main string REQUIRED

An arbitrary text identifier for an object in a Marlowe object bundle.

The label of the top-level contract object in the bundle(s).

Request Body
object[]
label string REQUIRED

An arbitrary text identifier for an object in a Marlowe object bundle.

type string REQUIRED

Possible values: [value, observation, contract, party, token, action]

value REQUIRED
Responses
200
Schema OPTIONAL
contractSourceId string

Possible values: Value must match regular expression ^[a-fA-F0-9]{64}$

The hex-encoded identifier of a Marlowe contract source

intermediateIds object
400

Invalid body or main