create

fun create(to: String, from: String, exchangeId: String, quoteData: QuoteData, protocol: String = "1.0", externalId: String? = null): Quote

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

Return

Quote instance.

Parameters

to

DID that the message is being sent to.

from

DID of the sender.

exchangeId

ID of the exchange.

quoteData

Specific parameters relevant to a Quote.

protocol

version of the tbdex protocol.

externalId

external reference for the Quote. Optional.