Skip to content

Commit

Permalink
fix: etherscan activity api endpoint query params, polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
NickKelly1 committed Aug 16, 2024
1 parent 3595994 commit 09efecd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const getAddressActivity = async (
): Promise<EthereumRawInfo[]> => {
return cacheFetch(
{
url: `${endpoint}api?module=account&action=txlist&address=${address}&page=1&offset=50&sort=desc`,
// Note: would like to add offset=50 (i.e. results per page) but it seems to cause polygon API to hang
url: `${endpoint}api?module=account&action=txlist&address=${address}&sort=desc`,
},
TTL
).then((res) => {
Expand Down

1 comment on commit 09efecd

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.