In your own project you would write:
const client = createPublicClient({ chain: avalanche, transport: http() })Here that is done for you. Same viem, same methods, pointed at a chain inside this tab.
const height = await client.getBlockNumber() console.log(height)
Note what comes back: a bigint, not a number.
// Everything here is real viem. Try it. // `client` is already connected — see the notes on the left.