Beta
Optional
signature: stringProtected
_signaturesignature that verifies that authenticity and integrity of a message
Readonly
dataQuote's data containing locked-in price and payment methods that the PFI is willing to honor until the quote expires
Readonly
kindThe message kind (quote)
Readonly
metadataMetadata such as sender, recipient, date created, and ID
Readonly
valida set of valid Message kinds that can come after a quote
Message creation time. Expressed as ISO8601
ID for an "exchange" of messages between Alice - PFI. Uses the id of the RFQ that initiated the exchange
the external ID
The sender's DID
the message id
the protocol version
the message's cryptographic signature
the recipient's DID
Computes a digest of the payload by:
The SHA-256 hash of the canonicalized payload, represented as a byte array.
OrderInstructions type guard
OrderStatus type guard
returns the message as a json object. Automatically used by JSON.stringify
method.
Validates the message structure and verifies the cryptographic signature
Signer's DID
if the message signature is invalid
if the message structure is invalid
see Crypto.verify
Static
createCreates a quote message with the given options
options to create a quote
Static
generateGenerates a unique id with the message kind's prefix
Static
parseParses a json message into a Quote
the quote to parse
The parsed Quote
if the quote could not be parsed or is not a valid Quote
Sent by the PFI in response to an RFQ. Includes a locked-in price that the PFI is willing to honor until the quote expires