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
Updated the Ethers.js and Viem examples in `src/pages/build/onchain-clients.mdx` to wrap `await` calls in an explicit `async` function, since both examples previously used `await` without providing an async execution context.
3.**Using the Provider**: You can now use the `provider` to interact with Ink's testnet. For example, you can fetch the current block number or interact with smart contracts deployed on the testnet.
31
38
32
-
```javascript
33
-
// previous code
34
-
constblockNumber=awaitprovider.getBlockNumber();
35
-
console.log(blockNumber);
36
-
```
37
-
38
39
### Example: Fetching the Current Block Number
39
40
40
41
The following code snippet demonstrates how to fetch and print the current block number from Ink's testnet:
0 commit comments