Use eth-blob-uploader to upload files via blobs
Introduction
In this tutorial, we will demonstrate how to upload an image using the eth-blob-uploader tool. The image will be uploaded to the blockchain using EIP-4844 blob transaction.
Installation
If you have not already done so, you can install eth-blob-uploader
using the following command:
Basic Operation
Basically, you can upload the file using the following syntax:
In the following example, you will upload the file img.jpeg
to the address 0xaa...
using the private key 0x...a7
via RPC http://...rpc.io
.
More Options
If the to-address
is a smart contract, you will need to pass in calldata using -d
.
You can specify the number of blobs that come with a transaction using -c
, with default value set to 3
.
You can also override the pending transaction by passing in parameters such as nonce(-n
) and gas(-g
for transaction gas and -b
for blob gas).
Last updated