POSTGet Transactions By Hashes

Data APIhttps://web3.nodit.io/v1/ethereum/mainnet/blockchain/getTransactionsByHashes

Retrieves information for multiple transactions. Up to 1,000 transactions can be queried.

Path Parameters
chainstring (enum)required

Parameter to specify the target chain for the query.

networkstring (enum)required

Parameter to specify the network of the target chain. Supported networks may vary depending on the chain.

Request Body
transactionHashesstring[]required
withLogsboolean

Parameter specifying whether to include the logs field in the response. Response speed may be slower when set to true.

withDecodeboolean

Parameter specifying whether to include decodedInput and decodedLog fields in the response. Response speed may be slower when set to true.

decodedLog is part of logs, so it is not included when withLogs is false even if withDecode is true. decodedInput interprets the transaction input field and provides the result. However, different functions may use the same function selector, so the result may not match the actually called function. Additional verification is recommended for non-standard ERC functions.

Responses
transactionHashstringrequired

A field representing the hash of the transaction. Provided as a 64-character hexadecimal string prefixed with 0x.

transactionIndexintegerrequired

A field representing the index of the transaction. Indicates the order within the block. Provided in decimal string format.

blockHashstringrequired

A field representing the hash of the block. Provided as a 64-character hexadecimal string prefixed with 0x.

blockNumberintegerrequired

A field representing the block number.

fromstringrequired

A field representing the address that initiated the transaction. Provided as a 40-character hexadecimal string prefixed with 0x.

tostringrequired

A field representing the recipient address of the transaction. For contract creation transactions, this field returns null. Provided as a 40-character hexadecimal string prefixed with 0x.

valuestringrequired

A field representing the amount of tokens transferred in the transaction. Provided in decimal string format.

inputstringrequired

A field representing the data of the transaction. For Native Token (ETH, MATIC, etc.) transfers, this field is empty. Provided as a hexadecimal string prefixed with 0x.

typestring

A field representing the function type of the transaction.

namestring

A field representing the function name of the transaction.

signaturestring

A field representing the function signature of the transaction.

argsobject[]
namestring

A field representing the name of the argument.

typestring

A field representing the type of the argument.

valuestring

A field representing the value of the argument.

functionSelectorstringrequired

A 4-byte function selector value that identifies the called function. The function selector is the first 4 bytes of the Keccak-256 hash of the function signature. Provided as an 8-character hexadecimal string prefixed with 0x.

noncestringrequired

A field representing the nonce value of the transaction. Used for transaction deduplication and ordering. Provided in decimal string format.

gasstringrequired

A field representing the maximum amount of gas the user intends to allocate for transaction execution. Provided in decimal string format.

gasPricestringrequired

A field representing the amount the user is willing to pay per unit of gas. Used in the transaction model before EIP-1559 (London Hard fork) with fixed fees; users can manually set the price based on network congestion. Provided in decimal string format.

maxFeePerGasstring

A field representing the maximum fee the user is willing to pay per unit of gas. Must be greater than or equal to the sum of baseFeePerGas and maxPriorityFeePerGas. Part of the variable fee model introduced in EIP-1559 (London Hard fork). This field is not provided for transactions before this introduction. Provided in decimal string format.

maxPriorityFeePerGasstring

The maximum fee per unit of gas that the user wants to pay directly to the block builder. Higher values cause the block builder to prioritize the transaction. Part of the variable fee model introduced in EIP-1559 (London Hard fork). This field is not provided for transactions before this introduction. Provided in decimal string format.

gasUsedstringrequired

A field representing the amount of gas actually used in transaction execution. Provided in decimal string format.

cumulativeGasUsedstringrequired

A field representing the total gas used by all transactions in the block up to and including the current transaction. Provided in decimal string format.

effectiveGasPricestringrequired

A field representing the average price actually paid per unit of gas by the transaction. For transactions before EIP-1559 (London Hard fork), this field returns the same value as gasPrice. Provided in decimal string format.

contractAddressstringrequired

A field representing the created contract address when the transaction is a contract creation transaction. Provided as a 40-character hexadecimal string prefixed with 0x.

typestring

A field representing the type of the transaction. This field may not be provided depending on the block context. Provided in decimal string format. 0: Represents a standard Ethereum transaction. This is the traditional transaction format before EIP-2718. 1: Represents the 'Access List' transaction introduced in EIP-2930. This type includes an access list for specific addresses and storage slots to optimize gas costs. 2: Represents the 'Fee Market' transaction introduced in EIP-1559. This type uses a variable gas cost model and includes maxFeePerGas and maxPriorityFeePerGas fields. 3: Represents the 'Blob Transaction' introduced in EIP-4844. This type includes additional blob data separate from the body, improving data availability and supporting scalability in conjunction with Layer2 solutions such as Rollups. 4: An extended transaction type introduced in EIP-7702, containing an authorizationList field with signature/authorization information. Used when multi-signature or additional authentication procedures are required.

statusstring

A field representing the status of the transaction. 1 indicates success; 0 indicates failure. This field is not provided for transactions before the Byzantium Hard Fork. Provided in decimal string format.

logsBloomstringrequired

A field representing all logs bloom of the transaction. Provided as a 512-character hexadecimal string prefixed with 0x.

addressstringrequired

A field representing the contract address accessed in the transaction. Provided as a 40-character hexadecimal string prefixed with 0x.

storageKeysstring[]required

A field representing the list of storage keys of the contract accessed in the transaction.

timestampintegerrequired

트랜잭션이 생성된 시간을 나타내는 필드입니다. 이 필드는 UNIX 타임스탬프로 제공됩니다.

chainIdstring

A field representing the ID of the chain for which the authorization is valid. Used for signature verification and replay attack prevention. Expressed in decimal string format.

noncestring

A nonce value to ensure the uniqueness of this authorization item and prevent replay attacks. Expressed in decimal string format.

addressstring

The address of the account that provided the authorization (signature).

yParitystring

A 1-bit parity value used to select the y-coordinate of the signed public key. Typically 0 or 1, used for public key recovery. Expressed in decimal string format.

rstring

The first value of the ECDSA signature, generated through the nonce used for signing and curve operations. Used for public key recovery and signature verification.

sstring

The second value of the ECDSA signature, calculated based on the message hash and private key. Essential for verifying signature validity.

contractAddressstringrequired

A field representing the contract address that generated the log. Provided as a 40-character hexadecimal string prefixed with 0x.

transactionHashstringrequired

A field representing the hash of the transaction that generated the log. Provided as a 64-character hexadecimal string prefixed with 0x.

transactionIndexintegerrequired

A field representing the index of the transaction that generated the log. Indicates the order within the block. Provided in decimal string format.

blockHashstringrequired

A field representing the hash of the block that generated the log. Provided as a 64-character hexadecimal string prefixed with 0x.

blockNumberintegerrequired

A field representing the block number that generated the log.

datastringrequired

A field representing the data of the log. Provided as a hexadecimal string prefixed with 0x. This field represents the event data of the log.

logIndexintegerrequired

A field representing the index of the log. Indicates the order of events in the transaction. Provided in decimal string format.

removedbooleanrequired

A field indicating whether the log was removed. Returns true if the log was removed due to chain reorganization (Reorg).

topicsstring[]required

A field representing the indexed arguments of the log. Can have up to 4 topics.

decodedLogobject

A field representing the event data of the log. Included in the response only when the withDecode parameter is set to true.

예: [object Object]

namestringrequired

A field representing the event name of the log.

eventFragmentstringrequired

A field representing the event fragment of the log.

signaturestringrequired

A field representing the event signature of the log.

eventHashstringrequired

A field representing the event hash of the log.

argsobject[]required

A field representing the arguments of the log.

namestring

A field representing the name of the argument.

typestring

A field representing the type of the argument.

valuestring

A field representing the value of the argument.

