ZELF
Zelf Documentation
Zelf Documentation
  • Welcome
  • Getting Started
    • How it works
    • WhitePaper
    • Zelf Proofs vs Others
    • Privacy Preserving
    • Use cases
    • Downloads
  • Functions
    • Authentication
    • Create a ZelfProof
    • Decrypt a ZelfProof
    • Preview ZelfProof
  • Zelf Name Service
    • Offline Version
      • Decryption
    • Online Version
      • Retrieve public key
      • Create a session
      • PGP Encryption
      • Lease a Zelf Name
      • Preview a ZelfName
      • Decrypt a ZelfName
    • Arweave ZNS Storage
    • Zelf Wallet Design
  • BlockChains
    • MINA
      • Get Balance
      • Get Token
      • Get Transactions
    • ETH
      • Adress Lookup
      • Transactions list
      • Transaction details
      • Gas Tracker
  • Integrations
  • Zelf Legal
    • Team Members
    • Terms of Use
    • Privacy Policy
  • Airdrop
    • Airdrop Rules
    • Reglas de Airdrop
    • Pricing per Domain
  • Verify our Partners
    • Acquisition Team
  • Roadmap
    • Q1 2025
    • Q2 2025
    • Q3 2025
    • Q4 2025
Powered by GitBook
On this page

Was this helpful?

  1. BlockChains
  2. ETH

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": ""
    }
}
{
    "error": "transaction_not_found"
}

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);
    });
curl --location 'https://api.zelf.world/api/ethereum/transaction/0xd3d0083050f9e5cc1d0d51b87fb9ec18a8c643027684be2f7557a910d3598dbe' \
--header 'Authorization: Bearer your_access_token_here'
use reqwest::blocking::Client;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new();

    let res = client
        .get("https://api.zelf.world/api/ethereum/transaction/0xd3d0083050f9e5cc1d0d51b87fb9ec18a8c643027684be2f7557a910d3598dbe")
        .header("Authorization", "Bearer your_access_token_here")
        .send()?
        .text()?;

    println!("{}", res);
    Ok(())
}
PreviousTransactions listNextGas Tracker

Last updated 7 months ago

Was this helpful?