existing example for blocktag? #2759
Unanswered
dellwatson
asked this question in
Q&A
Replies: 2 comments
-
Blocktag would work if the node has archival access. Infura doesn't give archive access in free tier, need to take the pro version. For alchemy it'd work. const balanceAtOldBlock = await tokenContract.balanceOf({
blockTag: 100000,
}); Basically for a view/pure method, you can pass a blockTag override. Note that, for non-archive nodes (infura), the block tag is ignored. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are you using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've tried override blocktag using infura and alchemy api, but none of them working.
Is there any example for this?
Beta Was this translation helpful? Give feedback.
All reactions