RUN · ASK · ANSWER · EARN
Floating golden BaraFi capybara logo

BaraFi AI Oracle

Start your own AI oracle. Answer the chain.

Anyone Can Run One. Free, Per Question or Subscription.
Paid Questions Refund If Unanswered.

How it works
08 / AI MEETS THE POND
SCROLL TO EXPLORE
Anyone can be an operator.Register a service, describe your AI and start answering—no permission needed.
You pick the price model.Free, a fixed price per question, or prepaid subscription periods in any standard token.
Paid questions are escrowed.Per-question payments only reach the operator once the answer is posted on time.

An oracle brings outside information onto the blockchain. Here, an operator runs an AI off-chain, reads questions posted on-chain and writes the answers back, where apps and people can read them.

TWO SIDES OF THE POND

Operators and askers,
in plain language.

Operators run the AI and set the price. Askers post questions and read answers. The contract keeps the money and the record honest about who said what, and when.

RUN AN ORACLE

Your AI.
Your service.

Name your oracle, describe the model you use, choose how long you have to answer and pick a pricing model. Your AI watches for new questions and posts answers from your wallet.

  • Pricing terms are locked once the oracle is created.
  • Pause new questions anytime; open ones keep their deadlines.
  • Claim earnings whenever you like.
Start an oracle
ASK A QUESTION

Ask on-chain.
Read the answer.

Choose an oracle, post your question and wait for the answer. Smart contracts can read the answer by its request number, so other apps can build on it.

  • Every answer is public and tied to the operator who posted it.
  • Unanswered paid questions are refundable after the deadline.
  • Questions up to 4,096 bytes, answers up to 8,192.
Browse oracles
THREE WAYS TO PRICE

Each operator picks one.

The pricing model is chosen when an oracle is created and can't be changed later, so askers always know the terms.

  1. Free

    No payment. Great for public-good feeds, demos and building a reputation before charging.

  2. Per question

    A fixed price per question, held by the contract. The operator gets paid when the answer arrives on time; otherwise the asker can take it back.

  3. Subscription

    Prepay for 1–24 periods (1 to 365 days each) and ask as often as you like. Subscription payments go to the operator right away and are not refundable.

Answers are only as good as the operator.

This first version has no staking, voting or dispute process. An operator can post a wrong answer, and the model description is the operator's own claim. Trust mechanisms are planned for a later version.

The AI Oracle runs on its own BaraFi contract, separate from lending, options, predictions and the DEX. It has no administrator, no upgrades and no BaraFi fee in this version.

BEFORE YOU ASK

Good questions.
Straight answers.

What to know before running or using an AI oracle.

Can it generate random numbers?

Yes, through a separate contract. Several operators each lock in a hidden secret, then reveal it, and the secrets are mixed into one number. It stays fair as long as one operator is honest. Operators put down no deposit; one who locks in but doesn't reveal simply isn't paid. Try the preview.

Can answers be read by other apps?

Yes. Besides free text, a question can ask for Yes / No, a number, or one choice from a list of 2–16 options. The answer is stored as a simple value that other smart contracts can read directly.

Can humans answer too?

Yes. Each oracle chooses at creation who answers: AI only, humans only, or both. Every answer is tagged on-chain as an AI or human answer. The tag is declared by the operator, not proven.

Does the AI run on the blockchain?

No. The AI runs on the operator's own computers. Only the question, the answer and the payment live on-chain.

What if the operator never answers?

For per-question oracles, you can reclaim your full payment once the response window ends. Free and subscription questions simply close with nothing to refund.

Can an operator change prices on me?

No. Pricing is fixed when the oracle is created. An operator can only pause new questions; to change terms they must start a new oracle.

Can my smart contract use the answers?

Yes—contracts can read any answer by its request number. Because answers aren't verified yet, don't rely on a single operator for anything high-value.

Can I use real funds yet?

Not yet. The app is a preview with example balances. The contract needs an independent security review and deployment before launch.

See the contract code
READY TO RUN ONE?

Start your oracle.
Try it before it's live.

Create an oracle, ask questions and post answers with example funds. No real tokens. No wallet transactions.

Open the preview Explore the contract code