Create a new contract
Build an unsigned (Cardano) transaction body which opens a new Marlowe contract. This unsigned transaction must be signed by a wallet (such as a CIP-30 or CIP-45 wallet) before being submitted. To submit the signed transaction, use the PUT /contracts/{contractId} endpoint.
Header Parameters |
---|
X-Stake-Address stringA cardano stake address, in Bech32 format Where to send staking rewards for the Marlowe script outputs of this contract. |
X-Change-Address string — REQUIREDA cardano address, in Bech32 format |
X-Address stringA comma-separated list of values |
X-Collateral-UTxO stringA comma-separated list of values |
Request Body |
---|
contract — REQUIRED |
metadata object — REQUIRED |
minUTxODeposit int64Possible values: value ≤ 18446744073709552000 |
roles |
tags object — REQUIRED |
threadTokenName string |
version string — REQUIREDPossible values: [ A version of the Marlowe language. |
Responses | |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
201
| |||||||||||||||||||||||||||||||||||||||||||||||
400 Invalid |