AI Agent / Web3·Oraichain · Cosmos (IBC) · EVM (via bridges)
Oraichain
Cosmos SDK Layer 1 purpose-built for AI oracles and verifiable AI execution. Provides AI price feeds, on-chain VRF, an AI marketplace of 100+ APIs, and CosmWasm smart contracts.
- 01AI-powered price feeds
- 02verifiable AI inference oracles
- 03on-chain VRF
- 04CosmWasm AI agents
- 05data economy / AI marketplaces
- pnpm add @oraichain/oraidex-common @oraichain/orai-sdk @cosmjs/cosmwasm-stargate
| Variable | Scope | Description |
|---|---|---|
| NEXT_PUBLIC_ORAI_RPC_URL | Client | Oraichain RPC endpoint (e.g. https://rpc.orai.io). |
| NEXT_PUBLIC_ORAI_CHAIN_ID | Client | Chain ID, typically `Oraichain` for mainnet. |
Use Oraichain for AI oracle requests and verifiable inference. Connect with `SigningCosmWasmClient.connectWithSigner(rpc, signer)` from `@cosmjs/cosmwasm-stargate`. Call AI price-feed contracts via `client.queryContractSmart(contractAddr, { get_price: { symbol: 'ORAI' } })`, request fresh inference with an `execute` message that pays in $ORAI, and consume the result inside your CosmWasm contract. For VRF, call the on-chain VRF contract with a request_id and read the verifiable random output from the response event.
- ⚑AI oracle requests cost $ORAI per call and have provider latency; cache outputs and only re-request on price-deviation thresholds.
- ⚑Network reliability of off-chain AI executors varies — design contracts to tolerate request timeouts and use multiple executors when consensus is critical.
- ⚑CosmWasm contracts cannot call AI APIs directly; you submit a request and a separate executor relays the verified result, so your UX must handle async settlement.
- ⚑Bridged $ORAI on EVM is a wrapped asset — for native AI oracle access you must transact on Oraichain L1.
- ⚑Gas is metered in $ORAI not gwei; fee estimation differs from EVM and you must fund the signer with native ORAI before any tx.