Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tron eventsubscribe messages
Block subscription
event: message
data:{
"timeStamp":1547662317000,
"triggerName":"blockTrigger",
"blockNumber":5862702,
"blockHash":"000000000059752e606e215a10408041fa76ce55d6bfa0a4bdbf82fed2573e7c",
"transactionSize":166,
"transactionList":[
"5038b991076c885b06ef0bf9469a17f7e2cdc48c072f3d71d5d38593f9c7d342",
""
]
}
Transaction subscription
event: message
data:{
"timeStamp":1547667682961,
"triggerName":"transactionTrigger",
"transactionId":"e309b4a4910576de3adda3d65b8c1f276eb3632aa92123fb42f73b3cc49aeedb",
"blockHash":"00000000005979f2ea7d816ba8281d0755256c1a727ab9887d8f240e94343cd1",
"blockNumber":5863922,
"energyUsage":0,
"energyFee":0,
"originEnergyUsage":14513,
"energyUsageTotal":14513,
"netUsage":0,
"netFee":3510
}
ContractLog subscription
event: message
data:{
"timeStamp":1547662441672,
"triggerName":"contractLogTrigger",
"transactionId":"2d7a5bf8365b4962be978a513b24f5fc83239b1c829f6e00c503a360955c26dd",
"contractAddress":"TXSjGe7jtfHwiTFxxfER8PKVz9vc1N8u2x",
"callerAddress":"TBv7igM3eVRsd144ayw7X3ecxsAdMQfBne",
"originAddress":"TTzBSx4J2j6ZYF6YtDSGDAR7k7k7t7jMPF",
"creatorAddress":"TTzBSx4J2j6ZYF6YtDSGDAR7k7k7t7jMPF",
"blockNumber":5862730,
"removed":false,
"topicList":[
"f0f1e23ddce8a520eaa7502e02fa767cb24152e9a86a4bf02529637c4e57504b",
"0000000000000000000000000000000000000000000000000000000000020cb7",
"0000000000000000000000004453ee65f796352803498b1388244ddf5b4040d5",
"000000000000000000000000f1d8997da15ae5705bb75fc8dc9102eea0c289a4"
],
"data":"000000000000000000000000000000000000000000000000000000000000005f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000162c450000000000000000000000000000000000000000000000000000000000000000250000000000000000000000000000000000000000000000000000000016fd28000000000000000000000000000000000000000000000000000000000000006af3"
}
ContractEvent subscription
event: message
data:{
"timeStamp":1547662613061,
"triggerName":"contractEventTrigger",
"transactionId":"100a40fe3180581cc0d9bd9bf3bda330570e62af4989a4f30d9342354ad44349",
"contractAddress":"TF8SuiNLeqydKk4HsDoUrgg9zyx6WE1aKb",
"callerAddress":"TCwjpvs4mjAC2ADyvjRBQL5EXwST7pa3Mz",
"originAddress":"TZDWZCJ6QjTUSBCjotBQKViWkzwHuBNk1L",
"creatorAddress":"TZDWZCJ6QjTUSBCjotBQKViWkzwHuBNk1L",
"blockNumber":5862778,
"removed":false,
"eventSignature":"Order(uint256,uint256,uint256,address,address,uint256,address,uint256,uint256)",
"topicMap":{},
"dataMap":{
"orderType":"1",
"orderID":"112124",
"amountB":"1007640000",
"amountA":"3732000000",
"tokenA":"TYe6uNj7jxkwy28yXeLPs6KDLZCuUjXvgd",
"tokenB":"T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
"0":"112124",
"1":"0",
"2":"1",
"3":"TCwjpvs4mjAC2ADyvjRBQL5EXwST7pa3Mz",
"4":"TYe6uNj7jxkwy28yXeLPs6KDLZCuUjXvgd",
"5":"3732000000",
"6":"T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
"price":"270000",
"7":"1007640000",
"8":"270000",
"user":"TCwjpvs4mjAC2ADyvjRBQL5EXwST7pa3Mz",
"status":"0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.