Links

GetTransactionInfoByBlockNum

Body params:
  • num - Block height
Request
curl --request POST \
--url https://tron.api.watchdata.io/wallet/gettransactioninfobyblocknum \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"num":2000000}'
Response
[
{
"result": "FAILED",
"fee": 46930,
"blockNumber": 2000000,
"contractResult": [
"08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001741646472657373204e6f74205265676973746572656421000000000000000000"
],
"blockTimeStamp": 1581598734000,
"resMessage": "524556455254206f70636f6465206578656375746564",
"receipt": {
"result": "REVERT",
"net_fee": 2790,
"energy_fee": 44140,
"energy_usage_total": 4414
},
"id": "732cd4b32f4fad29387097c5622a45dc07e15962e66fa5a4623e717080c32048",
"contract_address": "41104969687d27a15e54101158ee0a2f446994f048",
"internal_transactions": [
{
"caller_address": "41104969687d27a15e54101158ee0a2f446994f048",
"note": "63616c6c",
"rejected": true,
"transferTo_address": "41b0d801f4df5df9ab8801a4d523f7fda9889b9d4a",
"callValueInfo": [
{}
],
"hash": "2cb4a6407f62eae8e736aad18f7efd04d44557384dfbc5b1bcb0050bce659e03"
},
{
"caller_address": "41104969687d27a15e54101158ee0a2f446994f048",
"note": "63616c6c",
"rejected": true,
"transferTo_address": "41b0d801f4df5df9ab8801a4d523f7fda9889b9d4a",
"callValueInfo": [
{}
],
"hash": "1565802f7c020d2d15363de585fbef60a88f05d26b31a00dd0c07db7dd3ab922"
},
{
"caller_address": "41104969687d27a15e54101158ee0a2f446994f048",
"note": "63616c6c",
"rejected": true,
"transferTo_address": "41b0d801f4df5df9ab8801a4d523f7fda9889b9d4a",
"callValueInfo": [
{}
],
"hash": "3ca4297a7cbf09b4dff084044f2cf7434e841f546f82a49fd1e3105f27a23d63"
}
]
},
{
"log": [
{
"address": "7090190c41ba59f763e2cbe7d885e007e94be5d2",
"data": "000000000000000000000000000000000000000000000000000000051f6de13a0000000000000000000000000000000000000000000000000000000006189d94000000000000000000000000000000000000000000000000000000000617d53001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000",
"topics": [
"baca790fd027b9b7f36b90c3084718a3a039693cdf83844342f5f1edc839c3af"
]
}
],
"blockNumber": 2000000,
"contractResult": [
""
],
"blockTimeStamp": 1581598734000,
"receipt": {
"result": "SUCCESS",
"energy_usage": 109980,
"energy_usage_total": 109980,
"net_usage": 668
},
"id": "3adbcf9196537b068ad0f339d3f9d9ad9fa835cbf93424f362327d5487c9bad6",
"contract_address": "417090190c41ba59f763e2cbe7d885e007e94be5d2"
},
{
"log": [
{
"address": "79c23a5666042e40420d6afdc1541e3926205eba",
"data": "000000000000000000000000000000000000000000000000000000051f6de13a",
"topics": [
"bc83ae8792341bee74a3743c222caf741ef3795f9bf3324984870ed9a38fcef1"
]
}
],
"blockNumber": 2000000,
"contractResult": [
""
],
"blockTimeStamp": 1581598734000,
"receipt": {
"result": "SUCCESS",
"energy_usage": 8308,
"energy_usage_total": 8308,
"net_usage": 346
},
"id": "8331c38bf47d43661fc0a50ab894afe71be472be9008db87eccf895b84b69c64",
"contract_address": "4179c23a5666042e40420d6afdc1541e3926205eba",
"internal_transactions": [
{
"caller_address": "4179c23a5666042e40420d6afdc1541e3926205eba",
"note": "63616c6c",
"transferTo_address": "4179c23a5666042e40420d6afdc1541e3926205eba",
"callValueInfo": [
{}
],
"hash": "1a047a48ce95340223e8a19aab74691fbd6da6ee621aee3071267e75f45cc657"
}
]
}
]