Sending Transactions via Transatron for Custody Services
Prerequisites
-
Request a Company account.
Contact info@transatron.io or Telegram Support.
You will receive:- A Company account address (used to check internal account balance and top-ups — see Accounts and Balances).
- API key: can send transactions with fees covered from the company internal account.
-
Use the Transatron node for all TRON operations, not just
/broadcasttransaction
. -
Secure your keys. Never expose them in client-side code or logs.
Recommendations for Custody Solutions
Custody solutions typically manage two transaction types relative to the Hot Wallet: Deposits (incoming) and Withdrawals (outgoing).
For custodial flows, all transactions are usually sent from the server using the ADMIN API key, which ensures fees are covered by the internal company account.
Deposit Transactions
Options include:
- Consolidation transactions
Merchant wallet → Hot Wallet, sent via Transatron. - Approve / TransferFrom schema
approve
is normally sent from the Merchant address.transferFrom
is issued on behalf of the Hot Wallet → follow the Withdrawal options below.
Both operations can be covered by Transatron.
Withdrawal Transactions
Options include:
- Standard withdrawals
Send transactions via Transatron. - Delayed transactions
Extend the transactionexpiration
parameter. Transatron collects these into a buffer and broadcasts them in batches, further reducing fees.
Always monitor your internal company balance. If the balance reaches 0, transactions are bypassed to TRON directly and will burn TRX for fees.
Flow: Sending Transactions
- Create the transaction.
- Estimate resources by calling
/triggersmartcontract
. - Sign and broadcast the transaction via
/broadcasttransaction
. - Receive the user transaction hash and monitor it as usual.
Flow: Sending Delayed Transactions
Requires the Hot Wallet to be registered on Transatron before sending delayed transactions.
-
Create the transaction.
-
Estimate resources with
/triggersmartcontract
. -
Extend the
expiration
time, then sign. -
Broadcast via
/broadcasttransaction
. -
Transatron responds with:
PENDING
status- Transaction hash
The transaction will appear on-chain after the expiration time.
You can:
- Check pending transactions in the pool via
GetPendingTxs
- Flush pending transactions for immediate processing via
FlushPendingTxs
What if the User Doesn’t Want an Instant Payment?
Simply prepare, sign, and broadcast the transaction via Transatron without specifying a fee payment method.
In this case, Transatron bypasses fee coverage and forwards the transaction to TRON. The TRON blockchain will then charge fees normally (burning TRX or using staked resources).
Additional Information
- Example flows: Transatron TronWeb Examples (GitHub)
- Detailed guide: Preparing and Broadcasting Transactions
- API reference: Extended RPC Calls — including Transatron JSON extensions in responses.