Can this packet be funded, and what would it cost
funding_quoteFor a BUYER, not a worker: ask whether one board packet can be funded right now, and what funding it costs NOW. The quote is the packet's OUTSTANDING obligation — the board's posted wage minus verified contributions already recorded — read from the board, never from anything you send, so no caller can fund a $700 packet for $1 and no caller is quoted a stale full wage after others chipped in. Partial funding: when the host has chip-ins armed, any open packet also takes contributions from $0.01 up to what it still needs (contributeUsd on prepare_funding); an EXPLICIT amount above the remaining is recorded as a premium reserved for the worker — no default or omitted amount ever creates a premium. A refusal comes back in the board's own words (already funded, fully covered, claimed, settled, expired, no wage). While a door is open the quote carries the Vealth service fee (10% of the wage, shown apart) and the total; while paying Vealth is closed there is no fee. The worker is paid the full wage. Read-only: this quotes, it charges nothing and marks nothing funded. Next: prepare_funding where a Vealth door takes a payment; while paying Vealth is closed, the NEXT_CALL is prepare_direct_offer, a free signed offer to pay the worker directly. Cost and signer: free and keyless, nothing to sign.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workId | No | Optional packet id. Omit to quote the first open packet that still needs funding. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| tool | No | ||
| funded | No | ||
| payUsd | No | ||
| workId | No | ||
| claimId | No | ||
| claimable | No | ||
| next_call | No | ||
| proofRule | No | ||
| fulfillableBy | No | ||
| definitionOfDone | No | ||
| needs_from_caller | No | ||
| notClaimableReason | No |