From 5f36cd79a7194d65e64bb667bda902adaf424bda Mon Sep 17 00:00:00 2001 From: gavfu Date: Tue, 16 Jul 2024 05:34:35 +0000 Subject: [PATCH] deploy: 865d7257cfac86a40f0c285f869c1c41e6b3f6a4 --- 404.html | 2 +- assets/js/6a7d98c7.2b1f5e0d.js | 1 - assets/js/6a7d98c7.83a24386.js | 1 + .../{runtime~main.d770c3ec.js => runtime~main.fbb20917.js} | 2 +- developers/how-to/using-ethda-as-altda/index.html | 2 +- developers/how-to/using-ethda-as-dstorage/index.html | 2 +- developers/integrate-with-zkblob/index.html | 2 +- developers/quick-start/bridging-assets-to-ethda/index.html | 2 +- developers/quick-start/connecting-to-ethda/index.html | 2 +- developers/quick-start/using-ethda-faucet/index.html | 2 +- developers/upload-and-download-blobs/index.html | 5 +++-- index.html | 2 +- overview/da/index.html | 2 +- overview/technologies/index.html | 2 +- resources/eips/index.html | 2 +- resources/ethda-contracts/index.html | 2 +- resources/network-configuration/add-ethda-network/index.html | 2 +- .../network-configuration/install-coinbase-wallet/index.html | 2 +- resources/network-configuration/install-metamask/index.html | 2 +- resources/official-links/index.html | 2 +- resources/repositories/index.html | 2 +- 21 files changed, 22 insertions(+), 21 deletions(-) delete mode 100644 assets/js/6a7d98c7.2b1f5e0d.js create mode 100644 assets/js/6a7d98c7.83a24386.js rename assets/js/{runtime~main.d770c3ec.js => runtime~main.fbb20917.js} (98%) diff --git a/404.html b/404.html index 3b7d09f..0ae838d 100644 --- a/404.html +++ b/404.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/assets/js/6a7d98c7.2b1f5e0d.js b/assets/js/6a7d98c7.2b1f5e0d.js deleted file mode 100644 index ba58db5..0000000 --- a/assets/js/6a7d98c7.2b1f5e0d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkethda_docs=self.webpackChunkethda_docs||[]).push([[4958],{3567:(s,a,e)=>{e.r(a),e.d(a,{assets:()=>t,contentTitle:()=>i,default:()=>d,frontMatter:()=>m,metadata:()=>r,toc:()=>h});var n=e(5893),l=e(1151);const m={id:"upload-and-download-blobs",title:"",hide_table_of_contents:!1},i=void 0,r={id:"developers/upload-and-download-blobs",title:"",description:"To submit data to EthDA, users submit blob transactions similar to blob-carrying-transactions introduced by EIP-4844. EthDA blob transactions contain two component, a standard ethereum regular transaction with blob commitments and one or more blobs of data.",source:"@site/docs/developers/upload-and-download-blobs.md",sourceDirName:"developers",slug:"/developers/upload-and-download-blobs",permalink:"/developers/upload-and-download-blobs",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{id:"upload-and-download-blobs",title:"",hide_table_of_contents:!1},sidebar:"mySidebar",previous:{title:"Bridging Assets to EthDA",permalink:"/developers/quick-start/bridging-assets-to-ethda"},next:{title:"Integrate with zkBlob",permalink:"/developers/integrate-with-zkblob"}},t={},h=[{value:"Upload Blobs",id:"upload-blobs",level:2},{value:"Step 1: Encode data to blobs",id:"step-1-encode-data-to-blobs",level:3},{value:"Step 2: Query blob storage fee",id:"step-2-query-blob-storage-fee",level:3},{value:"Step 3: Construct and sign regular transactions",id:"step-3-construct-and-sign-regular-transactions",level:3},{value:"to",id:"to",level:4},{value:"value",id:"value",level:4},{value:"data",id:"data",level:4},{value:"Step 4: Send blob transaction & blobs",id:"step-4-send-blob-transaction--blobs",level:3},{value:"Step 5: Query transaction status",id:"step-5-query-transaction-status",level:3},{value:"Download Blobs",id:"download-blobs",level:2}];function c(s){const a={a:"a",annotation:"annotation",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",li:"li",math:"math",mi:"mi",mo:"mo",mrow:"mrow",msub:"msub",p:"p",pre:"pre",semantics:"semantics",span:"span",strong:"strong",ul:"ul",...(0,l.a)(),...s.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.p,{children:"To submit data to EthDA, users submit blob transactions similar to blob-carrying-transactions introduced by EIP-4844. EthDA blob transactions contain two component, a standard ethereum regular transaction with blob commitments and one or more blobs of data."}),"\n",(0,n.jsx)(a.h2,{id:"upload-blobs",children:"Upload Blobs"}),"\n",(0,n.jsx)(a.h3,{id:"step-1-encode-data-to-blobs",children:"Step 1: Encode data to blobs"}),"\n",(0,n.jsx)(a.p,{children:"Encode raw data to blobs and compute KZG commitments, KZG proofs and versioned hashes."}),"\n",(0,n.jsxs)(a.p,{children:["For a Node.js implementation, please refer to ",(0,n.jsx)(a.a,{href:"https://github.com/crustio/ethda-blobs/blob/main/src/utils/blobs.ts",children:"ethda-blobs"}),"."]}),"\n",(0,n.jsx)(a.h3,{id:"step-2-query-blob-storage-fee",children:"Step 2: Query blob storage fee"}),"\n",(0,n.jsx)(a.p,{children:"Users could use the same execution api added by EIP-4844 to query the base fee per blob in wei, represented as a hexadecimal:"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.strong,{children:"eth_blobBaseFee"})}),"\n",(0,n.jsx)(a.h3,{id:"step-3-construct-and-sign-regular-transactions",children:"Step 3: Construct and sign regular transactions"}),"\n",(0,n.jsx)(a.h4,{id:"to",children:(0,n.jsx)(a.code,{children:"to"})}),"\n",(0,n.jsxs)(a.p,{children:["Should be the ",(0,n.jsx)(a.a,{href:"../resources/ethda-contracts",children:"DASAddress"})," contract."]}),"\n",(0,n.jsx)(a.h4,{id:"value",children:(0,n.jsx)(a.code,{children:"value"})}),"\n",(0,n.jsx)(a.p,{children:"Blobs storage fee. The calculation formula is:"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"v"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"u"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mo,{children:"="}),(0,n.jsx)(a.mo,{stretchy:"false",children:"("}),(0,n.jsx)(a.mi,{children:"S"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"z"}),(0,n.jsxs)(a.msub,{children:[(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"s"})]})]}),(0,n.jsx)(a.mo,{children:"\u2217"}),(0,n.jsx)(a.mi,{children:"P"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"m"}),(0,n.jsxs)(a.msub,{children:[(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"T"}),(0,n.jsx)(a.mi,{children:"x"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"G"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsx)(a.mi,{children:"P"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"})]})]}),(0,n.jsx)(a.mo,{stretchy:"false",children:")"}),(0,n.jsx)(a.mo,{children:"\u2217"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"F"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mo,{children:"+"}),(0,n.jsx)(a.mi,{children:"p"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"t"}),(0,n.jsx)(a.mi,{children:"y"}),(0,n.jsx)(a.mi,{children:"F"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"e"})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"value = (Size_{blobs} * Params_{BlobTxBlobGasPerBlob}) * blobBaseFee + priorityFee"})]})})}),(0,n.jsxs)(a.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"v"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"u"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"e"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(a.span,{className:"mrel",children:"="}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(a.span,{className:"mopen",children:"("}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.05764em"},children:"S"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.04398em"},children:"z"}),(0,n.jsxs)(a.span,{className:"mord",children:[(0,n.jsx)(a.span,{className:"mord mathnormal",children:"e"}),(0,n.jsx)(a.span,{className:"msupsub",children:(0,n.jsxs)(a.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(a.span,{className:"vlist-r",children:[(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.3361em"},children:(0,n.jsxs)(a.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(a.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(a.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(a.span,{className:"mord mtight",children:[(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"s"})]})})]})}),(0,n.jsx)(a.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(a.span,{className:"vlist-r",children:(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(a.span,{})})})]})})]}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(a.span,{className:"mbin",children:"\u2217"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"am"}),(0,n.jsxs)(a.span,{className:"mord",children:[(0,n.jsx)(a.span,{className:"mord mathnormal",children:"s"}),(0,n.jsx)(a.span,{className:"msupsub",children:(0,n.jsxs)(a.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(a.span,{className:"vlist-r",children:[(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.3361em"},children:(0,n.jsxs)(a.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(a.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(a.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(a.span,{className:"mord mtight",children:[(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.13889em"},children:"T"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"x"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"G"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.13889em"},children:"P"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.02778em"},children:"er"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"})]})})]})}),(0,n.jsx)(a.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(a.span,{className:"vlist-r",children:(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(a.span,{})})})]})})]}),(0,n.jsx)(a.span,{className:"mclose",children:")"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(a.span,{className:"mbin",children:"\u2217"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.7778em",verticalAlign:"-0.0833em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.05017em"},children:"B"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"se"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"F"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"ee"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(a.span,{className:"mbin",children:"+"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"p"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"or"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"t"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"F"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"ee"})]})]})]})}),"\n",(0,n.jsx)(a.p,{children:"where:"}),"\n",(0,n.jsxs)(a.ul,{children:["\n",(0,n.jsxs)(a.li,{children:[(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mo,{stretchy:"false",children:"("}),(0,n.jsx)(a.mi,{children:"S"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"z"}),(0,n.jsxs)(a.msub,{children:[(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"s"})]})]}),(0,n.jsx)(a.mo,{children:"\u2217"}),(0,n.jsx)(a.mi,{children:"P"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"m"}),(0,n.jsxs)(a.msub,{children:[(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"T"}),(0,n.jsx)(a.mi,{children:"x"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"G"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsx)(a.mi,{children:"P"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"})]})]}),(0,n.jsx)(a.mo,{stretchy:"false",children:")"}),(0,n.jsx)(a.mo,{children:"\u2217"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"F"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"e"})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"(Size_{blobs} * Params_{BlobTxBlobGasPerBlob}) * blobBaseFee"})]})})}),(0,n.jsxs)(a.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(a.span,{className:"mopen",children:"("}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.05764em"},children:"S"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.04398em"},children:"z"}),(0,n.jsxs)(a.span,{className:"mord",children:[(0,n.jsx)(a.span,{className:"mord mathnormal",children:"e"}),(0,n.jsx)(a.span,{className:"msupsub",children:(0,n.jsxs)(a.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(a.span,{className:"vlist-r",children:[(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.3361em"},children:(0,n.jsxs)(a.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(a.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(a.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(a.span,{className:"mord mtight",children:[(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"s"})]})})]})}),(0,n.jsx)(a.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(a.span,{className:"vlist-r",children:(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(a.span,{})})})]})})]}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(a.span,{className:"mbin",children:"\u2217"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"am"}),(0,n.jsxs)(a.span,{className:"mord",children:[(0,n.jsx)(a.span,{className:"mord mathnormal",children:"s"}),(0,n.jsx)(a.span,{className:"msupsub",children:(0,n.jsxs)(a.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(a.span,{className:"vlist-r",children:[(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.3361em"},children:(0,n.jsxs)(a.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(a.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(a.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(a.span,{className:"mord mtight",children:[(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.13889em"},children:"T"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"x"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"G"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.13889em"},children:"P"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.02778em"},children:"er"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"})]})})]})}),(0,n.jsx)(a.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(a.span,{className:"vlist-r",children:(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(a.span,{})})})]})})]}),(0,n.jsx)(a.span,{className:"mclose",children:")"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(a.span,{className:"mbin",children:"\u2217"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.05017em"},children:"B"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"se"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"F"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"ee"})]})]})]})," is the base fee, and ",(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"p"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"t"}),(0,n.jsx)(a.mi,{children:"y"}),(0,n.jsx)(a.mi,{children:"F"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"e"})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"priorityFee"})]})})}),(0,n.jsx)(a.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"p"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"or"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"t"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"F"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"ee"})]})})]})," is adjusted by the market, and user could set it to, like 10% of the base fee"]}),"\n",(0,n.jsxs)(a.li,{children:[(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"S"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"z"}),(0,n.jsxs)(a.msub,{children:[(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"s"})]})]})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"Size_{blobs}"})]})})}),(0,n.jsx)(a.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.05764em"},children:"S"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.04398em"},children:"z"}),(0,n.jsxs)(a.span,{className:"mord",children:[(0,n.jsx)(a.span,{className:"mord mathnormal",children:"e"}),(0,n.jsx)(a.span,{className:"msupsub",children:(0,n.jsxs)(a.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(a.span,{className:"vlist-r",children:[(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.3361em"},children:(0,n.jsxs)(a.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(a.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(a.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(a.span,{className:"mord mtight",children:[(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"s"})]})})]})}),(0,n.jsx)(a.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(a.span,{className:"vlist-r",children:(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(a.span,{})})})]})})]})]})})]})," means blob count carried by the blob transanction"]}),"\n",(0,n.jsxs)(a.li,{children:[(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"P"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"m"}),(0,n.jsxs)(a.msub,{children:[(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"T"}),(0,n.jsx)(a.mi,{children:"x"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"G"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsx)(a.mi,{children:"P"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"})]})]})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"Params_{BlobTxBlobGasPerBlob}"})]})})}),(0,n.jsx)(a.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"am"}),(0,n.jsxs)(a.span,{className:"mord",children:[(0,n.jsx)(a.span,{className:"mord mathnormal",children:"s"}),(0,n.jsx)(a.span,{className:"msupsub",children:(0,n.jsxs)(a.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(a.span,{className:"vlist-r",children:[(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.3361em"},children:(0,n.jsxs)(a.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(a.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(a.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(a.span,{className:"mord mtight",children:[(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.13889em"},children:"T"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"x"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"G"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.13889em"},children:"P"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.02778em"},children:"er"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"})]})})]})}),(0,n.jsx)(a.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(a.span,{className:"vlist-r",children:(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(a.span,{})})})]})})]})]})})]})," is the ",(0,n.jsx)(a.code,{children:"BlobTxBlobGasPerBlob"})," param value of Geth, which is 131072"]}),"\n",(0,n.jsxs)(a.li,{children:[(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"F"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"e"})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"blobBaseFee"})]})})}),(0,n.jsx)(a.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.05017em"},children:"B"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"se"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"F"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"ee"})]})})]})," could be queried via ",(0,n.jsx)(a.code,{children:"eth_blobBaseFee"})]}),"\n"]}),"\n",(0,n.jsxs)(a.p,{children:["For a golang implementation, please refer to ",(0,n.jsx)(a.a,{href:"https://github.com/crustio/blob-utils/blob/main/blob.go",children:"blob-utils"}),"."]}),"\n",(0,n.jsx)(a.h4,{id:"data",children:(0,n.jsx)(a.code,{children:"data"})}),"\n",(0,n.jsx)(a.pre,{children:(0,n.jsx)(a.code,{className:"language-JS",children:"{\n originator,\n description,\n content_type,\n extra,\n blobs: [\n {\n content_type,\n versioned_hash, // required\n kzg_commitment, // required\n kzg_proof // required\n },\n {...}\n ...\n ]\n}\n"})}),"\n",(0,n.jsx)(a.h3,{id:"step-4-send-blob-transaction--blobs",children:"Step 4: Send blob transaction & blobs"}),"\n",(0,n.jsx)(a.pre,{children:(0,n.jsx)(a.code,{className:"language-JS",children:"{\n to,\n value,\n data,\n signature,\n blobs,\n blobVersionedHashes,\n kzgCommitments,\n kzgProofs\n}\n"})}),"\n",(0,n.jsx)(a.h3,{id:"step-5-query-transaction-status",children:"Step 5: Query transaction status"}),"\n",(0,n.jsxs)(a.p,{children:["After a ",(0,n.jsx)(a.em,{children:"blob transaction"})," described above is submitted, users could then monitor transaction status. If transaction is successfully minted, it means specified blobs are successfully stored by EthDA's DAS network."]}),"\n",(0,n.jsx)(a.h2,{id:"download-blobs",children:"Download Blobs"}),"\n",(0,n.jsxs)(a.p,{children:["Blobs could be download via regular ",(0,n.jsx)(a.strong,{children:"eth_getTransactionByHash / eth_getTransactionByBlockHashAndIndex / eth_getTransactionByBlockNumberAndIndex"})," RPC interfaces."]})]})}function d(s={}){const{wrapper:a}={...(0,l.a)(),...s.components};return a?(0,n.jsx)(a,{...s,children:(0,n.jsx)(c,{...s})}):c(s)}},1151:(s,a,e)=>{e.d(a,{Z:()=>r,a:()=>i});var n=e(7294);const l={},m=n.createContext(l);function i(s){const a=n.useContext(m);return n.useMemo((function(){return"function"==typeof s?s(a):{...a,...s}}),[a,s])}function r(s){let a;return a=s.disableParentContext?"function"==typeof s.components?s.components(l):s.components||l:i(s.components),n.createElement(m.Provider,{value:a},s.children)}}}]); \ No newline at end of file diff --git a/assets/js/6a7d98c7.83a24386.js b/assets/js/6a7d98c7.83a24386.js new file mode 100644 index 0000000..1af521c --- /dev/null +++ b/assets/js/6a7d98c7.83a24386.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkethda_docs=self.webpackChunkethda_docs||[]).push([[4958],{3567:(s,a,e)=>{e.r(a),e.d(a,{assets:()=>t,contentTitle:()=>i,default:()=>d,frontMatter:()=>m,metadata:()=>r,toc:()=>h});var n=e(5893),l=e(1151);const m={id:"upload-and-download-blobs",title:"",hide_table_of_contents:!1},i=void 0,r={id:"developers/upload-and-download-blobs",title:"",description:"To submit data to EthDA, users submit blob transactions similar to blob-carrying-transactions introduced by EIP-4844. EthDA blob transactions contain two component, a standard ethereum regular transaction with blob commitments and one or more blobs of data.",source:"@site/docs/developers/upload-and-download-blobs.md",sourceDirName:"developers",slug:"/developers/upload-and-download-blobs",permalink:"/developers/upload-and-download-blobs",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{id:"upload-and-download-blobs",title:"",hide_table_of_contents:!1},sidebar:"mySidebar",previous:{title:"Bridging Assets to EthDA",permalink:"/developers/quick-start/bridging-assets-to-ethda"},next:{title:"Integrate with zkBlob",permalink:"/developers/integrate-with-zkblob"}},t={},h=[{value:"Upload Blobs",id:"upload-blobs",level:2},{value:"Step 1: Encode data to blobs",id:"step-1-encode-data-to-blobs",level:3},{value:"Step 2: Query blob storage fee",id:"step-2-query-blob-storage-fee",level:3},{value:"Step 3: Construct and sign regular transactions",id:"step-3-construct-and-sign-regular-transactions",level:3},{value:"to",id:"to",level:4},{value:"value",id:"value",level:4},{value:"data",id:"data",level:4},{value:"Step 4: Send blob transaction & blobs",id:"step-4-send-blob-transaction--blobs",level:3},{value:"Step 5: Query transaction status",id:"step-5-query-transaction-status",level:3},{value:"Download Blobs",id:"download-blobs",level:2}];function c(s){const a={a:"a",annotation:"annotation",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",li:"li",math:"math",mi:"mi",mo:"mo",mrow:"mrow",msub:"msub",p:"p",pre:"pre",semantics:"semantics",span:"span",strong:"strong",ul:"ul",...(0,l.a)(),...s.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.p,{children:"To submit data to EthDA, users submit blob transactions similar to blob-carrying-transactions introduced by EIP-4844. EthDA blob transactions contain two component, a standard ethereum regular transaction with blob commitments and one or more blobs of data."}),"\n",(0,n.jsx)(a.h2,{id:"upload-blobs",children:"Upload Blobs"}),"\n",(0,n.jsx)(a.h3,{id:"step-1-encode-data-to-blobs",children:"Step 1: Encode data to blobs"}),"\n",(0,n.jsx)(a.p,{children:"Encode raw data to blobs and compute KZG commitments, KZG proofs and versioned hashes."}),"\n",(0,n.jsxs)(a.p,{children:["For a Node.js implementation, please refer to ",(0,n.jsx)(a.a,{href:"https://github.com/crustio/ethda-blobs/blob/main/src/utils/blobs.ts",children:"ethda-blobs"}),"."]}),"\n",(0,n.jsx)(a.h3,{id:"step-2-query-blob-storage-fee",children:"Step 2: Query blob storage fee"}),"\n",(0,n.jsx)(a.p,{children:"Users could use the same execution api added by EIP-4844 to query the base fee per blob in wei, represented as a hexadecimal:"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.strong,{children:"eth_blobBaseFee"})}),"\n",(0,n.jsx)(a.h3,{id:"step-3-construct-and-sign-regular-transactions",children:"Step 3: Construct and sign regular transactions"}),"\n",(0,n.jsx)(a.h4,{id:"to",children:(0,n.jsx)(a.code,{children:"to"})}),"\n",(0,n.jsxs)(a.p,{children:["Should be the ",(0,n.jsx)(a.a,{href:"../resources/ethda-contracts",children:"DASAddress"})," contract."]}),"\n",(0,n.jsx)(a.h4,{id:"value",children:(0,n.jsx)(a.code,{children:"value"})}),"\n",(0,n.jsx)(a.p,{children:"Blobs storage fee. The calculation formula is:"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"v"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"u"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mo,{children:"="}),(0,n.jsx)(a.mo,{stretchy:"false",children:"("}),(0,n.jsx)(a.mi,{children:"S"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"z"}),(0,n.jsxs)(a.msub,{children:[(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"s"})]})]}),(0,n.jsx)(a.mo,{children:"\u2217"}),(0,n.jsx)(a.mi,{children:"P"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"m"}),(0,n.jsxs)(a.msub,{children:[(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"T"}),(0,n.jsx)(a.mi,{children:"x"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"G"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsx)(a.mi,{children:"P"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"})]})]}),(0,n.jsx)(a.mo,{stretchy:"false",children:")"}),(0,n.jsx)(a.mo,{children:"\u2217"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"F"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mo,{children:"\u2217"}),(0,n.jsx)(a.mi,{children:"m"}),(0,n.jsx)(a.mi,{children:"u"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"t"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"p"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"r"})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"value = (Size_{blobs} * Params_{BlobTxBlobGasPerBlob}) * blobBaseFee * multiplier"})]})})}),(0,n.jsxs)(a.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"v"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"u"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"e"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(a.span,{className:"mrel",children:"="}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(a.span,{className:"mopen",children:"("}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.05764em"},children:"S"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.04398em"},children:"z"}),(0,n.jsxs)(a.span,{className:"mord",children:[(0,n.jsx)(a.span,{className:"mord mathnormal",children:"e"}),(0,n.jsx)(a.span,{className:"msupsub",children:(0,n.jsxs)(a.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(a.span,{className:"vlist-r",children:[(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.3361em"},children:(0,n.jsxs)(a.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(a.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(a.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(a.span,{className:"mord mtight",children:[(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"s"})]})})]})}),(0,n.jsx)(a.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(a.span,{className:"vlist-r",children:(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(a.span,{})})})]})})]}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(a.span,{className:"mbin",children:"\u2217"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"am"}),(0,n.jsxs)(a.span,{className:"mord",children:[(0,n.jsx)(a.span,{className:"mord mathnormal",children:"s"}),(0,n.jsx)(a.span,{className:"msupsub",children:(0,n.jsxs)(a.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(a.span,{className:"vlist-r",children:[(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.3361em"},children:(0,n.jsxs)(a.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(a.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(a.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(a.span,{className:"mord mtight",children:[(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.13889em"},children:"T"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"x"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"G"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.13889em"},children:"P"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.02778em"},children:"er"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"})]})})]})}),(0,n.jsx)(a.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(a.span,{className:"vlist-r",children:(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(a.span,{})})})]})})]}),(0,n.jsx)(a.span,{className:"mclose",children:")"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(a.span,{className:"mbin",children:"\u2217"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.05017em"},children:"B"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"se"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"F"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"ee"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(a.span,{className:"mbin",children:"\u2217"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"m"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"u"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"lt"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.01968em"},children:"pl"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"er"})]})]})]})}),"\n",(0,n.jsx)(a.p,{children:"where:"}),"\n",(0,n.jsxs)(a.ul,{children:["\n",(0,n.jsxs)(a.li,{children:[(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mo,{stretchy:"false",children:"("}),(0,n.jsx)(a.mi,{children:"S"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"z"}),(0,n.jsxs)(a.msub,{children:[(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"s"})]})]}),(0,n.jsx)(a.mo,{children:"\u2217"}),(0,n.jsx)(a.mi,{children:"P"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"m"}),(0,n.jsxs)(a.msub,{children:[(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"T"}),(0,n.jsx)(a.mi,{children:"x"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"G"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsx)(a.mi,{children:"P"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"})]})]}),(0,n.jsx)(a.mo,{stretchy:"false",children:")"}),(0,n.jsx)(a.mo,{children:"\u2217"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"F"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"e"})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"(Size_{blobs} * Params_{BlobTxBlobGasPerBlob}) * blobBaseFee"})]})})}),(0,n.jsxs)(a.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(a.span,{className:"mopen",children:"("}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.05764em"},children:"S"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.04398em"},children:"z"}),(0,n.jsxs)(a.span,{className:"mord",children:[(0,n.jsx)(a.span,{className:"mord mathnormal",children:"e"}),(0,n.jsx)(a.span,{className:"msupsub",children:(0,n.jsxs)(a.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(a.span,{className:"vlist-r",children:[(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.3361em"},children:(0,n.jsxs)(a.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(a.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(a.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(a.span,{className:"mord mtight",children:[(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"s"})]})})]})}),(0,n.jsx)(a.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(a.span,{className:"vlist-r",children:(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(a.span,{})})})]})})]}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(a.span,{className:"mbin",children:"\u2217"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"am"}),(0,n.jsxs)(a.span,{className:"mord",children:[(0,n.jsx)(a.span,{className:"mord mathnormal",children:"s"}),(0,n.jsx)(a.span,{className:"msupsub",children:(0,n.jsxs)(a.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(a.span,{className:"vlist-r",children:[(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.3361em"},children:(0,n.jsxs)(a.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(a.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(a.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(a.span,{className:"mord mtight",children:[(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.13889em"},children:"T"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"x"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"G"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.13889em"},children:"P"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.02778em"},children:"er"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"})]})})]})}),(0,n.jsx)(a.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(a.span,{className:"vlist-r",children:(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(a.span,{})})})]})})]}),(0,n.jsx)(a.span,{className:"mclose",children:")"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(a.span,{className:"mbin",children:"\u2217"}),(0,n.jsx)(a.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.05017em"},children:"B"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"se"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"F"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"ee"})]})]})]})," is the base fee, and ",(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"p"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"t"}),(0,n.jsx)(a.mi,{children:"y"}),(0,n.jsx)(a.mi,{children:"F"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"e"})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"priorityFee"})]})})}),(0,n.jsx)(a.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"p"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"or"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"t"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"F"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"ee"})]})})]})," is adjusted by the market, and user could set it to, like 10% of the base fee"]}),"\n",(0,n.jsxs)(a.li,{children:[(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"S"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"z"}),(0,n.jsxs)(a.msub,{children:[(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"s"})]})]})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"Size_{blobs}"})]})})}),(0,n.jsx)(a.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.05764em"},children:"S"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.04398em"},children:"z"}),(0,n.jsxs)(a.span,{className:"mord",children:[(0,n.jsx)(a.span,{className:"mord mathnormal",children:"e"}),(0,n.jsx)(a.span,{className:"msupsub",children:(0,n.jsxs)(a.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(a.span,{className:"vlist-r",children:[(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.3361em"},children:(0,n.jsxs)(a.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(a.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(a.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(a.span,{className:"mord mtight",children:[(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"s"})]})})]})}),(0,n.jsx)(a.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(a.span,{className:"vlist-r",children:(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(a.span,{})})})]})})]})]})})]})," means blob count carried by the blob transanction"]}),"\n",(0,n.jsxs)(a.li,{children:[(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"P"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"m"}),(0,n.jsxs)(a.msub,{children:[(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"T"}),(0,n.jsx)(a.mi,{children:"x"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"G"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsx)(a.mi,{children:"P"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"r"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"})]})]})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"Params_{BlobTxBlobGasPerBlob}"})]})})}),(0,n.jsx)(a.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"am"}),(0,n.jsxs)(a.span,{className:"mord",children:[(0,n.jsx)(a.span,{className:"mord mathnormal",children:"s"}),(0,n.jsx)(a.span,{className:"msupsub",children:(0,n.jsxs)(a.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(a.span,{className:"vlist-r",children:[(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.3361em"},children:(0,n.jsxs)(a.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(a.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(a.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(a.span,{className:"mord mtight",children:[(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.13889em"},children:"T"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"x"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"G"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.13889em"},children:"P"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.02778em"},children:"er"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",style:{marginRight:"0.01968em"},children:"Bl"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal mtight",children:"b"})]})})]})}),(0,n.jsx)(a.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(a.span,{className:"vlist-r",children:(0,n.jsx)(a.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(a.span,{})})})]})})]})]})})]})," is the ",(0,n.jsx)(a.code,{children:"BlobTxBlobGasPerBlob"})," param value of Geth, which is 131072"]}),"\n",(0,n.jsxs)(a.li,{children:[(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"o"}),(0,n.jsx)(a.mi,{children:"b"}),(0,n.jsx)(a.mi,{children:"B"}),(0,n.jsx)(a.mi,{children:"a"}),(0,n.jsx)(a.mi,{children:"s"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"F"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"e"})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"blobBaseFee"})]})})}),(0,n.jsx)(a.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.01968em"},children:"l"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"o"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.05017em"},children:"B"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"a"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"se"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"F"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"ee"})]})})]})," could be queried via ",(0,n.jsx)(a.code,{children:"eth_blobBaseFee"})]}),"\n",(0,n.jsxs)(a.li,{children:[(0,n.jsxs)(a.span,{className:"katex",children:[(0,n.jsx)(a.span,{className:"katex-mathml",children:(0,n.jsx)(a.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(a.semantics,{children:[(0,n.jsxs)(a.mrow,{children:[(0,n.jsx)(a.mi,{children:"m"}),(0,n.jsx)(a.mi,{children:"u"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"t"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"p"}),(0,n.jsx)(a.mi,{children:"l"}),(0,n.jsx)(a.mi,{children:"i"}),(0,n.jsx)(a.mi,{children:"e"}),(0,n.jsx)(a.mi,{children:"r"})]}),(0,n.jsx)(a.annotation,{encoding:"application/x-tex",children:"multiplier"})]})})}),(0,n.jsx)(a.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(a.span,{className:"base",children:[(0,n.jsx)(a.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"m"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"u"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"lt"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.01968em"},children:"pl"}),(0,n.jsx)(a.span,{className:"mord mathnormal",children:"i"}),(0,n.jsx)(a.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"er"})]})})]})," is usually set to 1. To ensure successful transactions during network fluctuations, it can be adjusted as needed."]}),"\n"]}),"\n",(0,n.jsxs)(a.p,{children:["For a golang implementation, please refer to ",(0,n.jsx)(a.a,{href:"https://github.com/crustio/blob-utils/blob/main/blob.go",children:"blob-utils"}),"."]}),"\n",(0,n.jsx)(a.h4,{id:"data",children:(0,n.jsx)(a.code,{children:"data"})}),"\n",(0,n.jsx)(a.pre,{children:(0,n.jsx)(a.code,{className:"language-JS",children:"{\n originator,\n description,\n content_type,\n extra,\n blobs: [\n {\n content_type,\n versioned_hash, // required\n kzg_commitment, // required\n kzg_proof // required\n },\n {...}\n ...\n ]\n}\n"})}),"\n",(0,n.jsx)(a.h3,{id:"step-4-send-blob-transaction--blobs",children:"Step 4: Send blob transaction & blobs"}),"\n",(0,n.jsx)(a.pre,{children:(0,n.jsx)(a.code,{className:"language-JS",children:"{\n to,\n value,\n data,\n signature,\n blobs,\n blobVersionedHashes,\n kzgCommitments,\n kzgProofs\n}\n"})}),"\n",(0,n.jsx)(a.h3,{id:"step-5-query-transaction-status",children:"Step 5: Query transaction status"}),"\n",(0,n.jsxs)(a.p,{children:["After a ",(0,n.jsx)(a.em,{children:"blob transaction"})," described above is submitted, users could then monitor transaction status. If transaction is successfully minted, it means specified blobs are successfully stored by EthDA's DAS network."]}),"\n",(0,n.jsx)(a.h2,{id:"download-blobs",children:"Download Blobs"}),"\n",(0,n.jsxs)(a.p,{children:["Blobs could be download via regular ",(0,n.jsx)(a.strong,{children:"eth_getTransactionByHash / eth_getTransactionByBlockHashAndIndex / eth_getTransactionByBlockNumberAndIndex"})," RPC interfaces."]})]})}function d(s={}){const{wrapper:a}={...(0,l.a)(),...s.components};return a?(0,n.jsx)(a,{...s,children:(0,n.jsx)(c,{...s})}):c(s)}},1151:(s,a,e)=>{e.d(a,{Z:()=>r,a:()=>i});var n=e(7294);const l={},m=n.createContext(l);function i(s){const a=n.useContext(m);return n.useMemo((function(){return"function"==typeof s?s(a):{...a,...s}}),[a,s])}function r(s){let a;return a=s.disableParentContext?"function"==typeof s.components?s.components(l):s.components||l:i(s.components),n.createElement(m.Provider,{value:a},s.children)}}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.d770c3ec.js b/assets/js/runtime~main.fbb20917.js similarity index 98% rename from assets/js/runtime~main.d770c3ec.js rename to assets/js/runtime~main.fbb20917.js index 34c9880..530726e 100644 --- a/assets/js/runtime~main.d770c3ec.js +++ b/assets/js/runtime~main.fbb20917.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,t,r,d,f={},o={};function n(e){var a=o[e];if(void 0!==a)return a.exports;var t=o[e]={id:e,loaded:!1,exports:{}};return f[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}n.m=f,n.c=o,e=[],n.O=(a,t,r,d)=>{if(!t){var f=1/0;for(i=0;i=d)&&Object.keys(n.O).every((e=>n.O[e](t[c])))?t.splice(c--,1):(o=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[t,r,d]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a:a}),a},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var d=Object.create(null);n.r(d);var f={};a=a||[null,t({}),t([]),t(t)];for(var o=2&r&&e;"object"==typeof o&&!~a.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((a=>f[a]=()=>e[a]));return f.default=()=>e,n.d(d,f),d},n.d=(e,a)=>{for(var t in a)n.o(a,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((a,t)=>(n.f[t](e,a),a)),[])),n.u=e=>"assets/js/"+({1839:"8d7e75fb",3379:"15042041",3629:"aba21aa0",4368:"a94703ab",4527:"45d5a7a5",4546:"eff0b75e",4958:"6a7d98c7",4974:"81e7fe4b",4980:"22dd74f7",5052:"c5e8b1bb",5268:"22947455",5640:"394661f6",5728:"98d5ad7a",6257:"211144eb",6593:"71eade9a",6659:"e422ff8b",7918:"17896441",8518:"a7bd4aaa",9565:"8fbdb727",9574:"7f471190",9661:"5e95c892",9706:"bc9e7344",9805:"ab9ad2d9"}[e]||e)+"."+{109:"2e9f629f",132:"a7faeec0",240:"5e4ae35f",1504:"4bda73ca",1644:"d662fb49",1763:"fdc7943e",1772:"359d7090",1839:"1142abe0",2183:"d09e4d08",2661:"104fb928",2693:"947e9d34",2696:"c09bb056",2700:"9d79fd75",3076:"60ffe486",3343:"39902a38",3379:"6e66f3ee",3619:"e624a772",3629:"ce025277",4238:"674bb01b",4368:"3ae13e5e",4527:"43c1535b",4546:"55c24e8b",4706:"da1925c4",4958:"2b1f5e0d",4974:"d5cb7e31",4980:"e67d2ff2",5052:"1b8e3d09",5268:"a2f8bbc0",5269:"c5b2070d",5326:"adaf7e70",5640:"1930a774",5728:"863e601c",5790:"54135f67",5943:"611354f7",6255:"1a282b91",6257:"5e30a8d3",6593:"b2ea09a5",6648:"2a587655",6659:"80397db3",6985:"99b69908",7918:"ab32eeb5",7936:"c6e81c14",8016:"352e9bf2",8518:"4ba6ba0c",8955:"088d6ae2",9138:"38204dda",9565:"e94af698",9574:"9667200b",9661:"f0f1c5f7",9706:"3d17e489",9805:"bbf41a98",9893:"31bf7e8f"}[e]+".js",n.miniCssF=e=>{},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r={},d="ethda-docs:",n.l=(e,a,t,f)=>{if(r[e])r[e].push(a);else{var o,c;if(void 0!==t)for(var b=document.getElementsByTagName("script"),i=0;i{o.onerror=o.onload=null,clearTimeout(s);var d=r[e];if(delete r[e],o.parentNode&&o.parentNode.removeChild(o),d&&d.forEach((e=>e(t))),a)return a(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),c&&document.head.appendChild(o)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",n.gca=function(e){return e={15042041:"3379",17896441:"7918",22947455:"5268","8d7e75fb":"1839",aba21aa0:"3629",a94703ab:"4368","45d5a7a5":"4527",eff0b75e:"4546","6a7d98c7":"4958","81e7fe4b":"4974","22dd74f7":"4980",c5e8b1bb:"5052","394661f6":"5640","98d5ad7a":"5728","211144eb":"6257","71eade9a":"6593",e422ff8b:"6659",a7bd4aaa:"8518","8fbdb727":"9565","7f471190":"9574","5e95c892":"9661",bc9e7344:"9706",ab9ad2d9:"9805"}[e]||e,n.p+n.u(e)},(()=>{var e={1303:0,532:0};n.f.j=(a,t)=>{var r=n.o(e,a)?e[a]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var d=new Promise(((t,d)=>r=e[a]=[t,d]));t.push(r[2]=d);var f=n.p+n.u(a),o=new Error;n.l(f,(t=>{if(n.o(e,a)&&(0!==(r=e[a])&&(e[a]=void 0),r)){var d=t&&("load"===t.type?"missing":t.type),f=t&&t.target&&t.target.src;o.message="Loading chunk "+a+" failed.\n("+d+": "+f+")",o.name="ChunkLoadError",o.type=d,o.request=f,r[1](o)}}),"chunk-"+a,a)}},n.O.j=a=>0===e[a];var a=(a,t)=>{var r,d,f=t[0],o=t[1],c=t[2],b=0;if(f.some((a=>0!==e[a]))){for(r in o)n.o(o,r)&&(n.m[r]=o[r]);if(c)var i=c(n)}for(a&&a(t);b{"use strict";var e,a,t,r,d,f={},o={};function n(e){var a=o[e];if(void 0!==a)return a.exports;var t=o[e]={id:e,loaded:!1,exports:{}};return f[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}n.m=f,n.c=o,e=[],n.O=(a,t,r,d)=>{if(!t){var f=1/0;for(i=0;i=d)&&Object.keys(n.O).every((e=>n.O[e](t[c])))?t.splice(c--,1):(o=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[t,r,d]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a:a}),a},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var d=Object.create(null);n.r(d);var f={};a=a||[null,t({}),t([]),t(t)];for(var o=2&r&&e;"object"==typeof o&&!~a.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((a=>f[a]=()=>e[a]));return f.default=()=>e,n.d(d,f),d},n.d=(e,a)=>{for(var t in a)n.o(a,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((a,t)=>(n.f[t](e,a),a)),[])),n.u=e=>"assets/js/"+({1839:"8d7e75fb",3379:"15042041",3629:"aba21aa0",4368:"a94703ab",4527:"45d5a7a5",4546:"eff0b75e",4958:"6a7d98c7",4974:"81e7fe4b",4980:"22dd74f7",5052:"c5e8b1bb",5268:"22947455",5640:"394661f6",5728:"98d5ad7a",6257:"211144eb",6593:"71eade9a",6659:"e422ff8b",7918:"17896441",8518:"a7bd4aaa",9565:"8fbdb727",9574:"7f471190",9661:"5e95c892",9706:"bc9e7344",9805:"ab9ad2d9"}[e]||e)+"."+{109:"2e9f629f",132:"a7faeec0",240:"5e4ae35f",1504:"4bda73ca",1644:"d662fb49",1763:"fdc7943e",1772:"359d7090",1839:"1142abe0",2183:"d09e4d08",2661:"104fb928",2693:"947e9d34",2696:"c09bb056",2700:"9d79fd75",3076:"60ffe486",3343:"39902a38",3379:"6e66f3ee",3619:"e624a772",3629:"ce025277",4238:"674bb01b",4368:"3ae13e5e",4527:"43c1535b",4546:"55c24e8b",4706:"da1925c4",4958:"83a24386",4974:"d5cb7e31",4980:"e67d2ff2",5052:"1b8e3d09",5268:"a2f8bbc0",5269:"c5b2070d",5326:"adaf7e70",5640:"1930a774",5728:"863e601c",5790:"54135f67",5943:"611354f7",6255:"1a282b91",6257:"5e30a8d3",6593:"b2ea09a5",6648:"2a587655",6659:"80397db3",6985:"99b69908",7918:"ab32eeb5",7936:"c6e81c14",8016:"352e9bf2",8518:"4ba6ba0c",8955:"088d6ae2",9138:"38204dda",9565:"e94af698",9574:"9667200b",9661:"f0f1c5f7",9706:"3d17e489",9805:"bbf41a98",9893:"31bf7e8f"}[e]+".js",n.miniCssF=e=>{},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r={},d="ethda-docs:",n.l=(e,a,t,f)=>{if(r[e])r[e].push(a);else{var o,c;if(void 0!==t)for(var b=document.getElementsByTagName("script"),i=0;i{o.onerror=o.onload=null,clearTimeout(s);var d=r[e];if(delete r[e],o.parentNode&&o.parentNode.removeChild(o),d&&d.forEach((e=>e(t))),a)return a(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),c&&document.head.appendChild(o)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",n.gca=function(e){return e={15042041:"3379",17896441:"7918",22947455:"5268","8d7e75fb":"1839",aba21aa0:"3629",a94703ab:"4368","45d5a7a5":"4527",eff0b75e:"4546","6a7d98c7":"4958","81e7fe4b":"4974","22dd74f7":"4980",c5e8b1bb:"5052","394661f6":"5640","98d5ad7a":"5728","211144eb":"6257","71eade9a":"6593",e422ff8b:"6659",a7bd4aaa:"8518","8fbdb727":"9565","7f471190":"9574","5e95c892":"9661",bc9e7344:"9706",ab9ad2d9:"9805"}[e]||e,n.p+n.u(e)},(()=>{var e={1303:0,532:0};n.f.j=(a,t)=>{var r=n.o(e,a)?e[a]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var d=new Promise(((t,d)=>r=e[a]=[t,d]));t.push(r[2]=d);var f=n.p+n.u(a),o=new Error;n.l(f,(t=>{if(n.o(e,a)&&(0!==(r=e[a])&&(e[a]=void 0),r)){var d=t&&("load"===t.type?"missing":t.type),f=t&&t.target&&t.target.src;o.message="Loading chunk "+a+" failed.\n("+d+": "+f+")",o.name="ChunkLoadError",o.type=d,o.request=f,r[1](o)}}),"chunk-"+a,a)}},n.O.j=a=>0===e[a];var a=(a,t)=>{var r,d,f=t[0],o=t[1],c=t[2],b=0;if(f.some((a=>0!==e[a]))){for(r in o)n.o(o,r)&&(n.m[r]=o[r]);if(c)var i=c(n)}for(a&&a(t);b EthDA Docs - + diff --git a/developers/how-to/using-ethda-as-dstorage/index.html b/developers/how-to/using-ethda-as-dstorage/index.html index 08e798f..ed42ce0 100644 --- a/developers/how-to/using-ethda-as-dstorage/index.html +++ b/developers/how-to/using-ethda-as-dstorage/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/developers/integrate-with-zkblob/index.html b/developers/integrate-with-zkblob/index.html index dcf1681..7c59011 100644 --- a/developers/integrate-with-zkblob/index.html +++ b/developers/integrate-with-zkblob/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/developers/quick-start/bridging-assets-to-ethda/index.html b/developers/quick-start/bridging-assets-to-ethda/index.html index d0016d9..9de8675 100644 --- a/developers/quick-start/bridging-assets-to-ethda/index.html +++ b/developers/quick-start/bridging-assets-to-ethda/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/developers/quick-start/connecting-to-ethda/index.html b/developers/quick-start/connecting-to-ethda/index.html index b7a179e..4b88299 100644 --- a/developers/quick-start/connecting-to-ethda/index.html +++ b/developers/quick-start/connecting-to-ethda/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/developers/quick-start/using-ethda-faucet/index.html b/developers/quick-start/using-ethda-faucet/index.html index 34f4053..6f6e4de 100644 --- a/developers/quick-start/using-ethda-faucet/index.html +++ b/developers/quick-start/using-ethda-faucet/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/developers/upload-and-download-blobs/index.html b/developers/upload-and-download-blobs/index.html index a1b3056..ece8318 100644 --- a/developers/upload-and-download-blobs/index.html +++ b/developers/upload-and-download-blobs/index.html @@ -4,7 +4,7 @@ EthDA Docs - + @@ -21,13 +21,14 @@

toDASAddress contract.

value

Blobs storage fee. The calculation formula is:

-

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

+

value=(SizeblobsParamsBlobTxBlobGasPerBlob)blobBaseFeemultipliervalue = (Size_{blobs} * Params_{BlobTxBlobGasPerBlob}) * blobBaseFee * multiplier

where:

  • (SizeblobsParamsBlobTxBlobGasPerBlob)blobBaseFee(Size_{blobs} * Params_{BlobTxBlobGasPerBlob}) * blobBaseFee is the base fee, and priorityFeepriorityFee is adjusted by the market, and user could set it to, like 10% of the base fee
  • SizeblobsSize_{blobs} means blob count carried by the blob transanction
  • ParamsBlobTxBlobGasPerBlobParams_{BlobTxBlobGasPerBlob} is the BlobTxBlobGasPerBlob param value of Geth, which is 131072
  • blobBaseFeeblobBaseFee could be queried via eth_blobBaseFee
  • +
  • multipliermultiplier is usually set to 1. To ensure successful transactions during network fluctuations, it can be adjusted as needed.

For a golang implementation, please refer to blob-utils.

data

diff --git a/index.html b/index.html index ab8434b..a9c42a2 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/overview/da/index.html b/overview/da/index.html index f8e53a4..464b610 100644 --- a/overview/da/index.html +++ b/overview/da/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/overview/technologies/index.html b/overview/technologies/index.html index 4c8c0f7..f4348d8 100644 --- a/overview/technologies/index.html +++ b/overview/technologies/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/resources/eips/index.html b/resources/eips/index.html index 55265de..ee592bf 100644 --- a/resources/eips/index.html +++ b/resources/eips/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/resources/ethda-contracts/index.html b/resources/ethda-contracts/index.html index 1d9e8b1..5054327 100644 --- a/resources/ethda-contracts/index.html +++ b/resources/ethda-contracts/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/resources/network-configuration/add-ethda-network/index.html b/resources/network-configuration/add-ethda-network/index.html index 19b27a4..65a5088 100644 --- a/resources/network-configuration/add-ethda-network/index.html +++ b/resources/network-configuration/add-ethda-network/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/resources/network-configuration/install-coinbase-wallet/index.html b/resources/network-configuration/install-coinbase-wallet/index.html index ed52a3b..8714235 100644 --- a/resources/network-configuration/install-coinbase-wallet/index.html +++ b/resources/network-configuration/install-coinbase-wallet/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/resources/network-configuration/install-metamask/index.html b/resources/network-configuration/install-metamask/index.html index a40e04e..8ae1e66 100644 --- a/resources/network-configuration/install-metamask/index.html +++ b/resources/network-configuration/install-metamask/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/resources/official-links/index.html b/resources/official-links/index.html index 004c3ce..9c8857b 100644 --- a/resources/official-links/index.html +++ b/resources/official-links/index.html @@ -4,7 +4,7 @@ EthDA Docs - + diff --git a/resources/repositories/index.html b/resources/repositories/index.html index 7571566..eca90b9 100644 --- a/resources/repositories/index.html +++ b/resources/repositories/index.html @@ -4,7 +4,7 @@ EthDA Docs - +