Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback for “Query API” #1650

Open
fantarics opened this issue Jun 2, 2024 · 2 comments
Open

Feedback for “Query API” #1650

fantarics opened this issue Jun 2, 2024 · 2 comments

Comments

@fantarics
Copy link

ankr_getTransactionsByAddress method
Works terribly.
Troubled blockchains:

  • polygon (max 100 txs per address to fetch)
  • optimism (max 30 txs per address to fetch)
  • arbitrum (max ? txs per address to fetch)
    Cannot fetch anymore than that even if I decrease the page size. If I increase, straigh to -32000 error
@fantarics
Copy link
Author

Requests to prove:

curl --location -g --request POST 'https://rpc.ankr.com/multichain/*YOUR-KEY-HERE*'
--header 'Content-Type: application/json'
--data-raw '{
"id": 1,
"jsonrpc": "2.0",
"method": "ankr_getTransactionsByAddress",
"params": {
"address": "0xf7767FF37d7DEE778EdA7Bea5866e09e22F58329",
"blockchain": ["optimism"],
"pageSize": 100
}
}'

@fantarics
Copy link
Author

Requests to prove:

curl --location -g --request POST 'https://rpc.ankr.com/multichain/*YOUR-KEY-HERE*' --header 'Content-Type: application/json' --data-raw '{ "id": 1, "jsonrpc": "2.0", "method": "ankr_getTransactionsByAddress", "params": { "address": "0xf7767FF37d7DEE778EdA7Bea5866e09e22F58329", "blockchain": ["optimism"], "pageSize": 100 } }'

If you change pageSize to 30, it will work. If you try to fetch the next page - it fill fail
If you change pageSize to 31 - it will fail straightaway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant