Skip to content

Account endpoint for unused addresses returns huge list of transactions #53

@dcmattb

Description

@dcmattb

For a valid but non-existant/unused address, the API performs a redirect to tx.json, resulting in a huge amount of transaction data.
Example, for the random valid address: rJiiuDYfa7rvkurL2GLUTmjpSHrHeeH49J

curl https://api.xrpscan.com/api/v1/account/rJiiuDYfa7rvkurL2GLUTmjpSHrHeeH49J
returns:
Found. Redirecting to https://data.xrpscan.com/tx.json

If the redirect is followed, the result is a json output including "error" ("actNotFound")
curl -L https://api.xrpscan.com/api/v1/account/rJiiuDYfa7rvkurL2GLUTmjpSHrHeeH49J

{
  "error":
  {
    "status": "error",
     "error": "actNotFound",
     "error_code": 19,
     "error_message": "Account not found."
  },
  "settings": {},
  "transactions":
    [      huge list of 256,000 transactions    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions