create

fun create(to: String, from: String, exchangeId: String, closeData: CloseData, protocol: String = "1.0", externalId: String? = null): Close

Creates a new Close message, autopopulating the id, creation time, and message kind.

Return

Close instance.

Parameters

to

DID that the message is being sent to.

from

DID of the sender.

exchangeId

ID of the exchange.

closeData

Specific parameters relevant to a Close.

protocol

version of the tbdex protocol.

externalId

external reference for the Close. Optional.