> For the complete documentation index, see [llms.txt](https://docs.luganodes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.luganodes.com/tron-energy/rpc-broadcast.md).

# RPC endpoint

Use the Luganodes RPC endpoint as your TRON node. We delegate the energy your signed transactions need before we broadcast them.

The RPC endpoint works like a normal TRON node. When you broadcast a USDT transfer through it, we first delegate the energy the transfer needs, so the sender does not burn TRX. The same is true for other smart contract calls such as swaps.

* No separate API to integrate. Set your node URL to `$BASE_URL/rpc` and add your API key in the `X-API-Key` header.
* You build and sign transactions with your existing code and TRON libraries, for example TronWeb.
* Works for any backend that broadcasts TRON transactions: wallets, exchanges, payment apps, bridges.

## How it works

<figure><img src="https://4131623064-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgIdQ17drgQjNoGZlBpKg%2Fuploads%2FxFyu1VGG8QxysP7jWvJe%2Frpc-pipe.svg?alt=media" alt="Your backend, then Luganodes RPC endpoint, then TRON network"><figcaption></figcaption></figure>

<table><thead><tr><th width="74.828125">Step</th><th width="118.61328125">Who</th><th>What happens</th></tr></thead><tbody><tr><td>1</td><td>You</td><td>Your wallet signs the transaction</td></tr><tr><td>2</td><td>You</td><td>You broadcast it to the node URL with the standard <code>wallet/broadcasttransaction</code> call</td></tr><tr><td>3</td><td>Luganodes</td><td>We screen and simulate the transaction, delegate the energy it needs, broadcast it, and reclaim the energy once it is in a block. Sender activation and bandwidth are optional. We reclaim delegated bandwidth too.</td></tr></tbody></table>

All other node calls, such as balance reads, pass through as they are.

## Simulation

Before we delegate energy, we run your signed transaction on the node as a dry run. We then check the sender's account in this order:

<table><thead><tr><th width="72.75390625">#</th><th>Check</th><th>What we do</th></tr></thead><tbody><tr><td>1</td><td>Would the call fail, for example because of a low token balance or a wrong contract address?</td><td>We stop and return <code>SIMULATION_FAILED</code> with the reason from the chain. We broadcast nothing and bill nothing.</td></tr><tr><td>2</td><td>Is the sender not activated, and did we agree activations with you?</td><td>We activate the sender and pay TRON's activation fee.</td></tr><tr><td>3</td><td>Does the sender have neither the bandwidth nor the TRX to pay for it, and did we agree bandwidth top-ups with you?</td><td>We provide the bandwidth, either by delegating it or by sending TRX for it.</td></tr><tr><td>4</td><td>Does the sender lack energy?</td><td>We use the sender's own energy first and delegate only what it lacks, plus a small energy buffer set at onboarding.</td></tr></tbody></table>

If checks 2 to 4 need nothing, we broadcast it right away and bill nothing.

## Which transactions we cover

| Transaction                                                                                              | What we do                                                                                              |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| A USDT transfer or other smart contract call, with one signature                                         | We screen it, simulate it, delegate the energy it needs (and bandwidth, if enabled), then broadcast it. |
| The same, but the sender has enough energy and bandwidth                                                 | We broadcast it right away. No charge.                                                                  |
| A multi-signature transaction, a transaction already in a block, or one sent with `X-Energy-Fund: false` | We forward it without screening or delegating. No charge.                                               |

## Screening

We screen the sender, the contract and the recipient of every smart contract call you broadcast against several sanctions lists and Tether's frozen USDT list. On a match, we do not delegate or broadcast, and we return `ADDRESS_BLOCKED`. See [Compliance and screening](https://docs.luganodes.com/tron-energy/compliance-and-screening.md).

## What you need

<table><thead><tr><th width="106.00390625">Item</th><th>Detail</th></tr></thead><tbody><tr><td>Node URL</td><td><code>$BASE_URL/rpc</code>, on TRON mainnet. We share <code>$BASE_URL</code> when we set up your account</td></tr><tr><td>API key</td><td>We share it when we set up your account</td></tr></tbody></table>

## Cost

The endpoint and reads are free. You pay for the energy, bandwidth and account activations we provide at your agreed price.

## Get access

Contact <business@luganodes.com>, or see [Getting access](https://docs.luganodes.com/tron-energy/getting-access.md).
