@lelantos-org/sdk / x402 / PayingFetch
Interface: PayingFetch()
Defined in: @lelantos-org/sdk/dist/x402/fetch.d.ts:39
A fetch that settles 402s.
ts
PayingFetch(input, init?): Promise<Response>;Defined in: @lelantos-org/sdk/dist/x402/fetch.d.ts:40
A fetch that settles 402s.
Parameters
| Parameter | Type |
|---|---|
input | RequestInfo | URL |
init? | RequestInit |
Returns
Promise<Response>
Methods
spent()
ts
spent(): Map<bigint, bigint>;Defined in: @lelantos-org/sdk/dist/x402/fetch.d.ts:42
Circuit units spent so far, keyed by MASP asset id.
Returns
Map<bigint, bigint>