Transactions list

ETH transactions list

API Endpoint: GET /api/ethereum/transactions

Description:

This endpoint retrieves a paginated list of Ethereum transactions for a specific wallet address.

Base URL:

https://api.zelf.world

Request

  • Method: GET

  • URL: /api/ethereum/transactions

Query Parameters:

Parameter
Type
Required
Description

address

String

Yes

Ethereum wallet address to query.

page

Number

Yes

Page number to fetch.

show

Number

Yes

Number of records per page (max: 100).

Example Request:

GET https://api.zelf.world/api/ethereum/transactions?address=0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97&page=1&show=10

Headers:

Header
Type
Required
Description

Authorization

String

Yes

Bearer token for authentication.

Example Header:

const axios = require('axios');

let config = {
    method: 'get',
    url: 'https://api.zelf.world/api/ethereum/transactions',
    params: {
        address: '0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97',
        page: 1,
        show: 10
    },
    headers: {
        'Authorization': 'Bearer your_access_token_here'
    }
};

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

Response

The response will contain paginated information about Ethereum transactions, including transaction hash, block number, timestamp, from and to addresses, amount, asset type, fiat value, and transaction fee.

Fields in the Response:

  • data (Object): Contains the transaction data.

    • pagination (Object): Contains pagination information.

      • records (String): The total number of records.

      • pages (String): Total number of pages.

      • page (String): Current page number.

    • transactions (Array of Objects): List of transactions.

      • hash (String): The transaction hash.

      • method (String): The transaction method (e.g., "Transfer").

      • block (String): Block number.

      • age (String): Time since the transaction was made.

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

      • traffic (String): Transaction direction (e.g., "OUT").

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

      • fiatAmount (String): Fiat value of the transaction.

      • amount (String): Amount transferred.

      • asset (String): The asset involved (e.g., ETH).

      • txnFee (String): The transaction fee.


Example Response:

{
    "data": {
        "pagination": {
            "records": "719527",
            "pages": "10000",
            "page": "1"
        },
        "transactions": [
            {
                "hash": "0x54aba7e0fcf69eecdb66e7e6047c097de30c552991deecd196183cf23c4d264d",
                "method": "Transfer",
                "block": "20807922",
                "age": "7 secs ago",
                "from": "0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97",
                "traffic": "OUT",
                "to": "0xEe5F5c53CE2159fC6DD4b0571E86a4A390D04846",
                "fiatAmount": "133.86",
                "amount": "0.051885516",
                "asset": "ETH",
                "txnFee": "0.00041078"
            },
            {
                "hash": "0x8b47abcc55eea05ff2ff53a71bd1752a6a3abc74476351367c3c0303c0996c5c",
                "method": "Transfer",
                "block": "20807921",
                "age": "19 secs ago",
                "from": "0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97",
                "traffic": "OUT",
                "to": "0x4675C7e5BaAFBFFbca748158bEcBA61ef3b0a263",
                "fiatAmount": "160.50",
                "amount": "0.062212403",
                "asset": "ETH",
                "txnFee": "0.00041936"
            }
        ]
    }
}

Last updated