We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
latest
While set the options includeTransactions to true, onBlock fetch undefined instead of transactions arrays.
client.watchBlocks({ includeTransactions: true, onBlock: async (block) => { console.log(block.transactions) }, onError: (error) => console.error(error), });
return array of transactions
No response
The text was updated successfully, but these errors were encountered:
Needs repro. We have a test for this.
Sorry, something went wrong.
Hello @franklee00.
Please provide a minimal reproduction using StackBlitz, TypeScript Playground (for type issues), or a separate minimal GitHub repository.
Minimal reproductions are required as they save us a lot of time reproducing your config/environment and issue, and allow us to help you faster.
Once a minimal reproduction is added, a team member will confirm it works, then re-open the issue.
The answer is in the test file--adding options below and everything goes well. It works!
`onBlock: (block) => blocks.push(block),
includeTransactions: true, poll: true, `
No branches or pull requests
Check existing issues
Viem Version
latest
Current Behavior
While set the options includeTransactions to true, onBlock fetch undefined instead of transactions arrays.
Expected Behavior
return array of transactions
Steps To Reproduce
No response
Link to Minimal Reproducible Example
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: