Replies: 1 comment 1 reply
-
Would be good to add this to the glossary. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently migrated from ethers.js v5 to Viem and I wanted to use the
blockTag
options to the getBalance action.I ethers.js v5,
blockTag
is defined like this:latest
: Refers to the most recently mined block.earliest
: Refers to the earliest available block, which is the genesis block for the blockchain.pending
: Refers to the transactions that are currently in the pending state and have not yet been included in a block.Viem describes blockTag type as
'latest' | 'earliest' | 'pending' | 'safe' | 'finalized'
, however I cannot find any documentation about their meaning.My questions are the following:
latest
,earliest
andpending
?safe
andfinalized
blockTag
states mean?Beta Was this translation helpful? Give feedback.
All reactions