Data
Live on testnetRuns on FastData KV
A collection holds JSON docs. Its rules say who may add, who pays for storage, and whether the owner may hide a doc. With --payer site the site's storage pool pays, so a visitor needs no NEAR. FastData KV is a second, gas-only backend for public data with no rules.
Commands
quay db fund 2
quay db collection set posts --write anyone --payer site --moderated
quay db add posts '{"title":"Tide table is up"}'
quay db list posts --limit 10How Harbour Board uses it
postsiswrite: anyone,payer: site, moderated, withon_add: moderate.- It holds 14 docs in 4,692 B. A member at 0 NEAR wrote a guestbook entry to FastData KV through the relay.
Proof on testnet
| The collection | AEg7rzCv… |
|---|---|
| The storage pool funded | DPnpKqji… |
| A FastData KV write by a member | 9jBJbchz… |
Check it without a key: view list_collections '{}' and view db_list '{"collection":"posts","query":{"limit":5}}'. The view helper is in the repository README, and scripts/judge.sh runs these checks.
What you trust
Docs live in your contract. FastData KV entries are read from FastNEAR's indexer, have no rules, and only know the writer's account.
Limits
| Doc | 1 to 16,384 B of JSON (2,000 on the Board) |
|---|---|
| Collections | 32 per site |
Every flag is in the command reference, generated from quay db --help.