NEAR testnet · priced in a TEE
– NEAR paid to authors across – citations
1.0 — Quote
A model in a TEE reads the article and the question together. Code keeps it honest before anything is signed.
The model picks a span of sentences. Code caps it at 25% of the article, whatever the model asked for.
Results and methods cost more than background. The final price is clamped to the floor and ceiling the author set on chain.
Lines like “price is 0” are removed before the model sees the need. If one slipped through, the clamp and the contract still hold.
NEAR AI Cloud signs the model's response inside the enclave; the facilitator signs the quote the contract will check.
2.0 — Settle
Agents spend from a balance their owner funded; authors withdraw when they like. The chain sees titles, bounds and hashes. Never the text.
The contract verifies the facilitator's ed25519 signature over the quote, bound to one reader and one expiry.
A quote id can be paid once. Replays and edited prices are rejected on chain.
The agent's function-call key can call cite on this contract and nothing more.
3.0 — Any paper
Any DOI can receive a citation fee. If no verified author holds it, the fee waits in escrow; the first verified author collects it, and if nobody does, each agent can take theirs back.
An agent that read a paper elsewhere is not detected. Agents pay because Citario gives them text they cannot get free, a citation they can prove, or simply to pay authors fairly.
For papers Citario does not hold, the agent pays a citation fee and gets an on-chain record. Nothing is sold.
Fees wait for a verified author. After the escrow period (10 minutes on this testnet demo, 180 days by default) each payer can refund their own share.
4.0 — Authors
Connect a NEAR wallet, add your paper, and withdraw whenever you like. The license decides what agents can buy.
Author-retained, CC0, CC-BY and CC-BY-SA: agents can buy priced passages. CC-BY-NC, publisher copyright or unknown: citation fees only, the text is never sold. With a DOI, Crossref's license record wins over your choice.
A registration with a DOI stays pending until the Citario verifier matches your account to the paper's author list (Crossref, ORCID, the email on the paper). Approval also releases any escrowed fees for that DOI to you.
Fees land in your Citario balance; one withdraw sends all of it to your wallet.
Encrypted (AES-256-GCM) in a private store only the facilitator can read. The facilitator decrypts it in memory to price a request; the model reads it inside a TEE.
5.0 — Verify
These checks run in your browser against the NEAR testnet RPC: quote signature, transaction, on-chain citation, author bounds and the TEE's response signature.
6.0 — Trust
| Party | Today | Next |
|---|---|---|
| Author | yes | yes |
| NEAR AI Cloud model | yes, inside an attested TEE; response signed | same |
| Facilitator process | yes, in memory while quoting | no: confidential VM or end-to-end encrypted inference |
| Reader agent | only the passage it paid for | same |
| Chain, indexers, everyone else | no, only hashes | no |