Develop DApps on Theta Blockchain
The Theta Virtual Machine is compatible with the Ethereum Virtual Machine (EVM Constantinople fork plus a couple key Istanbul features, including the chainid opcode, and alt_bn128 gas cost reduction). Thus, porting over existing Ethereum-based contracts is simple and thousands of smart contract developers can easily jump to building on Theta.
Theta's July 2021 v3.1.0 release, along with the Theta/Ethereum RPC adaptor project, provides support for the Ethereum RPC API similar to Binance Smart Chain and Polygon. The Theta/Ethereum RPC adapter software translates the Theta RPC endpoints into the Ethereum RPC APIs. With it, Theta now supports the entire Etherum DApp dev stack including Metamask, Hardhat, Remix, Ether.js, Web3.js, and Truffle Suite. Ethereum DApps that are ported over to Theta can use the same API calls to interact with Theta blockchain. This means Ethereum DApps can be deployed to Theta with no or minor modifications and tap into the growing Theta user and capital base.
Before diving into more detail, we note that on the Theta Blockchain, TFUEL takes the place of ETH in all contracts. Just as you need ETH to deploy or interact with smart contracts on Ethereum, you need TFUEL to do so on Theta blockchain. All TFUEL used to deploy or interact with smart contracts would be completely burned.
The links below include more detailed walkthroughs of:
- Theta support for the Ethereum RPC API suite.
- Use Metamask with Theta.
- Support for smart contract development tools, including Truffle, Hardhat, and Remix.
- Support for libraries such as Web3.js, and ethers.js (checkout our Hardhat demo with ethers.js).
- Blockchain explorer for the mainnet, and the testnet
Smart contract support is already enabled on Theta Mainnet, but you can also develop on the Theta Testnet first to verify its functionality. If you are doing so and need testnet TFUEL to pay for gas fees, just send us a message at email@example.com with Theta Hackathon in the title, and your wallet address in the body for us to send TFUEL to.
Theta Video API
Build decentralized video into any application with a few clicks or lines of code. No hassle and video stack development needed. Simple. Cost-effective. Powered by Theta. To learn more, please check out the Theta Video API and its documentation.
Powered by the Theta network, anyone can simply upload a video clip and the Theta Video API will return a playable link they can add a Theta-powered player to a site featuring the video clip. The ease of use means now anyone will be able to roll out decentralized video to handle delivery, and playback of their videos. Users that watch will then be able to relay video over the Theta Network on a peer-to-peer basis, fully leveraging Theta’s decentralized infrastructure. This isn’t simply embedding an existing video stream — any user can use Theta Video API to upload any video to their website with just a few clicks in a permissionless process.
Theta Edge Network
the Theta community members host the Theta Edge Nodes, which form the Theta Edge Network, a fully decentralized network for data delivery and more generally edge computing. As of August 2021, there are 100,000+ active edge nodes, forming a high performance edge computing and data delivery platform. Please click the links below to learn more:
- Install and run a Theta Edge Node
- Theta Edgecast, an DApp running on the Theta Edge Network, capable of delivering livestreams and chat in realtime across the globe without a central server.
- Theta Edge Compute, where the Theta Edge Network work not only as a data delivery network, but also as a generic edge computing platform.