API Reference

get transactions - Enhanced APIs

Retrieve one or more transactions from the chain.

This endpoint is supported on the following chains and networks:

  • Conflux: Core
  • Ethereum

Parameters

  • transactions: [string] a space-separated list of one or more transaction identifiers(required)

Returns

  • gasPrice: [int]
  • hash:[string] transaction hash
  • blockHash:[string] block hash
  • blockNumber: [int] the number of block
  • transactionIndex: [int] the number of transaction index
  • nonce: [int]
  • timestamp: [int]
  • from:[string] address hash
  • to: [string] address hash
  • value: [int]
  • gas: [int]
  • input: [string]
  • receipt: [string]
  • log: [string]

Example

Request

curl --location --request GET 'https://eth-mainnet.unifra.io/v1/de06bac5217b49c3af79fd3aeb06a87b/enhanced-api/transactions?transactions=0xafd4bb47fddcdc574611e1a4e6bf6a987dcf3bef4b4c78ab71a7a5f0e0983339'

Response

{
    "data": [
        {
            "gasPrice": 12825469674,
            "hash": "0xafd4bb47fddcdc574611e1a4e6bf6a987dcf3bef4b4c78ab71a7a5f0e0983339",
            "blockHash": "0x39ea7e2989cfaa4ac4b02c7b6934cb1d9a260afaab29a3a6f1eae9429cc84f00",
            "blockNumber": 15369818,
            "transactionIndex": 161,
            "nonce": 8685484,
            "timestamp": 1660890994,
            "from": "0x3cd751e6b0078be393132286c442345e5dc49699",
            "to": "0x086baad342abdac5b4ef3f8d9e33826d3fea937c",
            "value": 6500000000000000,
            "gas": 21000,
            "input": "0x",
            "receipt": {
                "status": 1,
                "contractAddress": "0x0",
                "gasUsed": 21000
            }
        },
        {
            "gasPrice": 62504159423,
            "hash": "0x0f7c6bdacdc15702eb3c7e41ebb7b62daf9c3ed2a3a20d2004c96fe97e57715d",
            "blockHash": "0xa0d2805a95c355cf4164e63d0d0dba0c18c04d39cf9a7f56647149c0009e49dc",
            "blockNumber": 15369843,
            "transactionIndex": 19,
            "nonce": 4489137,
            "timestamp": 1660891529,
            "from": "0x28c6c06298d514db089934071355e5743bf21d60",
            "to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "value": 0,
            "gas": 207128,
            "input": "0xa9059cbb000000000000000000000000250fde76d93296a00505c316bedf6afe9566b4f80000000000000000000000000000000000000000000000000000000057f4e6eb",
            "receipt": {
                "status": 1,
                "contractAddress": "0x0",
                "gasUsed": 46109,
                "logs": [
                    {
                        "logIndex": 17,
                        "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                        "topics": [
                            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                            "0x00000000000000000000000028c6c06298d514db089934071355e5743bf21d60",
                            "0x000000000000000000000000250fde76d93296a00505c316bedf6afe9566b4f8"
                        ],
                        "data": "0x0000000000000000000000000000000000000000000000000000000057f4e6eb"
                    }
                ]
            }
        }
    ]
}
Language
Click Try It! to start a request and see the response here!