Skip to main content

Private LLM Oracle

Before You Begin
1
Environment
2
Wallet
A wallet with MetaMask or similar for testnet development
1
Clone & Setup
terminal
$git clone https://github.com/VIALabs-io/quickstart-oracle.git && cd quickstart-oracle
$npm install
$cp .env.example .env
Configure Environment
Edit the .env file and add:
  • Your private key for deploying contracts (PRIVATE_KEY=)
  • Your OpenAI API key (OPENAI_API_KEY=) or local LLM endpoint (LLM_API_ENDPOINT=)
2
Deploy Your Oracle Contract
terminal
$node scripts/deploy.js
3
Run the Oracle Node
terminal
$node oracle/index.js
4
Run the Frontend Dashboard
terminal
$cd frontend
$npm install
$npm run dev
Complete
You've successfully built and deployed a cross-chain LLM oracle that connects smart contracts to AI capabilities. The dashboard allows you to interact with your oracle, test prompts, and visualize AI-driven insights for blockchain applications.