For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Integration

Integrate CatFee Seamless Energy by changing only the TRON transaction broadcast node domain.

Integrating Seamless Energy is simple: replace the original TRON broadcast node domain with your CatFee Seamless Energy node domain.

The transaction signature, API path, request method, and request body do not need to change.

At a glance

Suppose the original broadcast endpoint is:

https://api.trongrid.io/wallet/broadcasttransaction

After integration, change it to:

https://{NodeSlug}.catfee.vip/wallet/broadcasttransaction

Only replace the node domain at the beginning:

- https://api.trongrid.io
+ https://{NodeSlug}.catfee.vip

Keep the broadcast path unchanged:

/wallet/broadcasttransaction

If your system lets you configure the broadcast node separately, replace only the broadcast node domain. Balance, block, and transaction queries can continue using the original node.

Integration steps

  1. Apply for a Seamless Energy node in the CatFee User Center.

  2. Obtain your dedicated node domain, such as https://{NodeSlug}.catfee.vip.

  3. Replace the broadcast node domain used for signed transactions with this domain.

  4. Verify the integration with a small transaction.

The Seamless Energy node will then automatically prepare ENERGY or BANDWIDTH according to the transaction's requirements before broadcasting the original transaction to the TRON network.

HTTP integration

JSON transaction

Hex transaction

Keep the API path and request body in the original TRON format.

Request example

When using API KEY authentication, add this request header:

This header is not required when using bound address authentication or no authentication.

gRPC integration

The gRPC integration is just as simple: replace the original TRON gRPC service address with the Seamless Energy node address. Keep the existing Protobuf definitions, transaction signing, and broadcast method unchanged.

Example configuration:

When using API KEY authentication, add this gRPC metadata:

This metadata is not required when using bound address authentication or no authentication.

Only the service address changes:

Your existing Stub, signed transaction object, and BroadcastTransaction call can continue to be used.

Before and after integration

Item
Before
After

Node domain

Original TRON node domain

{NodeSlug}.catfee.vip

gRPC service address

Original TRON gRPC address

{NodeSlug}.catfee.vip:443

HTTP broadcast path

Unchanged

Unchanged

gRPC broadcast method

Unchanged

Unchanged

Request body

Unchanged

Unchanged

Transaction signing

Performed locally

Performed locally

Resource preparation

Handled by your system

Energy or Bandwidth prepared automatically

Important notes

  • Transactions sent to the Seamless Energy node must already be signed.

  • CatFee does not need and will not obtain your private key or mnemonic phrase.

  • Do not modify addresses, amounts, signatures, or contract parameters in the original transaction.

  • Verify the integration with a small transaction before switching production traffic.

For exception handling, see the FAQ.

Last updated