Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 2.35 KB

Tron-exchange.md

File metadata and controls

47 lines (27 loc) · 2.35 KB

TRON Mainnet - Integration Guide

Connecting to the TRON network is extremely easy and only requires running 1-2 nodes on a machine. Once you've connected to the network, you have multiple ways of interacting with the nodes based on your system's requirements. When you're fully integrated, please reach out to the TRON team so that we can help you verify your setup.

1. Deploy TRON Nodes

You'll need to deploy nodes that connect to the network and offer both the ability to read the blockchain state and also to broadcast transactions onto the network.

TRON's network uses a Full Node to read and broadcast to the network. The Full Node stores the entire blockchain state, including unconfirmed blocks and potential forks.

Deploying a linked Solidity Node allows you to interact with blocks that are guaranteed confirmed and irreversible.

Follow this guide to deploy a Full Node and a linked Solidity Node on the same machine.

2. Integrate with the TRON nodes

The nodes support both a gRPC Service and a HTTP Gateway on the ports specified in the configuration files. You can use either method to communicate with the nodes.

gRPC

gRPC uses Protobuf and the TRON protocol.

HTTP Gateway

The nodes also offer an alternate RESTful HTTP Gateway. Read the HTTP Documentation for examples.

Build your custom integration.

Take a look at the Common Patterns guide for some basic assistance.

3. Testing

Once you've fully integrated with the network, please test on both the test network and the main network.

Mainnet

Testnet