Module @marlowe.io/language-core-v1

Description

This package contains code to work with the version 1 of Marlowe Core. It exports 5 modules:

Getting started

This package is released as an ESM module and can be used with a modern bundler or imported directly in the browser (without any bundler) as long as you use an import map.

Browser

<html>
<body>
<script src="https://cdn.jsdelivr.net/gh/input-output-hk/marlowe-ts-sdk@0.4.0-beta/jsdelivr-npm-importmap.js"></script>
<script type="module">
import { Contract } from "@marlowe.io/language-core-v1/guards";
const jsonObject = JSON.parse(httpResponse);

if (Contract.is(jsonObject)) {
// The jsonObject respects the JSON schema for Contract
} else {
// The jsonObject does not respect the JSON schema for Contract
}
</script>
</body>
</html>

Index

Modules