You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/typescript/clients/batch-settlement/README.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
3
3
Fetch-based client that pays for a sequence of `GET /api/generate` requests over a single payment channel using the **batch-settlement** EVM scheme. The first request opens the channel with a deposit; subsequent requests pay with a fresh cumulative voucher.
4
4
5
-
Optionally requests a cooperative refund on the last call (`REFUND_ON_LAST_REQUEST=true`), which signals the server to claim outstanding vouchers and return the unclaimed balance.
6
5
7
6
See the [scheme specification](../../../../specs/schemes/batch-settlement/scheme_batch_settlement_evm.md) and the [scheme README](../../../../typescript/packages/mechanisms/evm/src/batch-settlement/README.md) for protocol details.
8
7
@@ -50,4 +49,4 @@ pnpm start
50
49
|`CHANNEL_SALT`| no |`bytes32` salt for channel id; change to open a fresh channel |
51
50
|`STORAGE_DIR`| no | Persist client session state (defaults to in-memory) |
52
51
|`NUMBER_OF_REQUESTS`| no | How many paid requests to issue (default 3) |
53
-
|`REFUND_ON_LAST_REQUEST`| no | If `true`, request a cooperative refund on the last call|
52
+
|`REFUND_AFTER_REQUESTS`| no | If `true`, issue a self-contained refund via `scheme.refund(url)` after the request loop|
0 commit comments