Create an unsigned transaction which applies inputs to a contract.
Builds an unsigned transaction to create an instance of a Marlowe Contract.
Request parameters including the Contract to create, role information, metadata, etc.
An object with the CBOR encoded transaction to sign (using the signTx function) and submit to the blockchain (using the TODO method).
Uploads a marlowe-object bundle to the runtime, giving back the hash of the main contract and the hashes of the intermediate objects.
Gets a single contract by id
Get the contract source IDs which are adjacent to a contract source (they appear directly in the contract source).
Gets the contract associated with given source id
Get the contract source IDs which appear in the full hierarchy of a contract source (including the ID of the contract source itself).
Gets full transaction details for a specific applyInput transaction of a contract
Gets a paginated list of contracts ContractHeader
Optional
request: GetContractsRequestOptional filtering and pagination options.
Get inputs which could be performed on a contract within a time range by the requested parties.
Get payout information associated with payout ID
Get payouts to parties from role-based contracts.
Gets a paginated list of TxHeader for a given contract.
Get published withdrawal transaction by ID.
Get published withdrawal transactions.
Optional
request: GetWithdrawalsRequestRuntime Healthcheck checks if the Marlowe API is up and running. It also provides a Set of Runtime Environment information (Tips, NetworkId and Runtime Version Deployed)
Submits a signed contract creation transaction
Submit a signed transaction (generated with applyInputsToContract and signed with the signTx procedure) that applies inputs to a contract.
Submit a signed transaction (generated with withdrawPayouts and signed with the signTx procedure) that withdraws available payouts from a contract.
Returns the version of the connected runtime.
Build an unsigned transaction (sign with the signTx procedure) which withdraws available payouts from a contract (when applied with the submitWithdrawal procedure).
The RestClient offers a simple abstraction for the Marlowe Runtime REST API endpoints. You can create an instance of the RestClient using the mkRestClient function.
Remarks
This version of the RestClient targets version
0.0.5
of the Marlowe Runtime.