nr_getTransactionDetail

This API method helps you to get information about the transaction.

📘

Supported on BSC and ETH mainnet only.

Parameters

  • transactionHash - string

Returns

  • hash - string
  • blockHash - string
  • blockNumber - integer
  • blockTimeStamp - integer
  • value - string
  • fees - integer
  • ethereumSpecific
    • receiptsStatus - integer
    • nonce - integer
    • gas - integer
    • gasUsed - integer
    • gasPrice - integer
    • input - string
  • vin
    • address - string
    • isAddress - boolean
    • value - string
  • vout
    • address - string
    • isAddress - boolean
    • value - string
  • tokenTransfers
    • category - string
    • from - string, transaction from address
    • to - string, transaction from address
    • token - string
    • tokenName - string
    • symbol - string
    • decimal - string
    • value - string

API Endpoint

The format of a MegaNode API endpoint is https://{chain}-{network}.nodereal.io/v1/{API-key}
Here is an example:

https://bsc-mainnet.nodereal.io/v1/4c0a1c23661a4e26bcbcwed461e34ea9

For other chains or networks, you could refer to this guidance Find API key & endpoint.

Example

Request

curl https://bsc-mainnet.nodereal.io/v1/your-api-key \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"nr_getTransactionDetail","params":["0x07D971C03553011a48E951a53F48632D37652Ba1"],"id": 1 }'

Result

{
  "id": "1",
  "jsonrpc": "2.0",
  "result": {
    "hash": "0x194def7bf7f6afe6880f38fc6c8679721135bbabf53ada450fcc8080e4ff2f74",
    "blockHash": "0xefa8d65612cbf1e0a2b49e51bb594e7206ab3e2baa6e20ad209910bffb36b812",
    "blockNumber": 21082531,
    "blockTimeStamp": 1662429025,
    "value": "0",
    "fees": 705875000000000,
    "ethereumSpecific": {
      "receiptsStatus": 1,
      "nonce": 334,
      "gas": 141175,
      "gasUsed": 141175,
      "gasPrice": 5000000000,
      "input": "0x68a1a8c60000000000000000000000000000000000000000000000003782dace9d900000"
    },
    "vin": {
      "address": "0xa431b01ba9cf3dbc1baa11be38c4a341378fdc79",
      "isAddress": false,
      "value": "0"
    },
    "vout": {
      "address": "0xa431b01ba9cf3dbc1baa11be38c4a341378fdc79",
      "isAddress": false,
      "value": "0"
    },
    "tokenTransfers": [
      {
        "category": "20",
        "from": "0xa431b01ba9cf3dbc1baa11be38c4a341378fdc79",
        "to": "0x882a6ca7f03fc489661a18f3b8a2c20e05eabfdc",
        "token": "0xb69974f60eb1499ef06e6dfca23a6fd1f631e40c",
        "tokenName": "NMT",
        "symbol": "NMT",
        "decimal": 18,
        "value": "800000000000000000"
      }
    ]
  }
}