Choose a flow, run it against a test mint, and compare the request, response, wallet state, and cashu-ts code. Test shortcuts are labelled where they appear.
Primary mint: https://nofee.testnut.cashu.spaceFallback: https://testnut.cashu.spaceLive calls and test-only steps are labelled in the timeline.Open starter kit
How it works
Start here.
1. Choose a flowUse the recipe cards below. Create wallet is the clean first run.
2. Press runThe timeline shows each request and response.
3. Copy the codeThe code panel shows the cashu-ts calls and the state your app owns.
Choose a flow
These cards are clickable.
Inputs
Receive token
Mint: https://nofee.testnut.cashu.space
Mint a fresh token in the background, receive it live, then store receiver proofs.
Ready. Run this to mint a fresh token, receive it live, and inspect receiver-side proofs.
Code
cashu-ts code
receive-token.ts
Kept close to the cashu-ts docs. Add your own storage functions where shown.
import { Wallet } from '@cashu/cashu-ts'
const mintUrl = "https://nofee.testnut.cashu.space"
const token = "cashueyJ0b2tlbiI6W3sibWludCI6Imh0dHBzOi8vbm9mZWUudGVzdG51dC5jYXNodS5zcGFjZSIsInByb29mcyI6W3siYW1vdW50Ijo4LCJpZCI6IjAwOWExZjI5MzI1M2U0MWUiLCJzZWNyZXQiOiJkZW1vLXNlbmQtMSIsIkMiOiIwMnNlbmQxIn0seyJhbW91bnQiOjIsImlkIjoiMDA5YTFmMjkzMjUzZTQxZSIsInNlY3JldCI6ImRlbW8tc2VuZC0yIiwiQyI6IjAyc2VuZDIifSx7ImFtb3VudCI6MSwiaWQiOiIwMDlhMWYyOTMyNTNlNDFlIiwic2VjcmV0IjoiZGVtby1zZW5kLTMiLCJDIjoiMDJzZW5kMyJ9XX1dfQ"
const wallet = new Wallet(mintUrl)
await wallet.loadMint()
const proofs = await wallet.ops.receive(token).run()
await saveProofs(proofs) // your app persistence function
Workings
Request / response timeline
4 steps
Step 1
Accept pasted token
EXAMPLE
LOCAL receiveToken(token)
When run with the default token, the API mints a fresh live token first and uses that instead of this static example.