SwapParams
Extends
Section titled “Extends”Properties
Section titled “Properties”give:
string
Token the user gives: a symbol (USDM, NIGHT) or a raw type.
Inherited from
Section titled “Inherited from”want:
string
Token the user receives.
Inherited from
Section titled “Inherited from”amount
Section titled “amount”amount:
string|bigint
What the user gives, base units.
Inherited from
Section titled “Inherited from”receiver
Section titled “receiver”receiver:
Receiver
Where the user receives: unshielded (hex) for NIGHT, shielded ("cpk:epk") for USDM.
Inherited from
Section titled “Inherited from”minWantAmount?
Section titled “minWantAmount?”
optionalminWantAmount?:string|bigint
Inherited from
Section titled “Inherited from”source?
Section titled “source?”
optionalsource?:string
The funds' unshielded source address (hex), for screening on the sell side.
Inherited from
Section titled “Inherited from”settlements?
Section titled “settlements?”
optionalsettlements?: ("solver_offer"|"user_offer")[]
What the wallet can do; both by default.
Inherited from
Section titled “Inherited from”minWaitMs?
Section titled “minWaitMs?”
optionalminWaitMs?:number
Inherited from
Section titled “Inherited from”maxWaitMs?
Section titled “maxWaitMs?”
optionalmaxWaitMs?:number
Inherited from
Section titled “Inherited from”minDeadlineMs?
Section titled “minDeadlineMs?”
optionalminDeadlineMs?:number
Inherited from
Section titled “Inherited from”requestId?
Section titled “requestId?”
optionalrequestId?:string
Idempotency key: a repeated requestId is refused (409).
Inherited from
Section titled “Inherited from”payFees?
Section titled “payFees?”
optionalpayFees?:boolean
See ExecuteOptions.payFees (default true).
onProgress?
Section titled “onProgress?”
optionalonProgress?: (p) =>void
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
p |
SwapProgress |
Returns
Section titled “Returns”void