Transaction details

ETH Transaction details

API Endpoint: GET /api/ethereum/transaction/{transactionHash}

Description:

This endpoint retrieves detailed information about a specific Ethereum transaction based on its transaction hash.

Base URL:

https://api.zelf.world

Request

  • Method: GET

  • URL: /api/ethereum/transaction/{transactionHash}

Path Parameters:

Parameter
Type
Required
Description

transactionHash

String

Yes

The hash of the Ethereum transaction to retrieve.

Example Request:

GET https://api.zelf.world/api/ethereum/transaction/0xd3d0083050f9e5cc1d0d51b87fb9ec18a8c643027684be2f7557a910d3598dbe

Headers:

Header
Type
Required
Description

Authorization

String

Yes

Bearer token for authentication.

Example Header:

{
    "Authorization": "Bearer your_access_token_here"
}

Response

The response will contain detailed information about the Ethereum transaction, including the transaction hash, status, block number, timestamp, the addresses involved (sender and recipient), value transferred in ETH, gas price, transaction fees, and any additional observations.

Fields in the Response:

  • data (Object): Contains the transaction data.

    • id (String): Transaction hash.

    • status (String): Transaction status (e.g., "Success").

    • block (String): Block number in which the transaction was included.

    • timestamp (String): The date and time when the transaction was executed.

    • from (String): Sender’s wallet address.

    • to (String): Recipient's wallet address.

    • valueETH (String): Value transferred in ETH.

    • valueDolar (String): Value transferred in USD (if available).

    • transactionFeeETH (String): Transaction fee in ETH.

    • transactionFeeDolar (String): Transaction fee in USD (if available).

    • gasPrice (String): Gas price in GWEI.

    • gweiETH (String): Gas price in ETH.

    • observation (String): Any additional information or notes regarding the transaction.


Example Response:

{
    "data": {
        "id": "0x2e7b5a8c70d9b32392140c4f4134a360ec41482942f321d0b8144c5d9651b94a",
        "status": "Success",
        "block": "20814402",
        "timestamp": "1 min ago (Sep-23-2024 04:13:23 PM UTC)",
        "from": "0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97",
        "to": "0xeBec795c9c8bBD61FFc14A6662944748F299cAcf",
        "valueETH": "0.128496594794930199",
        "valueDolar": "345.81",
        "transactionFeeETH": "0.0015399944778904",
        "transactionFeeDolar": "4.14",
        "gasPrice": "73.14150928",
        "gweiETH": "0.00000007314150928",
        "observation": ""
    }
}

Code Examples

const axios = require('axios');

let config = {
    method: 'get',
    url: 'https://api.zelf.world/api/ethereum/transaction/0xd3d0083050f9e5cc1d0d51b87fb9ec18a8c643027684be2f7557a910d3598dbe',
    headers: {
        'Authorization': 'Bearer your_access_token_here'
    }
};

axios.request(config)
    .then(response => {
        console.log(JSON.stringify(response.data));
    })
    .catch(error => {
        console.error(error);
    });

Last updated