1. Prepare the transaction
Obtain theunsignedTransaction object provided by a transaction builder or the relevant API endpoint, e.g., /staking/delegate, /staking/vote, /staking/undelegate.
2. Sign the transaction
Use the P2P Signer SDK to sign the unsigned data following protocol specific configuration.3. Send the transaction
Broadcast the signed transaction to the Celestia network by making a POST request to /api/v1/tron/{network}/transaction/send. Example request:signedTransaction— signed transaction in the hexadecimal which needs to be broadcasted to the network.
-
transactionHash— hash of the transaction. -
createdAt— timestamp of the transaction in the ISO 8601 format. -
network— identifier of the TRON network (e.g.,mainnet,testnet-nile). -
senderAddress— address of the transaction sender in the base58 format. -
block— unique identifier of the block in which the transaction has been included.null, if still pending. -
status— transaction status:PENDING,FAILEDorCONFIRMED. -
gas— resources consumed by the transaction depending on their type:bandwidthUsed— amount of bandwidth points consumed by the transaction.energyUsed— amount of energy points consumed by the transaction.