ORA
TwitterDiscordWebsiteMirror
  • ✨Quick Start
  • 🔘Introduction
    • About ORA
    • Use Cases
    • Key Milestones
  • 🌐Foundation
    • ORA Coin ($ORA)
    • Tokenomics
      • Interacting with ORA’s Tokenomics
  • 🤖Onchain Perpetual Agent (opAgent)
    • opAgent
  • 🔮Onchain AI Oracle (OAO)
    • Onchain AI Oracle
      • Build with AI Oracle
        • Callback Gas Limit Estimation
        • Advanced Usages of AI Oracle
        • Optimistic Machine Learning (OPML)
      • Onboard AI Models
      • Non-Developer Guides
      • References
        • AI Settlement Oracle
        • Example: Fortune Teller
    • Node Operator Guide
      • Tora Validator Client
      • Tora Launcher - Tutorial
      • Tora CLI - Tutorial
      • Troubleshooting
    • Fraud Proof Virtual Machine (FPVM) and Frameworks
      • opML
      • opp/ai
      • Comparison of Proving Frameworks
  • 💠Resilient Model Services (RMS)
    • Overview
    • ORA API
    • Model and Pricing
    • Technology
  • 🪙INITIAL MODEL OFFERING (IMO)
    • IMO Overview
    • IMO Participation Rules
    • ERC-7641: Intrinsic RevShare Token
    • ERC-7007: Verifiable AI-Generated Content Token
  • 📚Resources
    • Resources
    • FAQ
    • Glossary
    • Legal
      • Privacy Policy
      • Terms of Use
  • 📧Get in touch
    • Twitter
    • Telegram
    • GitHub
Powered by GitBook
On this page
  • Using AI Oracle
  • Retrieve Historical AI Inference

Was this helpful?

Export as PDF
  1. Onchain AI Oracle (OAO)
  2. Onchain AI Oracle

Non-Developer Guides

Easy to use guides for non-developers

PreviousOnboard AI ModelsNextReferences

Last updated 7 months ago

Was this helpful?

Using AI Oracle

As a user, to interact with AI Oracle, you can:

  • Use the frontend- view our

  • Directly via the Prompt contract on Etherscan

Via Etherscan

  1. In Prompt contract's Read Contract section, call estimateFee with specified modelId.

  1. In Prompt contract's Write Contract section, call calculateAIResult with fee (converted from wei to ether), prompt, and modelId.

  1. In the AI Oracle contract, look for the new transaction that fulfills the request you sent.

  1. In Prompt contract's Read Contract section, call getAIResult with previous modelId and prompt to view the AI inference result.

Retrieve Historical AI Inference

If you want to retrieve your historical AI inference (eg. AIGC image), you can find them on blockchain explorer:

  1. Access your requestId in "Logs" tab Example's case: "1928".

Find your transaction for sending AI request, and enter the "Logs" tab. Example tx:

In , look for the Invoke Callback transaction with the same requestId. Normally, this transaction will be around the same time as the one in step 1. To filter transactions by date, click "Advanced Filter" and then the button near "Age".

Find the transaction for AI inference result, and enter the "Logs" tab. Example tx:

Access output data. Example's case: "QmecBGR7dD7pRtY48FEKoeLVsmBTLwvdicWRkX9xz2NVvC" which is the IPFS hash that can be )

🔮
https://etherscan.io/tx/0xfbfdb2efcee23197c5ea8487368a905385c84afdc465cab43bc1ad01da773404#eventlog
OAO's smart contract
https://etherscan.io/tx/0xfbfdb2efcee23197c5ea8487368a905385c84afdc465cab43bc1ad01da773404#eventlog
accessed with IPFS gateway
AI.ORA.IO
video tutorial