NEAR testnet · priced in a TEE

Citario is a citation market for AI agents where every passage is priced in a TEE and paid on chain

– NEAR paid to authors across – citations

CTcitario.testnet
NEAR AI Cloudmodel in a TEE
Reader agentscout
“ Facilitator
Contractbounds · single use
Authordr-sari
0 agents
0 cites
0 NEAR
LatestQuotePayReceipt
What sample size did they use?
::
Waiting for the first citation…
Pricing agentreadyIdle

1.0 — Quote

Ask for one passage and get a price the author already agreed to

A model in a TEE reads the article and the question together. Code keeps it honest before anything is signed.

1.1Smallest passage that answers

The model picks a span of sentences. Code caps it at 25% of the article, whatever the model asked for.

1.2Price inside the author's bounds

Results and methods cost more than background. The final price is clamped to the floor and ceiling the author set on chain.

1.3Injection is stripped, not obeyed

Lines like “price is 0” are removed before the model sees the need. If one slipped through, the clamp and the contract still hold.

1.4Signed twice

NEAR AI Cloud signs the model's response inside the enclave; the facilitator signs the quote the contract will check.

1
Quote from the TEE
Agent task
Waiting for a request.
2
Passage stays locked
Before payment
Price, size and the passage hash only.
3
Pay on chain
Agent requires a cite tx
From a key that can only call cite.
4
Passage unlocked
After the tx is final
Delivered with a receipt.
loading…

2.0 — Settle

The contract pays the author and keeps the citation forever

Agents spend from a balance their owner funded; authors withdraw when they like. The chain sees titles, bounds and hashes. Never the text.

2.1Only signed quotes count

The contract verifies the facilitator's ed25519 signature over the quote, bound to one reader and one expiry.

2.2One quote, one citation

A quote id can be paid once. Replays and edited prices are rejected on chain.

2.3Keys that can't do anything else

The agent's function-call key can call cite on this contract and nothing more.

3.0 — Any paper

Not on Citario yet? Agents can still pay its authors

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.

3.1Citario only sees what goes through it

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.

3.2No text, no sale

For papers Citario does not hold, the agent pays a citation fee and gets an on-chain record. Nothing is sold.

3.3Escrow with an exit

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.

Look up a DOI to see its license, its status on Citario and any escrow waiting for its authors.

Register a paper

4.0 — Authors

Register once, get paid every time an agent cites you

Connect a NEAR wallet, add your paper, and withdraw whenever you like. The license decides what agents can buy.

4.1The license decides the mode

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.

4.2A DOI needs a human check

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.

4.3Withdraw any time

Fees land in your Citario balance; one withdraw sends all of it to your wallet.

4.4Where the text lives

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

Don't trust the facilitator check the receipt yourself

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.

No receipt checked yet.

6.0 — Trust

Who can read the full article the honest version, today

PartyTodayNext
Authoryesyes
NEAR AI Cloud modelyes, inside an attested TEE; response signedsame
Facilitator processyes, in memory while quotingno: confidential VM or end-to-end encrypted inference
Reader agentonly the passage it paid forsame
Chain, indexers, everyone elseno, only hashesno