RelayRefusal
Defined in: protocol-swap2-relay/src/order.ts:73
code names the check; reason (a Swap2RefusalReason from @anywalletkit/protocol-swap2-core) is the stable
classification an app switches on. It is set where the refusal is raised, so one code can carry different reasons
(an order deadline too far ahead is policy_refused, one already used up is quote_expired); a malformed request
from the caller (a programming error) carries none.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RelayRefusal(
code,detail,reason?):RelayRefusal
Defined in: protocol-swap2-relay/src/order.ts:76
Parameters
Section titled “Parameters”detail
Section titled “detail”string
reason?
Section titled “reason?”Swap2RefusalReason
Returns
Section titled “Returns”RelayRefusal
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”
readonlycode:RelayRefusalCode
Defined in: protocol-swap2-relay/src/order.ts:74
reason?
Section titled “reason?”
readonlyoptionalreason?:Swap2RefusalReason
Defined in: protocol-swap2-relay/src/order.ts:75