Learn everything about the Theta Network.

What is theta.js?

The theta-js library aims to be a complete and compact library for interacting with the Theta Network Blockchain and its ecosystem.

In addition to the raw RPC API, we have also provided a JavaScript SDK to make it easier for DApps to interface with the Theta blockchain. The functionality is similar to Ethereum’s web3.js and is aiming to provide a developer-friendly framework for DApps to interact with the Theta blockchain. Through the SDK, a DApp can easily query for blocks and transactions, sign and issue transactions to the blockchain, as well as deploy and interact with smart contracts. The SDK can also be used as an automated unit test framework for the developers to thoroughly test and validate the functionalities of their smart contracts before production deployment.


  • Keep your private keys in your client, safe and sound
  • Import and export JSON wallets
  • Import and export BIP 39 mnemonic phrases (12 word backup phrases) and HD Wallets
  • Meta-classes create JavaScript objects from any contract ABI, including ABIv2 and Human-Readable ABI
  • Connect to Theta nodes over JSON-RPC

Updated 12 months ago

What's Next

Getting started


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.