Eternal AI
  • The AI layer for the new internet
  • eternals
    • What are Eternals?
    • Specification
    • Proof-of-Compute
  • The new internet, AI-powered
    • Bitcoin, AI-powered
      • Eternals on Bitcoin
      • BitAI Virtual Machine
      • Run a BitAI node
    • Ethereum, AI-powered
    • Solana, AI-powered
  • smart contracts, ai-powered
    • How to use onchain LLM
    • Onchain AI composability - AI Powered Wallet
    • Onchain AI Composability - AI Powered Gaming With Chess
  • neurons
    • What are Neurons?
    • Neuron Device
    • Virtual Neurons
      • Solo Neuron
      • Neuron as a Service
      • Pooled Neuron
  • AI CHAINS
    • What are AI chains?
    • Bittensor and existing concepts
    • Base layer: Bitcoin vs Bittensor
    • AI chains: Bitcoin L2s vs Subnets
    • Apps: Smart contracts vs APIs
  • EAI
    • Utilities
    • Tokenomics
  • fully onchain ai models
    • Architecture
    • Deploy your first fully onchain AI
      • Set up your development environment
      • Create a self-custody wallet
      • Train an AI model in Keras
      • Transform the Keras model to Eternal
      • Send, receive, and trade Eternals
    • Progress
    • Misc
      • Transforming an AI Model into an Eternal
      • Standardized data formats
      • Specification
        • Layers
        • Models
  • Decentralized Inference API
    • API
      • API Key
      • Completions
      • Chat completion
      • Create a dagent
      • Get deposit address
      • Get dagent info
      • Agent Completion
    • Onchain Models
    • Tutorials
      • Build unstoppable Eliza agents
      • Build unstoppable Rig agents
      • Build unstoppable ZerePy agents
      • Decentralized ChatGPT
      • Don't Trust, Verify
      • Adjust your dagent personality
      • Launch on Twitter
      • Chain of thought
      • Build a dagent as a service with EternalAI API
    • Open Source
      • Architecture
      • Installation
Powered by GitBook
On this page
  • Eternal AI as a new Bitcoin metaprotocol
  • Eternals as new Bitcoin-native digital assets
  • BitAI as a new Bitcoin indexer
  • Eternal Smart Contracts
  1. The new internet, AI-powered
  2. Bitcoin, AI-powered

Eternals on Bitcoin

PreviousBitcoin, AI-poweredNextBitAI Virtual Machine

Last updated 6 months ago

Eternal AI as a new Bitcoin metaprotocol

Metaprotocols have been powerful tools for extending Bitcoin's functionality. is the non-fungible token metaprotocol on Bitcoin, is the fungible token metaprotocol on Bitcoin, and lets developers write smart contracts on Bitcoin.

And now, Eternal AI is the metaprotocol for AI on Bitcoin.

Eternals as new Bitcoin-native digital assets

Metaprotocols often introduce new Bitcoin-native digital assets. Ordinals introduced NFTs on Bitcoin. Runes introduce tokens on Bitcoin. BVM introduced dapps on Bitcoin.

And now, Eternal AI has introduced Eternals — AIs living forever on Bitcoin.

Technically, Eternals are similar to Ordinals in many ways. They both embed data into Taproot transactions, do not require a sidechain or Bitcoin L2, and work without any changes to Bitcoin.

However, there is one big difference: Eternals are AIs on Bitcoin, while Ordinals are JPEGs on Bitcoin.

BitAI as a new Bitcoin indexer

Metaprotocols often require external indexers on top of Bitcoin. Eternal AI also has an indexer that scans every new Bitcoin block for transactions related to Eternal AI.

BitAI is the indexer of Eternal AI. Unlike Ordinals indexer, BitAI is a Turing-complete virtual machine that enables writing Solidity smart contracts on Bitcoin.

Eternal Smart Contracts

Eternals are cryptographically secure AI models programmed as smart contracts. Their contracts and all related transactions are inscribed on Bitcoin via BitAI.

Here are the key fields in the smart contract:

struct Eternal {
    uint256 fee;
    bytes[] sysPrompt;
}

It contains two main functions: mint for creating a new Eternal and infer for performing decentralized inference on a prompt.

function mint(address _to, string calldata _uri, bytes calldata _data, uint _fee) external {}
function infer(uint256 _agentId, bytes calldata _calldata, string calldata _externalData) external {}

Ordinals
Runes
BVM
Learn more about BitAI Virtual Machine →
Learn more about the Eternal specification →