You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Example: Fetching the Current Block Number
The following code snippet demonstrates how to fetch and print the current
block number from Ink's testnet:
## Viem - Instructions for Connecting to Ink
The section promises a snippet but provides none.
Given the current situation, I have reached two conclusions:
Sections 1 and 3 of the file already contain examples demonstrating how to retrieve the block:
Context
src/pages/build/onchain-clients.mdx, lines ~38-40:The section promises a snippet but provides none.
Given the current situation, I have reached two conclusions:
const blockNumber = await provider.getBlockNumber();const blockNumber = await client.getBlockNumber();This section might therefore be redundant, so I submitted a PR to remove it: #668
I opened both PRs so you can pick one - happy to close
the other (or you can close it directly).