Skip to content

LegChecker

LegChecker = (leg, expect) => void | Promise<void>

Checks a solver's leg before the wallet balances it, and throws when it fails. The SDK cannot decode a transaction itself (it runs in browsers without the ledger): the app supplies the check, for example checkSolverLeg of @si/ledger-kit. A client without one does not settle by solver_offer.

Parameter Type
leg { tx: string; offer?: string; openings: CoinOpening[]; }
leg.tx string
leg.offer? string
leg.openings CoinOpening[]
expect LegExpectation

void | Promise<void>