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
On Base I try to fetch transaction data with this code: let block = provider.get_block_by_number(block_num, BlockTransactionsKind::Full).await?;
But I get an error:
Error: deserialization error: data did not match any variant of untagged enum BlockTransactions at line 1 column 242358
Caused by:
data did not match any variant of untagged enum BlockTransactions at line 1 column 242358
Using BlockTransactionsKind::Hashes works fine, but then let tx = provider.get_transaction_by_hash(*hash).await?;
Will cause a similar error.
Component
provider, pubsub
What version of Alloy are you on?
0.7.0
Operating System
Linux
Describe the bug
On Base I try to fetch transaction data with this code:
let block = provider.get_block_by_number(block_num, BlockTransactionsKind::Full).await?;
But I get an error:
Using BlockTransactionsKind::Hashes works fine, but then
let tx = provider.get_transaction_by_hash(*hash).await?;
Will cause a similar error.
The same code works fine on the ethereum network. Note that I'm running the base node in snap sync mode, if that can cause problems (I'm not sure):
https://github.com/base-org/node/blob/923f3407cba5b35b0cefca93ef5060e10ba89850/.env.mainnet#L44
The text was updated successfully, but these errors were encountered: