Skip to main content
GET
/
?module=transaction&action=gettxinfo
Get Transaction Info by Transaction Hash
curl --request GET \
  --url 'https://eth.blockscout.com/api/?apikey=&module=transaction&action=gettxinfo'
{
  "status": "1",
  "message": "OK",
  "result": {
    "blockNumber": "<string>",
    "timeStamp": "<string>",
    "hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
    "nonce": "<string>",
    "blockHash": "<string>",
    "transactionIndex": "<string>",
    "from": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae",
    "to": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae",
    "value": "<string>",
    "gas": "<string>",
    "gasPrice": "<string>",
    "isError": "0",
    "txreceipt_status": "0",
    "input": "<string>",
    "contractAddress": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae",
    "cumulativeGasUsed": "<string>",
    "gasUsed": "<string>",
    "confirmations": "<string>"
  }
}

Authorizations

apikey
string
query
required

Optional API key for increased rate limits.

Without API key:

  • 5 requests per second (shared pool)
  • No registration required

With API key:

  • 10 requests per second per key
  • Up to 3 free keys per account
  • Get your API key at https://blockscout.com (login required)

Usage: Add apikey=YOUR_KEY to any request query string.

Query Parameters

module
enum<string>
required

Module name (must be 'transaction')

Available options:
transaction
action
enum<string>
required
Available options:
gettxinfo
txhash
string
required

Transaction hash 64-character hexadecimal transaction hash with 0x prefix

Example:

"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"

Response

200 - application/json

Transaction info retrieved successfully

status
enum<string>

Status code (1 = OK)

Available options:
1
message
string

Response message

Example:

"OK"

result
object