THETA DOCUMENTATION

 

Quick Links

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. For developers that expect to have frequent or many queries, we recommend using InfStones Theta RPC API which supports high throughput.

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:

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 support@thetatoken.org with Theta Hackathon in the title, and your wallet address in the body for us to send TFUEL to. 

Theta Metachain

The Theta Metachain is an interconnected network of blockchains, a “chain of chains”. The goal is to allow permissionless horizontal scaling of the Theta blockchain network in order to achieve potentially unlimited transactional throughput, and 1-2 seconds, or even subsecond block finalization time. Theta Metachain consists of one “main chain” and an unlimited number of “subchains”.

To learn more about the Theta Metachain chain and start developing with the Metachain SDK, please check out the following Github Repo:

https://github.com/thetatoken/theta-metachain-guide

This repository provides the technical documentation and SDK necessary for developers to launch and develop on Theta subchains. The process of creating a subchain is permissionless, meaning that anyone can register and launch a subchain. No approval from Theta Labs is required. The repo will walk you through the following topics:

  • Subchain Launch OverviewA high-level overview of the subchain launch process.

  • Privatenet GuideA step by step tutorial on how to setup the Metachain in a local Privatenet environment.

  • Testnet GuideA tutorial on how to setup a subchain and connect it to the Theta Testnet.

  • Mainnet GuideA tutorial demonstrating the steps for launching a subchain and connecting it to the Theta Mainnet.

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.

It’s simple for developers to use: a web or mobile developer posts a video file to the Theta Video API ingest endpoint and get a playable video URL in return along with a few lines of JavaScript code which enables the Theta decentralized stream delivery library.

ThetaPass NFT ticketing system

ThetaPass is a groundbreaking protocol allowing online events, dapps, websites, and communities to use NFTs as secure tickets or access passes. Users’ NFTs can be verified onchain to trustlessly authenticate the user without any login credentials necessary. Since the NFTs are transferable, NFT access passes also have tradable value and can pass to different users. 

To learn more about how to integrate ThetaPass in your dapp or site, see the ThetaPass Docs page and GitHub example

Theta EdgeStore

The Theta EdgeStore network is an append-only, content-addressing, decentralized key/value storage network for the permanent web. It also acts as a decentralized content delivery network (dCDN) for any type of files. For the Alpha preview version, the EdgeStore is released as a standalone binary.

To test the EdgeStore Alpha release and run the included demos, see the Edge Store documentation page

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.