1.1.1 • Published 24 hours ago

eth-blob-uploader v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
24 hours ago

Upload EIP4844 Blobs

eip-4844 blobs upload tool.

Installation

With npm do

Globally:

npm install -g eth-blob-uploader

eth-blob-uploader -r <rpc> -p <private-key> -f <file-path> -t <to-address>

Locally:

npm install eth-blob-uploader

npx eth-blob-uploader -r <rpc> -p <private-key> -f <file-path> -t <to-address>

Parameters

Required

Short NameFull Namedescription
-r--rpcprovider url
-p--privateKeyprivate key
-f--fileupload file path
-t--toto address

Optional

Short NameFull Namedescription
-d--dataCalldata for contract calls
-v--valueThe amount of ETH that will be sent per transaction. If a file has multiple transactions, the total ETH amount is "value * txCount"
-c--countThe number of blobs attached to the transaction
-n--nonceTransaction nonce
-g--gasPriceTransaction gas price
-b--blobPriceBlob gas price

Command

eth-blob-uploader -r <rpc> -p <private-key> -f <file-path> -t <to-address>

// If you are calling a contract function, you need to bring calldata
eth-blob-uploader -r <rpc> -p <private-key> -f <file-path> -t <to-address> -d [calldata]

// You can set the eth that will be sent with each transaction via -v
eth-blob-uploader -r <rpc> -p <private-key> -f <file-path> -t <to-address> -v [value]

// You can specify the number of blobs uploaded in one transaction
eth-blob-uploader -r <rpc> -p <private-key> -f <file-path> -t <to-address> -c [count]

// output: send hash 

Note: A file may contain n blobs and there will be n/3 transactions, so -v should not be the total ETH, but the number of each transaction.

Example

eth-blob-uploader -r http://65.109.115.36:8545/ -p 0xa...a -f /User/a/b.jpg -t 0x13b...
eth-blob-uploader -r http://65.109.115.36:8545/ -p 0xa...a -f /User/a/b.jpg -t 0x13b... -d 0xabc...00ac
eth-blob-uploader -r http://65.109.115.36:8545/ -p 0xa...a -f /User/a/b.jpg -t 0x13b... -v 8912830000
eth-blob-uploader -r http://65.109.115.36:8545/ -p 0xa...a -f /User/a/b.jpg -t 0x13b... -c 6
1.1.1

24 hours ago

1.1.0

3 days ago

1.0.7

2 months ago

1.0.6

3 months ago

1.0.5

3 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago