Skip to content
This repository was archived by the owner on Dec 26, 2024. It is now read-only.
This repository was archived by the owner on Dec 26, 2024. It is now read-only.

Incorrect result of txlistinternal method #84

@Catzilla

Description

@Catzilla

Description:

txlistinternal method returns transactions that does not related to specified hash

Package version:

10.0.5

Code to reproduce:

const api = require('etherscan-api').init('YourApiKeyToken');

const hash = '0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170';

const internal = api.account.txlistinternal(hash);

console.log(internal); // returns list of 10k transactions

Correct endpoint call will return only single one:
https://api.etherscan.io/api?module=account&action=txlistinternal&txhash=0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170&apikey=YourApiKeyToken

Reason:

Default values of parameters startblock and endblock are added to request, but they are not designed to be used in conjunction with the txhash parameter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions