Bittensor EVM Smart Contracts
Full Ethereum virtual machine (EVM) compatibility is now available on subtensor (the blockchain in Bittensor). This allows users to deploy most EVM smart contracts on subtensor without changing the code, interact with deployed smart contracts on the subtensor blockchain, and access standard Ethereum JSON-RPC methods.
Bittensor EVM smart contracts are executed solely on the Bittensor blockchain, not on the Ethereum blockchain.
See:
- Examples and Precompiles
- Getting started with Bittensor EVM on Testnet
Networks
You can deploy smart contracts on Bittensor main net (aka 'finney'), test network, or on your own locally deployed Bittensor chain.
Network details
MAINNET | TESTNET | LOCALNET | |
---|---|---|---|
RPC URL | https://lite.chain.opentensor.ai | https://test.chain.opentensor.ai | http://localhost:9944 |
Chain ID | 964 | 945 | see below |
Test TAO | None | Available on request | Use Alice account |
Set-up Guide | EVM Testnet with Metamask Wallet | EVM Localnet with Metamask Wallet for setting up a Local net. |
Ethereum vs Bittensor EVM Smart Contracts
On the Ethereum network, nodes such as full nodes, validator nodes and archive nodes run the Ethereum Virtual Environment (EVM) run-time environment. Smart contracts operate under this EVM. See the below high-level diagram.
Note that all operations performed by Bittensor EVM are executed solely on the Bittensor blockchain, not on the Ethereum blockchain.