Skip to content
docs

parseRelayOrder

parseRelayOrder(raw): RelayOrder

Defined in: protocol-swap2-relay/src/order.ts:201

Read an order as the API gives it (protocol.v2.orderData, already JSON-parsed) into the one typed form the id, the signature and every check are computed from. Anything that is not exactly the documented shape is refused (order-malformed); keys the type does not have are ignored — they are outside the hash, and nothing reads them.

unknown

RelayOrder