Skip to content

Commit bd4221f

Browse files
authored
Merge pull request #13 from Tguntenaar/bug/stake-txn-nearblocks-rate-limit
Reduce the limit to 75 instead of 250
2 parents a25080a + 5d058e9 commit bd4221f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export async function getUserStakePoolsForBlockHeights(
332332

333333
// Fetch staking transactions if at least one block height is missing from cache
334334
const { data } = await axios.get(
335-
`https://api3.nearblocks.io/v1/account/${account_id}/stake-txns?per_page=250`,
335+
`https://api3.nearblocks.io/v1/account/${account_id}/stake-txns?per_page=75`,
336336
{
337337
headers: {
338338
Authorization: `Bearer ${process.env.NEARBLOCKS_API_KEY}`,

0 commit comments

Comments
 (0)