WatchData Documentation
  • πŸ“–Welcome to WatchData Docs
    • 🧩Features
      • ⛓️Blockchain API
      • ⚑Powered API
      • πŸͺ™Price API
    • πŸ’ΌWhat products are suitable for our solutions
  • πŸ‘‹Introduction
    • πŸ› οΈQuick start guide to WatchData!
    • πŸ€”Why Use WatchData?
    • πŸ’‘Supported chains
    • πŸ›‘Error Reference
    • πŸ—οΈChange Log (update)
  • πŸ’ŽPowered API
    • πŸ”€Transfers
      • watch_getTransfers
      • watch_getTransfersByAddress
    • πŸ’ Parity
      • parity_getBlockReceipts
    • πŸŒ€Trace
      • trace_transaction
      • trace_block
    • ⏹️Blocks
      • watch_getBlockNumberByTimestamp
    • *️⃣Token API
      • watch_getTokenBalances
      • πŸ†•watch_getTokenMetadata
    • πŸ†’Stats
      • watch_getStatsByDay
  • πŸ•ΈοΈBlockchain API's
    • Ethereum API
      • eth_getBlockByHash
      • eth_getBlockByNumber
      • eth_getTransactionCount
      • eth_getTransactionByHash
      • eth_getTransactionReceipt
      • eth_getBlockTransactionCountByHash
      • eth_getBlockTransactionCountByNumber
      • eth_getTransactionByBlockHashAndIndex
      • eth_getTransactionByBlockNumberAndIndex
      • eth_getUncleCountByBlockHash
      • eth_getUncleCountByBlockNumber
      • eth_getLogs
      • eth_call
      • eth_chainId
      • eth_estimateGas
      • eth_gasPrice
      • eth_getBalance
      • eth_getCode
      • net_version
      • eth_getStorageAt
      • eth_sendRawTransaction
      • eth_blockNumber
    • ♨️Polygon API
      • eth_blockNumber - Polygon
      • eth_getBlockByHash - Polygon
      • eth_getBlockByNumber - Polygon
      • eth_getTransactionByHash - Polygon
      • eth_getTransactionCount - Polygon
      • eth_getTransactionReceipt -Polygon
      • eth_getBlockTransactionCountByHash - Polygon
      • eth_getBlockTransactionCountByNumber - Polygon
      • eth_getTransactionByBlockHashAndIndex - Polygon
      • eth_getTransactionByBlockNumberAndIndex - Polygon
      • eth_getUncleCountByBlockHash - Polygon
      • eth_getUncleCountByBlockNumber - Polygon
      • eth_getLogs - Polygon
      • eth_call - Polygon
      • eth_chainId - Polygon
      • eth_estimateGas - Polygon
      • eth_gasPrice - Polygon
      • eth_getBalance - Polygon
      • eth_getCode - Polygon
      • net_version - Polygon
      • eth_getStorageAt - Polygon
      • eth_sendRawTransaction - Polygon
    • Binance Smart Chain API
      • eth_blockNumber (BSC)
      • eth_getBlockByHash (BSC)
      • eth_getBlockByNumber (BSC)
      • eth_getTransactionCount (BSC)
      • eth_getTransactionByHash (BSC)
      • eth_getTransactionReceipt (BSC)
      • eth_getBlockTransactionCountByHash (BSC)
      • eth_getBlockTransactionCountByNumber (BSC)
      • eth_getTransactionByBlockHashAndIndex (BSC)
      • eth_getTransactionByBlockNumberAndIndex (BSC)
      • eth_getUncleCountByBlockHash (BSC)
      • eth_getUncleCountByBlockNumber (BSC)
      • eth_getLogs (BSC)
      • eth_call (BSC)
      • eth_chainId (BSC)
      • eth_estimateGas (BSC)
      • eth_gasPrice (BSC)
      • eth_getBalance (BSC)
      • eth_getCode (BSC)
      • net_version (BSC)
      • eth_getStorageAt (BSC)
      • eth_sendRawTransaction (BSC)
    • Tron API
      • Full Node API Overview
      • Address Utilities
        • CreateAddress
        • GenerateAddress
        • ValidateAddress
      • Transactions
        • CreateTransaction
        • EasyTransferByPrivate
        • EasyTransfer
        • BroadcastHex
        • BroadcastTransaction
      • Accounts
        • AccountPermissionUpdate
        • UpdateAccount
        • GetAccount
        • CreateAccount
      • Account Resources
        • GetAccountNet
        • GetAccountResource
        • UnfreezeBalance
        • FreezeBalance
        • GetDelegatedResource
        • GetDelegatedResourceAccountIndex
      • Query The Network
        • GetBlockByNum
        • GetBlockById
        • GetBlockByLatestNum
        • GetBlockByLimitNext
        • GetNowBlock
        • GetTransactionById
        • GetTransactionInfoById
        • GetTransactionInfoByBlockNum
        • GetNodeInfo
        • GetChainParameters
      • TRC 10 Token
        • GetAssetIssueByAccount
        • GetAssetIssueById
        • GetAssetIssueList
        • GetPaginatedAssetIssueList
        • TransferAsset
        • CreateAssetIssue
        • ParticipateAssetIssue
        • UnfreezeAsset
        • UpdateAsset
        • EasyTransferAsset
        • EasyTransferAssetByPrivate
      • Smart Contracts
        • GetContract
        • TriggerSmartContract
        • TriggerConstantContract
        • DeployContract
        • UpdateSetting
        • UpdateEnergyLimit
        • ClearAbi
      • TRONZ Shielded Smart Contract
        • GetSpendingKey
        • GetExpandedSpendingKey
        • GetAkFromAsk
        • GetNkFromNsk
        • GetIncomingViewingKey
        • GetDiversifier
        • GetZenPaymentAddress
        • GetNewShieldedAddress
        • CreateShieldedContractParameters
        • CreateSpendAuthSig
        • GetTriggerInputForShieldedTrc20Contract
        • ScanShieldedTrc20NotesByIvk
        • ScanShieldedTrc20NotesByOvk
        • IsShieldedTrc20ContractNoteSpent
      • Voting & SRs
        • ListWitnesses
        • CreateWitness
        • UpdateWitness
        • GetBrokerage
        • UpdateBrokerage
        • VoteWitnessAccount
        • GetReward
        • WithdrawBalance
        • GetNextMaintenanceTime
      • Proposals
        • ListProposals
        • GetProposalById
        • ProposalCreate
        • ProposalApprove
        • ProposalDelete
      • DEX Exchange
        • ListExchanges
        • GetExchangeById
        • ExchangeCreate
        • ExchangeInject
        • ExchangeWithdraw
        • ExchangeTransaction
      • Pending Pool
        • GetTransactionListFromPending
        • GetTransactionFromPending
        • GetPendingSize
    • Bitcoin API
      • Blockchain RPCs
        • getbestblockhash
        • getblock
        • getblockchaininfo
        • getblockcount
        • getblockhash
        • getblockheader
        • getblockstats
        • getchaintips
        • getchaintxstats
        • getdifficulty
        • getmempoolancestors
        • getmempooldescendants
        • getmempoolentry
        • getmempoolinfo
        • getrawmempool
        • gettxout
        • gettxoutproof
      • Rawtransactions RPCs
        • analyzepsbt
        • combinepsbt
        • combinerawtransaction
        • converttopsbt
        • createpsbt
        • createrawtransaction
        • decodepsbt
        • decoderawtransaction
        • decodescript
        • finalizepsbt
        • fundrawtransaction
        • getrawtransaction
        • joinpsbts
        • sendrawtransaction
        • testmempoolaccept
        • utxoupdatepsbt
  • πŸͺ™Price API
    • Price API
      • All tickers
      • Current price
  • ⛓️Web3
    • Web3 SDK
      • Web3.js
      • Web3.py
      • Ethers.js
      • Ethereum.rb
  • πŸ—ΊοΈTutorials and Guides
    • How to guides
      • How Getting Ethereum Account Balance and Transactions
      • How do I add WatchData to MetaMask?
      • How can i Get stats by Day
      • How to get the balance of an ERC-20 token
      • How can i get transfers using watch_getTransfersByAddress?
    • WatchData PriceΒ API and how it works?
    • How eth_getLogs works?
  • πŸ—ƒοΈResources
    • Pricing and Limits
      • Watch Units
    • FAQ
      • General
      • Pricing
      • Privacy
    • Support
    • Community
Powered by GitBook
On this page
  1. Blockchain API's
  2. Tron API
  3. Query The Network

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"
      }
    ]
  }
]
PreviousGetTransactionInfoByIdNextGetNodeInfo

Last updated 2 years ago

πŸ•ΈοΈ