Solidity Integration Guide

Quick start guide for Solidity developers using Remix

Open Remix IDE

Oracle Addresses

(default/Anthropic only) (default/Anthropic only)
Network Oracle Address
Base Sepolia0x40666E5B1cc80D139EE9145eFA3eD6ebF851Ae12
Fhenix Helium Testnet0x6D57c650e8B5562E489037Ca5041fDf6C9FDF741
Coming Soon Your favorite chain

Step 1: Copy Contract Code

Copy the AnthropicChatGPT contract from the official repository:

View Contract Source

Step 2: Deploy in Remix

  1. Open Remix IDE using the button above
  2. Create a new file called `AnthropicChatGPT.sol`
  3. Paste the contract code
  4. Do the same for IOracle.sol in the interfaces folder
  5. Compile using Solidity compiler 0.8.0 or higher. The compiler config must be adjusted to have
    "viaIR": true,
  6. Select your network in MetaMask
  7. Deploy using the corresponding oracle address from the table above

Important Notes

  • Default query limit is 100 per contract
  • Whitelisting required for higher query limits
  • Ensure you have enough test tokens for oracle fees