Try Pay-to-Play with a local wallet
Create a test channel and deposit 100 wei. You will use public fixture accounts on a disposable local blockchain, not your real wallet.
- Run on
- Your workstation, from the source checkout.
- Requires
- Development prerequisites, a local Docker context and Chrome or Chromium.
- Changes
- Local containers, temporary chain state and a dedicated browser profile. No public-chain transaction.
- Success
- A successful deposit receipt and a 100-wei balance in the selected test position.
1. Start the app — terminal A
Run from the source checkout. Replace your-local-context here and in the later commands with the same local engine:
make dapps/deps/install DOCKER_CONTEXT=your-local-context &&
make js/deps/install DOCKER_CONTEXT=your-local-context &&
make pay-to-play/local/demo/gui/up \
DOCKER_CONTEXT=your-local-context COMPOSE_PROJECT_NAME=cam-demoLeave the foreground command running. It deploys a fresh app on Anvil chain 31337 and prints a complete viewer URL, normally at http://127.0.0.1:5175. A fresh chain has only reserve channel 0; do not reuse an assumed service-channel ID from an earlier run.
2. Open the test browser and attach — terminals B and C
Follow the shared isolated-browser step in terminal B. Open terminal A's entire printed URL in that browser, including its query parameters. Do not use a profile containing a real wallet.
In terminal C, from the same checkout:
make viewer/local/fixture-wallet/attach \
DOCKER_CONTEXT=your-local-context COMPOSE_PROJECT_NAME=cam-demo \
FIXTURE_WALLET_APP=pay-to-play \
CDP_ORIGIN=http://127.0.0.1:9222Select the matching tab if prompted, then connect the fixture wallet in the app. Keep both A and C running. The role selector starts on customer. The shared guide explains browser confirmation, reloads and detachment.
3. Create a channel as admin
Select admin in the fixture wallet and wait for the app to update. Open channel creation. For this local experiment, use the admin's displayed address as both payee and collector and choose a 60-second claim period.
Review the call, choose Send with wallet and confirm in the browser dialog. Read the channel ID from the successful receipt's ChannelCreated event, not from an observed channel count.
4. Deposit as customer
Select customer and wait for the refreshed view. Open a balance using that customer's displayed address and the channel ID from the receipt. Choose Deposit and enter 100 in the wei/base-unit input, not 100 whole coins.
Review, send and confirm in the browser. Check the successful receipt and the resulting 100-wei balance. The six task destinations remain visible; Balance is the overview. Funding does not authorize a voucher payment: registering a key and signing a voucher are separate tasks.
5. Stop what you started
Stop terminal C first to remove the injected wallet without closing the tab. Stop terminal A and let cleanup finish. To explicitly remove this demo:
make pay-to-play/local/demo/gui/down \
DOCKER_CONTEXT=your-local-context COMPOSE_PROJECT_NAME=cam-demoClose the dedicated browser. Its profile remains on disk; the fixture's chain state is disposable. Closing a tab alone does not stop the app. For wallet/role mismatches, use the shared attachment guide; for a persistent website, use Deploy the viewer.
Source: demo startup and fixture send confirmation.