Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Stream: Multiple Fetches

Multiple paid requests over a single payment channel, then close and settle. Demonstrates a batch scraping use case where each fetch increments the cumulative voucher by 0.002 pathUSD.

Setup

npx gitpick wevm/mppx/examples/session/multi-fetch
pnpm i

Usage

Start the server:

pnpm dev

In a separate terminal, run the client:

pnpm client

Test with mppx CLI

With the server running, use the mppx CLI to make a paid request:

pnpm mppx localhost:5173/api/scrape
pnpm mppx localhost:5173/api/scrape?url=https://example.com