EVM Tutorials
Ethereum compatibility layer is now available on subtensor (the blockchain in Bittensor). Using this EVM feature you can:
- Bring any Ethereum smart contract, deploy it on the subtensor without any need to change it, and interact with the smart contract on the subtensor blockchain.
- Access all the standard Ethereum JSON-RPC methods from this EVM compatibility layer on subtensor.
Before you proceed
Before you proceed to use EVM on subtensor, make a note of the following:
- EVM smart contract executes on subtensor: The EVM feature allows the subtensor blockchain to execute Ethereum-compatible smart contracts. Note that all operations performed by this new subtensor EVM feature are executed solely on the subtensor blockchain, not on the Ethereum blockchain.
- Permissioned deployment: Until further notice, only white-listed parties can deploy a smart contract on subtensor. When you are ready to deploy, make a request in the evm-bittensor channel of Bittensor Discord.
- Permissionless interaction: However, anyone call a smart contract that was already deployed on subtensor, and interact with it in a permissionless way.
- 1 TAO = 1e18 on subtensor EVM: While working with the subtensor EVM, 1 TAO should be written as 1 followed by 18 zeroes, i.e., 1e18. See this code example: https://github.com/opentensor/evm-bittensor/blob/main/examples/withdraw.js#L58.
Run the below tutorials to learn how to use the EVM feature on the Bittensor blockchain.
Transfer TAO between two H160 addresses
Learn how to transfer TAO between two Ethereum H160 addresses.
READ MORE