viem icon indicating copy to clipboard operation
viem copied to clipboard

EIP-4844 Blob Transactions Failing on Sepolia After Fusaka Upgrade

Open iteyelmp opened this issue 1 year ago • 9 comments

Check existing issues

Viem Version

2.38.2

Current Behavior

After the Fusaka upgrade on Sepolia, sending EIP-4844 transactions fails with the error:

legacy blob tx is not supported

After investigation, it seems that the way blob proofs are computed has changed. Previously, we used compute-blob-kzg-proof, but now it seems we should use compute_cells_and_kzg_proofs.

However, the output of compute_cells_and_kzg_proofs is no longer a single hex string—it returns an array of arrays. This raises a question: do the blob-related fields in the transaction format need to be updated to reflect this new structure?

Requesting clarification or guidance on how EIP-4844 transactions should be constructed post-Fusaka on Sepolia.

Expected Behavior

No response

Steps To Reproduce

No response

Link to Minimal Reproducible Example

No response

Anything else?

No response

iteyelmp avatar Oct 14 '25 11:10 iteyelmp

Aw man 😭 will look.

jxom avatar Oct 14 '25 11:10 jxom

Hey @jxom, we at AztecProtocol/aztec3-packages are interested in this, since our testnet client stopped being able to push blobs after fusaka went in. Is there anything we can do here to help? Or a rough timeline you can share?

spalladino avatar Oct 14 '25 12:10 spalladino

@jxom my guess from looking at alloy-rs code here (thanks to @mattsse for the link) is that the following needs to use compute_cells_and_kzg_proofs from https://github.com/ethereum/c-kzg-4844 as opposed to compute_blob_kzg_proof:

https://github.com/wevm/viem/blob/5031192b959997f6972b862489c11879e8f44353/src/utils/blob/blobsToProofs.ts#L87

spalladino avatar Oct 14 '25 13:10 spalladino

I've Clauded a fix for this in https://github.com/wevm/viem/pull/4022. I manually ran the src/actions/wallet/sendRawTransaction.test.ts 4844 test against a Sepolia node and it worked successfully. I'm happy to iterate on the PR as needed.

spalladino avatar Oct 14 '25 17:10 spalladino

I can take a look when I find some time, but for the meantime, you can use the preview release.

jxom avatar Oct 18 '25 03:10 jxom

Thanks @jxom, I ended up publishing a fork here. We've been testing it in our internal test networks and it seems to be working fine on Sepolia.

spalladino avatar Oct 20 '25 14:10 spalladino

any updates on this?

juliopavila avatar Apr 16 '26 19:04 juliopavila

Resolved on current v3 prerelease: https://v3.viem.sh/

jxom avatar Jul 28 '26 01:07 jxom

This issue has been locked since it has been closed for more than 14 days.

If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Viem version. If you have any questions or comments you can create a new discussion thread.

github-actions[bot] avatar Sep 02 '26 00:09 github-actions[bot]