Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gavfu committed Jun 20, 2024
1 parent d1e7c66 commit 1ab7bde
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/developers/upload-and-download-blobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ Should be the [DASAddress](../resources/ethda-contracts) contract.
#### `value`
Blobs storage fee. The calculation formula is:

$$value = (Size_{blobs} * Params_{BlobTxBlobGasPerBlob}) * blobBaseFee$$
$$value = (Size_{blobs} * Params_{BlobTxBlobGasPerBlob}) * blobBaseFee + priorityFee$$

where:
- $(Size_{blobs} * Params_{BlobTxBlobGasPerBlob}) * blobBaseFee$ is the base fee, and $priorityFee$ is adjusted by the market, and user could set it to, like 10% of the base fee
- $Size_{blobs}$ means blob count carried by the blob transanction
- $Params_{BlobTxBlobGasPerBlob}$ is the `BlobTxBlobGasPerBlob` param value of geth, which is 131072
- `blobBaseFee` could be queried via `eth_blobBaseFee`
- $Params_{BlobTxBlobGasPerBlob}$ is the `BlobTxBlobGasPerBlob` param value of Geth, which is 131072
- $blobBaseFee$ could be queried via `eth_blobBaseFee`

For a golang implementation, please refer to [blob-utils](https://github.com/crustio/blob-utils/blob/main/blob.go).

Expand Down

0 comments on commit 1ab7bde

Please sign in to comment.