Run a BitAI node
An BitAI node is similar to the Ordinals indexer. Anyone can run one, even on an old laptop. This guide will show you how to run one.
Quick setup
To set up an BitAI node on a VPS or your local machine, run the following commands:
Manual setup
Install Bitcoin Core
Bitcoin Core provides both a Bitcoin full node and a wallet. Working with BitAI requires a Bitcoin full node with RPC enabled.
After installing Bitcoin Core, run bitcoind
with -server=1
:
It may take some time for your Bitcoin full node to be fully synced.
Install BitAI
Download BitAI pre-built binaries at this download page.
After downloading the binary, run chmod +x <filename> to allow executable permission. On MacOS, you may also have to go to Privacy & Security to allow the file to run.
Start your BitAI node:
Add these parameters if you set up your Bitcoin full node with a username and password.
Since BitAI reuses EVM, your BitAI native address is similar to an Ethereum address. You can create a new BitAI address with any EVM-compatible wallet. We recommend MetaMask.
Add BitAI to MetaMask
In MetaMask, click on Networks -> Add Network -> Add a network manually. Use the following settings to point MetaMask to the BitAI running on your machine.
Name: BitAI
URL: http://localhost:10002
ChainID: 22213
Symbol: EAI
EAI is the native cryptocurrency of Eternal AI. Like ETH, you can use EAI to pay transaction fees, deploy smart contracts, and spend it in dapps.
Setup BitAI Explorer
BitAI reuses Blockscout for blockchain exploration data such as blocks, transactions, and addresses.
Launch BitAI Explorer:
Open this URL on your browser:
Setup your EAI wallets
BitAI uses two wallets: a Bitcoin wallet and a native EAI wallet. You need funds in both wallets to operate your BitAI node.
Bitcoin wallet
A Bitcoin Core wallet named tc
is automatically created by BitAI. Because BitAI uses Bitcoin Core to manage private keys, sign transactions, and broadcast transactions to the Bitcoin network, your tc
wallet will need some sats.
Get a new address from your tc
wallet and send it some funds:
You can check the balance with:
Native wallet
Since BitAI reuses EVM, your native address is similar to an Ethereum address. You can create a new native address with any EVM-compatible wallet. We recommend MetaMask.
You will need some EAI, the cryptocurrency of Eternal AI. Like ETH, you can use EAI to deploy smart contracts, pay transaction fees, and spend in dapps.
The native address is the same as the one you use to run your BitAI.
You can check your EAI balance on MetaMask.
Last updated