X-API-KEY
RequestCU500
cURL
curl -X POST "https://web3.nodit.io/v1/ethereum/mainnet/blockchain/getTransactionsByHashes" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "transactionHashes": ["0x45d5ca108b4bf1e11e2ca6e92c6ee34911cd458726400ebb9810a4e2a51eaa98", "0x57703b1e8e372ae1d84362d6687102237199604ef72a27b9127ca307ea746c18"],
  "withLogs": false,
  "withDecode": false
}'
Response
Example · 200
[
  {
    "transactionHash": "0x75f0194c076da2fbcf09b7e5cd302ee25a8b97ec5110bb89184682170e7dd5c4",
    "transactionIndex": "6",
    "blockHash": "0x34c66823a963328f629116378f54d147ab67ab9d703c5898cf0b6a8822a778c8",
    "blockNumber": 21309845,
    "from": "0xae2Fc483527B8EF99EB5D9B44875F005ba1FaE13",
    "to": "0x1f2F10D1C40777AE1Da742455c65828FF36Df387",
    "value": "25809147711",
    "input": "0x59fba26c3f9c8ecef989def3c5c8ad037487462d83c0410ba900b1f1ee126e9c96231cc3d3fad7c08b4cf873b1f10bb8",
    "functionSelector": "0x59fba26c",
    "nonce": "3908954",
    "gas": "136930",
    "gasPrice": "17716724232",
    "maxFeePerGas": "17716724232",
    "maxPriorityFeePerGas": "1",
    "gasUsed": "95851",
    "cumulativeGasUsed": "1602350",
    "effectiveGasPrice": "17716724232",
    "contractAddress": null,
    "type": "2",
    "status": "1",
    "logsBloom": "0x00040000000000000000000000000000000000000000000800000000000000000000000000000000000010000000000002000000080020000000000000000000000000000000000800000008000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010000800000000000000000001000040000000000000000000000010000000000000000000040000000000000000000000000000000000000000000040000000000000000000000002000000000000000000000000000000000000000000000000080000000000202000000000000000000000008000000000000000000000000000000000",
    "accessList": [
      {
        "storageKeys": [
          "0x0000000000000000000000000000000000000000000000000000000000000002",
          "0x9c04773acff4c5c42718bd0120c72761f458e43068a3961eb935577d1ed4effb",
          "0x000000000000000000000000000000000000000000000000000000000000004c",
          "0x000000000000000000000000000000000000000000000000000000000000004d",
          "0x0000000000000000000000000000000000000000000000000000000000000000",
          "0x0000000000000000000000000000000000000000000000000000000000000004"
        ],
        "address": "0xfba26c3f9c8ecef989def3c5c8ad037487462d83"
      },
      {
        "storageKeys": [
          "0xa5533e53a8bb0cc43dd0fcc3460eba5629e7373d9977a4dc5094a3f36e1dfa3a",
          "0xe2eb0e48c234efbf3a46eecd032658a631dc8c81678d34452f2bc4e36fa35c88"
        ],
        "address": "0xb1f1ee126e9c96231cc3d3fad7c08b4cf873b1f1"
      },
      {
        "storageKeys": [
          "0xbd5af5151dcb9feb2c4ef23509c863dd4415e4d2c27b5c08786933a8ed41acc7",
          "0x29a02af4bc820597ed371018254b6b3519f55009a450e372cca58ead735350fd"
        ],
        "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
      }
    ],
    "timestamp": 1733082431,
    "logs": [
      {
        "contractAddress": "0xB1F1ee126e9c96231Cc3d3fAD7C08b4cf873b1f1",
        "transactionHash": "0x75f0194c076da2fbcf09b7e5cd302ee25a8b97ec5110bb89184682170e7dd5c4",
        "transactionIndex": 6,
        "blockHash": "0x34c66823a963328f629116378f54d147ab67ab9d703c5898cf0b6a8822a778c8",
        "blockNumber": 21309845,
        "data": "0x000000000000000000000000000000000000000000000000410ba9e7b561fe8e",
        "logIndex": 72,
        "removed": false,
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "0x000000000000000000000000fba26c3f9c8ecef989def3c5c8ad037487462d83",
          "0x0000000000000000000000001f2f10d1c40777ae1da742455c65828ff36df387"
        ],
        "decodedLog": {
          "name": "Transfer",
          "eventFragment": "Transfer",
          "signature": "Transfer(address,address,uint256)",
          "eventHash": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "args": [
            {
              "name": "from",
              "type": "address",
              "value": "0xfBa26C3F9C8eCeF989def3C5c8aD037487462d83"
            },
            {
              "name": "to",
              "type": "address",
              "value": "0x1f2F10D1C40777AE1Da742455c65828FF36Df387"
            },
            {
              "name": "value",
              "type": "uint256",
              "value": "4687026649854770830"
            }
          ]
        }
      },
      {
        "contractAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "transactionHash": "0x75f0194c076da2fbcf09b7e5cd302ee25a8b97ec5110bb89184682170e7dd5c4",
        "transactionIndex": 6,
        "blockHash": "0x34c66823a963328f629116378f54d147ab67ab9d703c5898cf0b6a8822a778c8",
        "blockNumber": 21309845,
        "data": "0x000000000000000000000000000000000000000000000000060258573f000000",
        "logIndex": 73,
        "removed": false,
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "0x0000000000000000000000001f2f10d1c40777ae1da742455c65828ff36df387",
          "0x000000000000000000000000fba26c3f9c8ecef989def3c5c8ad037487462d83"
        ],
        "decodedLog": {
          "name": "Transfer",
          "eventFragment": "Transfer",
          "signature": "Transfer(address,address,uint256)",
          "eventHash": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "args": [
            {
              "name": "from",
              "type": "address",
              "value": "0x1f2F10D1C40777AE1Da742455c65828FF36Df387"
            },
            {
              "name": "to",
              "type": "address",
              "value": "0xfBa26C3F9C8eCeF989def3C5c8aD037487462d83"
            },
            {
              "name": "value",
              "type": "uint256",
              "value": "433005645923352576"
            }
          ]
        }
      },
      {
        "contractAddress": "0xfBa26C3F9C8eCeF989def3C5c8aD037487462d83",
        "transactionHash": "0x75f0194c076da2fbcf09b7e5cd302ee25a8b97ec5110bb89184682170e7dd5c4",
        "transactionIndex": 6,
        "blockHash": "0x34c66823a963328f629116378f54d147ab67ab9d703c5898cf0b6a8822a778c8",
        "blockNumber": 21309845,
        "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffbef456184a9e0172000000000000000000000000000000000000000000000000060258573f00000000000000000000000000000000000000000000004ddaa276e10f69992f50c7ab000000000000000000000000000000000000000000000012b29af6787d922533ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa2ff",
        "logIndex": 74,
        "removed": false,
        "topics": [
          "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
          "0x0000000000000000000000001f2f10d1c40777ae1da742455c65828ff36df387",
          "0x0000000000000000000000001f2f10d1c40777ae1da742455c65828ff36df387"
        ],
        "decodedLog": {
          "name": "Swap",
          "eventFragment": "Swap",
          "signature": "Swap(address,address,int256,int256,uint160,uint128,int24)",
          "eventHash": "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
          "args": [
            {
              "name": "sender",
              "type": "address",
              "value": "0x1f2F10D1C40777AE1Da742455c65828FF36Df387"
            },
            {
              "name": "recipient",
              "type": "address",
              "value": "0x1f2F10D1C40777AE1Da742455c65828FF36Df387"
            },
            {
              "name": "deltaQty0",
              "type": "int256",
              "value": "-4687026649854770830"
            },
            {
              "name": "deltaQty1",
              "type": "int256",
              "value": "433005645923352576"
            },
            {
              "name": "sqrtP",
              "type": "uint160",
              "value": "24094658801222881921974978475"
            },
            {
              "name": "liquidity",
              "type": "uint128",
              "value": "344911263209299780915"
            },
            {
              "name": "currentTick",
              "type": "int24",
              "value": "-23809"
            }
          ]
        }
      }
    ]
  }
]