serveRelay
serveRelay(
solver,client,opts):object
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
solver |
MakerSolver |
- |
client |
RelayClient |
- |
opts |
{ price: Pricer; maxSponsorDust?: bigint; maxFillDust?: bigint; onQuote?: (req, q, ms) => void; onFill?: (fillId, requestId) => void; acceptFilter?: (a) => boolean; } |
- |
opts.price |
Pricer |
- |
opts.maxSponsorDust? |
bigint |
- |
opts.maxFillDust? |
bigint |
Most DUST one fill job may cost us (default: maxSponsorDust, else 10 DUST). |
opts.onQuote? |
(req, q, ms) => void |
- |
opts.onFill? |
(fillId, requestId) => void |
A quote of ours became a fill (accept or job): fill id → request id. |
opts.acceptFilter? |
(a) => boolean |
Return false to ignore an accept (fade drills only: the relay penalises it). |
Returns
Section titled “Returns”object
stop()
Section titled “stop()”stop():
void
Returns
Section titled “Returns”void