Payments
Live, test USDC onlyRuns on
A product has a price in NEAR or in one NEP-141 token, and a grant: pin a doc for a time, or record a receipt. Receipts are a system collection that routes can read.
Commands
quay products set pin --name "Pin for a day" --price 0.1 --grant pin --pin-seconds 86400 quay products token usdc.fakes.testnet quay products list quay receipts
How Harbour Board uses it
- Post 5 was pinned with 0.1 NEAR and post 6 with 0.1 test USDC,
usdc.fakes.testnet, which anyone can mint. Circle USDC is not used. - A pin lasts 24 hours, so the order on
/changes when it ends. The two receipts stay.
Proof on testnet
| The pin product | BzpjbDMx… |
|---|---|
| Test USDC as the token | 3Gt1S2QF… |
Check it without a key: view list_receipts '{"limit":10}' shows one NEAR receipt and one test-USDC receipt. The view helper is in the repository README, and scripts/judge.sh runs these checks.
What you trust
Payments settle on your contract. The token contract is whichever NEP-141 you name.
Limits
| Token | One accepted token per site, set with quay products token |
|---|
Every flag is in the command reference, generated from quay products --help.