Chains

Block model

sf.tron.type.v1.Block

Block represents a Tron block from the RPC response

sf.tron.type.v1.Block

Block represents a Tron block from the RPC response

bytesid = 1

Block hash in bytes

BlockHeaderheader = 2
Transaction[]transactions = 3

sf.tron.type.v1.BlockHeader

BlockHeader represents the block header from the RPC response

uint64number = 1

Block number (height)

bytestx_trie_root = 2

Merkle root of all transactions in the block

byteswitness_address = 3

Address of the block producer (witness)

uint64parent_number = 4
bytesparent_hash = 5
uint32version = 6
int64timestamp = 7

Block timestamp in milliseconds since Unix epoch

byteswitness_signature = 8

Witness signature of the block

sf.tron.type.v1.Transaction

Transaction represents a flattened Tron transaction

bytestxid = 1

Transaction hash in bytes

bytes[]signature = 2

NOTE: only support size = 1, repeated list here for muti-sig extension source: https://buf.build/streamingfast/tron-protocol/file/main:core/Tron.proto#L448

bytesref_block_bytes = 3
bytesref_block_hash = 4
int64expiration = 5

Transaction expiration timestamp in milliseconds

int64timestamp = 6

Transaction creation timestamp in milliseconds

bytes[]contract_result = 7

Contract execution result in bytes

boolresult = 8
ResponseCodecode = 9

Transaction execution status code (see ResponseCode enum)

bytesmessage = 10

Return message if any

int64energy_used = 11

Energy consumed by the transaction

int64energy_penalty = 12

Energy penalty for the transaction

protocol.TransactionInfoinfo = 13

Raw TransactionInfo from the Tron protocol containing execution details source: https://buf.build/streamingfast/tron-protocol/file/main:core/Tron.proto#L453

protocol.Transaction.Contract[]contracts = 14

List of contracts executed in this transaction NOTE: only support size = 1, repeated list here for potential future extension source: https://buf.build/streamingfast/tron-protocol/file/main:core/Tron.proto#L337

sf.tron.type.v1.ResponseCode

enum

Potential error values for a Transaction taken from Tron protocol definition source: https://github.com/tronprotocol/protocol/blob/2a678934da3992b1a67f975769bbb2d31989451f/api/api.proto#L1041

SUCCESS = 0

SIGERROR = 1

error in signature

CONTRACT_VALIDATE_ERROR = 2

CONTRACT_EXE_ERROR = 3

BANDWITH_ERROR = 4

DUP_TRANSACTION_ERROR = 5

TAPOS_ERROR = 6

TOO_BIG_TRANSACTION_ERROR = 7

TRANSACTION_EXPIRATION_ERROR = 8

SERVER_BUSY = 9

NO_CONNECTION = 10

NOT_ENOUGH_EFFECTIVE_CONNECTION = 11

BLOCK_UNSOLIDIFIED = 12

OTHER_ERROR = 20