TRONSCAN CLASS — Transaction

TRONSCAN
2 min readMay 29, 2019

--

Transaction search

You can search for transaction records on this page. Information on the sender and the recipient’s address, the amount of TRX transferred, block height of transaction record, corresponding Hash and production time can all be found. You can also use the search bar to look for a specific transaction by Hash.

TRANSACTIONS page of TRONSCAN

Transaction Contract Types

As the basic transaction unit on the TRON network, contracts exist in different forms. Here are a few examples.

AccountCreateContract = 0;
TransferContract = 1;
TransferAssetContract = 2;
VoteAssetContract = 3;
VoteWitnessContract = 4;
WitnessCreateContract = 5;
AssetIssueContract = 6;
WitnessUpdateContract = 8;
ParticipateAssetIssueContract = 9;
AccountUpdateContract = 10;
FreezeBalanceContract = 11;
UnfreezeBalanceContract = 12;
WithdrawBalanceContract = 13;
UnfreezeAssetContract = 14;
UpdateAssetContract = 15;
ProposalCreateContract = 16;
ProposalApproveContract = 17;
ProposalDeleteContract = 18;
SetAccountIdContract = 19;
CustomContract = 20;
// BuyStorageContract = 21;
// BuyStorageBytesContract = 22;
// SellStorageContract = 23;
CreateSmartContract = 30;
TriggerSmartContract = 31;
GetContract = 32;
UpdateSettingContract = 33;
ExchangeCreateContract = 41;
ExchangeInjectContract = 42;
ExchangeWithdrawContract = 43;
ExchangeTransactionContract = 44;
AccountPermissionUpdateContract = 45;
PermissionAddKeyContract = 46;
PermissionUpdateKeyContract = 47;
PermissionDeleteKeyContract = 48;

Internal Transactions

Internal Transactions represent all transactions that have occurred in a smart contract call. Some important information included in the transaction are sender/receiver address in a token/trx transfer transaction, trx/token amount, and transfer status. Users can check all information about Internal Transactions in an internalTransaction list, which contains all transactions in a single triggerSmartContract or createSmartContract call.

Internal Transaction Information Structure

Shellmessage InternalTransaction {
bytes hash = 1;
// the one send trx or token via function
bytes caller_address = 2;
// the one recieve trx or token via function
bytes transferTo_address = 3;
message CallValueInfo {
// trx or token value
int64 callValue = 1;
// tokenId, trx should be empty
string tokenId = 2;
}
repeated CallValueInfo callValueInfo = 4;
bytes note = 5;
bool rejected = 6;
}

--

--

TRONSCAN
TRONSCAN

Written by TRONSCAN

Explore the TRON World | http://tronscan.org | Tele: https://t.me/tronscan_org #TRON #TRX $TRX #TRONSCAN

No responses yet