parse

fun parse(payload: String): Close

Takes an existing Close in the form of a json string and parses it into a Close object. Validates object structure and performs an integrity check using the message signature.

Return

The json string parsed into a Close

Parameters

payload

The Close as a json string.

Throws

if the payload is not a Close