Connecting to Taraxa

Talking to the Taraxa Network via RPC

Connecting to Taraxa's ETH-Compatible Network

There are two ways to connect to Taraxa's network,
  • Via dev-deployed RPC endpoints
  • Via your own mainnet / testnet nodes
Since Taraxa's network is almost 100% ETH-compatible, you can simply follow Ethereum's JSON-RPC documentation.
The ETH-compatibility with Ethereum also means that almost all tools from the Ethereum ecosystem work with Taraxa. You can use, for example, Web3.js, ethers.js and to connect to and interact with the Taraxa Network.
There are a few minor exceptions and quirks to Taraxa's ETH-compatibility, you can find them in our full RPC specification.

Connect via RPC endpoints provided by the dev team

You may use the RPC endpoints provided by Taraxa's core development team. Right now these are being provided as is and free of charge, this may change later of course with plenty of notice given to the community.
More details on Taraxa's network connections, including chain-ids etc.

Connect via your own Nodes

You could also set up your own nodes on the Mainnet or Testnet. This give you a lot of flexibility in working with your DApp.
If these nodes are being used primarily for RPC connections, they do NOT need to participate in consensus. Therefore there is no need to register them on the community site, or seek delegation for the mainnet nodes.
Here are node setup instructions,
The default RPC port on the Taraxa node is "7777". So if you're running this on your own node on the node's local machine, you'd send the RPC request to localhost:7777.