(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5184],{3454:function(e,t,s){"use strict";var n,a;e.exports=(null==(n=s.g.process)?void 0:n.env)&&"object"==typeof(null==(a=s.g.process)?void 0:a.env)?s.g.process:s(7663)},4146:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/gasFees",function(){return s(5092)}])},5092:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return GasFees}});var n=s(5893),a=s(9008),r=s.n(a),i=s(7294),l=s(3201),c=s(7626),o=s(5912),m=s(1526),d=s(6720),x=s(1120),u=s.n(x),f=s(6488);s(4321),s(813);var p=s(3454);function GasFees(){let e,t;let[s,a]=(0,i.useState)(10),[o,x]=(0,i.useState)(10),[h,b]=(0,i.useState)(10),[j,g]=(0,i.useState)(10),[y,N]=(0,i.useState)(1),[w,v]=(0,i.useState)(1),[E,S]=(0,i.useState)(1),[T,I]=(0,i.useState)(0),[O,F]=(0,i.useState)(45),[R,k]=(0,i.useState)(0),[_,B]=(0,i.useState)(45),[P,z]=(0,i.useState)(0),[C,A]=(0,i.useState)(45),[G,M]=(0,i.useState)(1),[L,D]=(0,i.useState)(1),[H,U]=(0,i.useState)(null),[Y,$]=(0,i.useState)(!1),[W,q]=(0,i.useState)(!1),[V,K]=(0,i.useState)(!1),[Q,X]=(0,i.useState)(!1),[Z,J]=(0,i.useState)(!0),[ee,et]=(0,i.useState)(!0),[es,en]=(0,i.useState)("isInfoVisible"),[ea,er]=(0,i.useState)(new Date().toUTCString()),[ei,el]=(0,i.useState)(!1),[ec,eo]=(0,i.useState)({currency:null,type:null}),fetchData=()=>Promise.all([fetch("https://api.coincap.io/v2/assets/bitcoin"),fetch("https://mempool.space/api/v1/fees/recommended")]).then(e=>Promise.all(e.map(e=>e.json()))).then(e=>{let[t,s]=e,n=parseFloat(t.data.priceUsd),a={economyFee:n*s.economyFee*140/1e8,halfHourFee:n*s.halfHourFee*140/1e8,hourFee:n*s.hourFee*140/1e8,fastestFee:n*s.fastestFee*140/1e8};return{feeData:s,feesInUSD:a}}),em=(0,i.useRef)(null);async function fetchGasPrice(){let e=await fetch(l.P.ETHERSCAN_GAS_FEES_API),t=await e.json();a(Number(parseFloat(t.result.SafeGasPrice).toFixed(2))),x(Number(parseFloat(t.result.ProposeGasPrice).toFixed(2))),b(Number(parseFloat(t.result.FastGasPrice).toFixed(2))),g(Math.floor(parseFloat(t.result.suggestBaseFee)));var s,n,r,i=Math.ceil(t.result.suggestBaseFee);N(Number((parseFloat(t.result.SafeGasPrice)-i).toFixed(2))),v(Number((parseFloat(t.result.ProposeGasPrice)-i).toFixed(2))),S(Number((parseFloat(t.result.FastGasPrice)-i).toFixed(2))),s=t.result.SafeGasPrice+"000000000&apikey="+p.env.ETHERSCAN_API_KEY,fetch(l.P.ETHERSCAN_ARRIVES_TIME_API+s).then(e=>e.json()).then(e=>{if(1===e.status){var t=Math.floor(e.result/60),s=e.result%60;I(t),F(s)}}).catch(),n=t.result.ProposeGasPrice+"000000000&apikey="+p.env.ETHERSCAN_API_KEY,fetch(l.P.ETHERSCAN_ARRIVES_TIME_API+n).then(e=>e.json()).then(e=>{if(1===e.status){var t=Math.floor(e.result/60),s=e.result%60;console.log({data:e}),k(t),B(s)}}).catch(),r=t.result.FastGasPrice+"000000000&apikey="+p.env.ETHERSCAN_API_KEY,fetch(l.P.ETHERSCAN_ARRIVES_TIME_API+r).then(e=>e.json()).then(e=>{if(1===e.status){var t=Math.floor(e.result/60),s=e.result%60;z(t),A(s)}}).catch()}function executeAPIs(){fetchGasPrice(),fetch(l.P.COIN_CAP_ASSETS).then(e=>e.json()).then(e=>{D(e.data.find(e=>{let{id:t}=e;return"ethereum"==t}).priceUsd)}).catch(),J(!1)}function lowTranFee(){return(21e3*(j+y)/1e9*L).toFixed(2)}function medTranFee(){return(21e3*(j+w)/1e9*L).toFixed(2)}function highTranFee(){return(21e3*(j+E)/1e9*L).toFixed(2)}(0,i.useEffect)(()=>{(0,f.ZP)(":not(.sidebar-tooltip)[data-tippy-content]",{placement:"bottom",theme:"customTheme"})},[]),(0,i.useEffect)(()=>{function handleClickOutside(e){em.current&&!em.current.contains(e.target)&&el(!1)}function handleEscape(e){"Escape"===e.key&&el(!1)}return document.addEventListener("mousedown",handleClickOutside),document.addEventListener("keydown",handleEscape),()=>{document.removeEventListener("mousedown",handleClickOutside),document.removeEventListener("keydown",handleEscape)}},[]),(0,i.useEffect)(()=>{let fetchAllData=async()=>{await executeAPIs();let e=await fetchData();U(e),J(!1)};fetchAllData();let e=setInterval(()=>{executeAPIs()},1e4),t=setInterval(()=>{fetchData().then(U)},15e3);return()=>{clearInterval(e),clearInterval(t)}},[]),H&&H.feeData&&(e=H.feeData,t=H.feesInUSD),(0,i.useEffect)(()=>{let e=window.location.pathname,t="isInfoVisible_".concat(e);en(t);let s=localStorage.getItem(t);null!==s&&et("false"!==s)},[]);let toggleInfo=()=>{let e=!ee;localStorage.setItem(es,e.toString()),et(e)};(0,i.useEffect)(()=>{let e=setInterval(()=>{er(new Date().toUTCString())},1e3);return()=>clearInterval(e)},[]);let captureOrCopy=async e=>{let t="BTC"===ec.currency?"capture-bitcoin":"capture-ethereum",s=document.getElementById(t);return new Promise(async(n,a)=>{if(s){s.style.position="absolute",s.style.left="-9999px",s.style.display="block";try{let t=await u()(s),r=t.toDataURL("image/png");if("capture"===e){let e=document.createElement("a");e.href=r;let t="BTC"===ec.currency?"bitcoin-fees":"ethereum-gas",s=new Date,a="".concat(s.getFullYear()).concat((s.getMonth()+1).toString().padStart(2,"0")).concat(s.getDate().toString().padStart(2,"0"),"-").concat(s.getHours().toString().padStart(2,"0"),"-").concat(s.getMinutes().toString().padStart(2,"0"));e.download="".concat(t,"-").concat(a,".png"),document.body.appendChild(e),e.click(),document.body.removeChild(e),n()}else"copy"===e&&t.toBlob(async e=>{try{await navigator.clipboard.write([new ClipboardItem({"image/png":e})]),n()}catch(e){console.error("Failed to copy image: ",e),a(e)}})}catch(e){console.error("Error capturing the image: ",e),a(e)}s.style.position="",s.style.left="",s.style.display="none"}else console.error("Element with id '".concat(t,"' not found")),a("Element with id '".concat(t,"' not found"));el(!1)})},handleButtonClick=e=>{el(!0),eo(t=>({...t,type:e}))},handleCurrencySelection=e=>{eo(t=>({...t,currency:e})),el(!1)};return(0,i.useEffect)(()=>{let performAction=async()=>{ec.currency&&ec.type&&(await captureOrCopy(ec.type),eo({currency:null,type:null}))};performAction()},[ec]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(r(),{children:[(0,n.jsx)("title",{children:"Ethereum Gas Tracker & Bitcoin Transaction Fees Real-time"}),(0,n.jsx)("meta",{name:"description",content:"About to send some crypto? Use this gas tracker to find out the current Ethereum gas price in GWEI and live Bitcoin transaction fee in USD all on one page"}),(0,n.jsx)("meta",{name:"keywords",content:"gas, tracker, ethereum, fee, bitcoin, transaction, price, etherscan, ether, gwei"}),(0,n.jsx)("meta",{property:"og:title",content:"Ethereum Gas Tracker & Bitcoin Transaction Fees Real-time"}),(0,n.jsx)("meta",{property:"og:description",content:"About to send some crypto? Use this gas tracker to find out the current Ethereum gas price in GWEI and live Bitcoin transaction fee in USD all on one page"}),(0,n.jsx)("meta",{property:"og:image",content:"https://www.tradingdigits.io/assets/images/ogImage.jpg"}),(0,n.jsx)("meta",{property:"og:url",content:"https://www.tradingdigits.io/gasFees"}),(0,n.jsx)("meta",{name:"twitter:title",content:"Ethereum Gas Tracker & Bitcoin Transaction Fees Real-time"}),(0,n.jsx)("meta",{name:"twitter:description",content:"About to send some crypto? Use this gas tracker to find out the current Ethereum gas price in GWEI and live Bitcoin transaction fee in USD all on one page"}),(0,n.jsx)("meta",{name:"twitter:image",content:"https://www.tradingdigits.io/assets/images/ogImage.jpg"}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,n.jsx)("meta",{name:"twitter:image:alt",content:"Promotional image with crypto-related illustration on black background, company name, and catchphrase about Trading Digits"}),(0,n.jsx)("meta",{name:"twitter:site",content:"@trading_digits"}),(0,n.jsx)("link",{rel:"canonical",href:"https://www.tradingdigits.io/gasFees"})]})}),{}),(0,n.jsx)("div",{className:"mt-10 md:mt-[95px] sm:mt-[90px] mt-[80px]",children:(0,n.jsxs)("div",{className:"pb-3 pt-2 sm:pt-1 lg:pt-0 pb-24 sm:pb-[84px] h-full xl:h-screen",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between text-center ",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("h1",{className:"pl-2 sm:text-2xl text-xl font-[Oxanium-Regular]",children:"ETH GAS & BITCOIN FEES"}),(0,n.jsx)(m.M,{children:!ee&&(0,n.jsx)(d.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"ml-3",children:(0,n.jsx)("i",{onClick:toggleInfo,className:"fa-solid fa-circle-info fa-lg text-zinc-200 cursor-pointer hover:text-amber-400 transition duration-300"})})})]}),(0,n.jsxs)("div",{className:"flex relative",children:[(0,n.jsx)("button",{onClick:()=>handleButtonClick("copy"),className:"flex justify-center items-center hover:bg-zinc-600 transition-all duration-300","data-tippy-content":"Copy Image",children:(0,n.jsx)("i",{className:"fa-solid fa-copy fa-lg py-6 px-3.5"})}),(0,n.jsx)("button",{onClick:()=>handleButtonClick("capture"),className:"flex justify-center items-center hover:bg-zinc-600 transition-all duration-300","data-tippy-content":"Save Image",children:(0,n.jsx)("i",{className:"fa-solid fa-camera fa-lg py-6 px-3.5"})}),ei&&(0,n.jsxs)("div",{ref:em,className:"absolute bg-zinc-700 border border-zinc-500 rounded h-[46px] top-full mt-1 z-50 transition-all duration-150 flex",children:[(0,n.jsx)("div",{className:"cursor-pointer hover:bg-zinc-600 mb-2 h-full w-[46px] text-center flex justify-center items-center transition-all duration-300",onClick:()=>handleCurrencySelection("BTC"),children:(0,n.jsx)("img",{src:c.Y.bitcoinLogoIcon,alt:"Bitcoin logo",className:"w-6"})}),(0,n.jsx)("div",{className:"cursor-pointer hover:bg-zinc-600 w-[46px] h-full flex justify-center items-center transition-all duration-300",onClick:()=>handleCurrencySelection("ETH"),children:(0,n.jsx)("img",{src:c.Y.ethereumLogoIcon,alt:"Ethereum logo",className:"w-5"})})]})]})]}),(0,n.jsx)(m.M,{children:ee&&(0,n.jsxs)(d.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"relative px-2 py-2 flex items-center mr-0 bg-[#404142] justify-center w-full",children:[(0,n.jsx)("i",{className:"fa-solid fa-circle-info fa-2xl mr-3 text-zinc-200"}),(0,n.jsx)("div",{className:"font-[Oxanium-Regular] sm:text-sm text-xs pr-4",children:(0,n.jsx)("p",{children:"Use this blockchain gas tracker to find out the real-time Bitcoin transaction fees and gas price—which is the commission that includes the cost necessary to perform the transaction on the Ethereum network—in order to know how much you're going to pay when sending payments or trading NFTs."})}),(0,n.jsx)("div",{onClick:toggleInfo,className:"absolute top-0 right-0 flex items-start hover:bg-zinc-500 cursor-pointer py-0.5 px-1 transition duration-300",children:(0,n.jsx)("i",{className:"fa-solid fa-xmark"})})]})}),!Z&&H&&H.feeData?(0,n.jsxs)("div",{className:"flex xl:flex-row flex-col ".concat(ee?"sm:mt-16 mt-8":"mt-10"),children:[(0,n.jsxs)("div",{className:"xl:w-1/2 flex flex-col justify-start xl:mb-0 mb-8 pt-4",children:[(0,n.jsxs)("div",{className:"flex justify-center items-center font-[Oxanium-Light] sm:text-2xl text-xl text-center xl:mb-16 mb-8",children:[(0,n.jsx)("div",{className:"sm:mr-5 mr-3",children:(0,n.jsx)("img",{src:c.Y.ethereumLogoIcon,alt:"Ethereum logo",className:"w-5"})}),(0,n.jsx)("h2",{children:"ETHEREUM GAS PRICE"})]}),(0,n.jsxs)("div",{className:"flex justify-center items-center xl:pr-3 sm:flex-row flex-col px-3",children:[(0,n.jsx)("div",{className:"sm:w-1/3 w-3/4 md:px-2 sm:px-1 sm:mb-0 mb-3 ",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700",children:[(0,n.jsxs)("p",{className:"flex justify-center items-center font-[Oxanium-SemiBold] sm:text-lg text-base sm:mb-1.5 mb-1",children:[(0,n.jsx)("i",{className:"fa-solid fa-bolt rounded-full p-1 mr-1 text-green-600"}),"LOW"]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] md:text-lg text-base mb-1",children:[" ",s," GWEI / $",lowTranFee()]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-xs mb-1",children:["Base: ",(0,n.jsx)("span",{className:"md:mr-2 mr-1",children:j}),"Priority: ",(0,n.jsx)("span",{children:y})]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-xs mb-1",children:["~",T," minutes ",O," seconds"]})]})}),(0,n.jsx)("div",{className:"sm:w-1/3 w-3/4 md:px-2 sm:px-1 sm:mb-0 mb-3",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700",children:[(0,n.jsxs)("p",{className:"flex justify-center items-center font-[Oxanium-SemiBold] sm:text-lg text-base sm:mb-1.5 mb-1",children:[(0,n.jsx)("i",{className:"fa-solid fa-bolt rounded-full p-1 mr-1 text-yellow-500"}),"MEDIUM"]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] md:text-lg text-base mb-1",children:[o," GWEI / $",medTranFee()]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-xs mb-1",children:["Base: ",(0,n.jsx)("span",{className:"md:mr-2 mr-1",children:j}),"Priority: ",(0,n.jsx)("span",{children:w})]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-xs mb-1",children:["~",R," minutes ",_," seconds"]})]})}),(0,n.jsx)("div",{className:"sm:w-1/3 w-3/4 md:px-2 sm:px-1 sm:mb-0",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700",children:[(0,n.jsxs)("p",{className:"flex justify-center items-center font-[Oxanium-SemiBold] sm:text-lg text-base sm:mb-1.5 mb-1",children:[(0,n.jsx)("i",{className:"fa-solid fa-bolt rounded-full p-1 mr-1 text-red-500"}),"HIGH"]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] md:text-lg text-base mb-1",children:[h," GWEI / $",highTranFee()]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-xs mb-1",children:["Base: ",(0,n.jsx)("span",{className:"md:mr-2 mr-1",children:j}),"Priority: ",(0,n.jsx)("span",{children:E})]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-xs mb-1",children:["~",P," minutes ",C," seconds"]})]})})]}),(0,n.jsx)("br",{}),(0,n.jsx)("div",{className:"flex justify-center items-center font-[Oxanium-Medium] text-xs text-center mb-4",children:(0,n.jsx)("div",{children:"Powered by Etherscan.io APIs"})})]}),(0,n.jsx)("div",{className:"self-stretch xl:mb-0 mb-8 border border-1 border-[#36363c]"}),(0,n.jsxs)("div",{className:"xl:w-1/2 flex flex-col items-center justify-start pt-4",children:[(0,n.jsxs)("div",{className:"flex items-center font-[Oxanium-Light] sm:text-2xl text-xl text-center xl:mb-16 mb-8",children:[(0,n.jsx)("div",{className:"sm:mr-5 mr-3",children:(0,n.jsx)("img",{src:c.Y.bitcoinLogoIcon,alt:"Bitcoin logo",className:"sm:w-8 w-6"})}),(0,n.jsx)("h2",{className:"",children:"BITCOIN TRANSACTION FEE"})]}),(0,n.jsxs)("div",{className:"flex justify-around items-center sm:flex-row flex-col w-full px-3 mt-1",children:[(0,n.jsxs)("div",{className:"sm:w-1/4 w-3/4 md:px-2 sm:px-1 sm:mb-0 mb-3 relative",onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:[(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700",children:[(0,n.jsx)("p",{className:"flex justify-center items-center font-[Oxanium-SemiBold] text-xs sm:mb-1.5 mb-1 mt-1",children:"NO PRIORITY"}),(0,n.jsxs)("p",{className:"font-[Oxanium-Semibold] text-2xl my-2",children:[" $",t.economyFee.toFixed(2)]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-sm mt-1",children:[" ",e.economyFee," sat/vB "]})]}),(0,n.jsx)("div",{className:"absolute bg-[#2a2b3c] top-full mt-4 left-1/2 transform -translate-x-1/2 rounded p-1 shadow text-xs transition-all duration-200 ease-in-out border border-1 border-zinc-600 w-32 text-center ".concat(Y?"opacity-100":"opacity-0"),children:"Double the minimum or the same as Low, whichever is lower"})]}),(0,n.jsxs)("div",{className:"sm:w-1/4 w-3/4 md:px-2 sm:px-1 sm:mb-0 mb-3 relative",onMouseEnter:()=>q(!0),onMouseLeave:()=>q(!1),children:[(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700",children:[(0,n.jsxs)("p",{className:"flex justify-between items-center font-[Oxanium-SemiBold] text-sm sm:mb-1.5 mb-1 mt-1",children:[(0,n.jsx)("i",{className:"fa-solid fa-bolt rounded-full p-1 mr-1 text-green-600"}),(0,n.jsx)("p",{children:"LOW"})]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Semibold] text-2xl my-1",children:[" $",t.hourFee.toFixed(2)]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-sm my-1",children:[" ",e.hourFee," sat/vB "]})]}),(0,n.jsx)("div",{className:"absolute bg-[#2a2b3c] top-full mt-4 left-1/2 transform -translate-x-1/2 rounded p-1 shadow text-xs transition-all duration-200 ease-in-out border border-1 border-zinc-600 w-32 text-center ".concat(W?"opacity-100":"opacity-0"),children:"Transaction most likely will be placed in between the second and third mempool blocks"})]}),(0,n.jsxs)("div",{className:"sm:w-1/4 w-3/4 md:px-2 sm:px-1 sm:mb-0 mb-3 relative",onMouseEnter:()=>K(!0),onMouseLeave:()=>K(!1),children:[(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700",children:[(0,n.jsxs)("p",{className:"flex justify-center items-center font-[Oxanium-SemiBold] text-sm sm:mb-1.5 mb-1 mt-1",children:[(0,n.jsx)("i",{className:"fa-solid fa-bolt rounded-full p-1 mr-1 text-yellow-500"}),"MEDIUM"]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Semibold] text-2xl my-1",children:[" $",t.halfHourFee.toFixed(2)]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-sm my-1",children:[" ",e.halfHourFee," sat/vB "]})]}),(0,n.jsx)("div",{className:"absolute bg-[#2a2b3c] top-full mt-4 left-1/2 transform -translate-x-1/2 rounded p-1 shadow text-xs transition-all duration-200 ease-in-out border border-1 border-zinc-600 w-32 text-center ".concat(V?"opacity-100":"opacity-0"),children:"Transaction most likely will be placed in between the first and second mempool blocks"})]}),(0,n.jsxs)("div",{className:"sm:w-1/4 w-3/4 md:px-2 sm:px-1 sm:mb-0 mb-3 relative",onMouseEnter:()=>X(!0),onMouseLeave:()=>X(!1),children:[(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700",children:[(0,n.jsxs)("p",{className:"flex justify-center items-center font-[Oxanium-SemiBold] text-sm sm:mb-1.5 mb-1 mt-1",children:[(0,n.jsx)("i",{className:"fa-solid fa-bolt rounded-full p-1 mr-1 text-red-500"}),"HIGH"]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Semibold] text-2xl my-1",children:[" $",t.fastestFee.toFixed(2)]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-sm my-1",children:[" ",e.fastestFee," sat/vB "]})]}),(0,n.jsx)("div",{className:"absolute bg-[#2a2b3c] top-full mt-4 left-1/2 transform -translate-x-1/2 rounded p-1 shadow text-xs transition-all duration-200 ease-in-out border border-1 border-zinc-600 w-32 text-center ".concat(Q?"opacity-100":"opacity-0"),children:"Transaction will be placed in the first mempool block"})]})]})]}),(0,n.jsxs)("div",{id:"capture-ethereum",className:"hidden flex-col flex w-[1280px] font-[Oxanium-Regular] justify-center items-center bg-zinc-900 pt-4 px-12 bg-zinc-900 border-[12px] border-zinc-600 pb-10",children:[(0,n.jsxs)("div",{className:"tracking-[.2em] leading-[1.2rem] w-full flex items-center justify-center",children:[(0,n.jsx)("img",{src:c.Y.mainLogo,alt:"Trading Digits logo",className:"w-[26px] h-[26px] mr-3.5"}),(0,n.jsx)("span",{className:"text-3xl mb-[30px] font-[Oxanium-Medium]",children:"TRADING DIGITS"})]}),(0,n.jsxs)("div",{className:"flex items-center justify-center font-[Oxanium-Light] sm:text-2xl text-xl text-center",children:[(0,n.jsx)("div",{className:"mr-3",children:(0,n.jsx)("img",{src:c.Y.ethereumLogoIcon,alt:"Ethereum logo",className:"w-5"})}),(0,n.jsx)("h2",{className:"pb-[26px]",children:"ETHEREUM GAS PRICE"})]}),(0,n.jsx)("div",{className:"text-lg text-center mb-12 flex justify-center w-full",children:ea}),(0,n.jsxs)("div",{className:"flex items-center xl:pr-3 sm:flex-row flex-col px-3 justify-around",children:[(0,n.jsx)("div",{className:"w-1/4 md:px-2 sm:px-1 sm:mb-0 mb-3 ",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700 pb-6",children:[(0,n.jsxs)("p",{className:"flex justify-center items-center font-[Oxanium-SemiBold] sm:text-lg text-base sm:mb-1.5 mb-1",children:[(0,n.jsx)("i",{className:"fa-solid fa-bolt rounded-full p-1 mr-1 text-green-600"}),"LOW"]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] md:text-lg text-base mb-1",children:[" ",s," GWEI / $",lowTranFee()]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-xs mb-1",children:["Base: ",(0,n.jsx)("span",{className:"md:mr-2 mr-1",children:j}),"Priority: ",(0,n.jsx)("span",{children:y})]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-xs mb-1",children:["~",T," minutes ",O," seconds"]})]})}),(0,n.jsx)("div",{className:"w-1/4 md:px-2 sm:px-1 sm:mb-0 mb-3",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700 pb-6",children:[(0,n.jsxs)("p",{className:"flex justify-center items-center font-[Oxanium-SemiBold] sm:text-lg text-base sm:mb-1.5 mb-1",children:[(0,n.jsx)("i",{className:"fa-solid fa-bolt rounded-full p-1 mr-1 text-yellow-500"}),"MEDIUM"]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] md:text-lg text-base mb-1",children:[o," GWEI / $",medTranFee()]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-xs mb-1",children:["Base: ",(0,n.jsx)("span",{className:"md:mr-2 mr-1",children:j}),"Priority: ",(0,n.jsx)("span",{children:w})]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-xs mb-1",children:["~",R," minutes ",_," seconds"]})]})}),(0,n.jsx)("div",{className:"w-1/4 md:px-2 sm:px-1 sm:mb-0",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700 pb-6",children:[(0,n.jsxs)("p",{className:"flex justify-center items-center font-[Oxanium-SemiBold] sm:text-lg text-base sm:mb-1.5 mb-1",children:[(0,n.jsx)("i",{className:"fa-solid fa-bolt rounded-full p-1 mr-1 text-red-500"}),"HIGH"]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] md:text-lg text-base mb-1",children:[h," GWEI / $",highTranFee()]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-xs mb-1",children:["Base: ",(0,n.jsx)("span",{className:"md:mr-2 mr-1",children:j}),"Priority: ",(0,n.jsx)("span",{children:E})]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-xs mb-1",children:["~",P," minutes ",C," seconds"]})]})})]}),(0,n.jsx)("br",{}),(0,n.jsx)("div",{className:"flex justify-center items-center font-[Oxanium-Medium] text-xs text-center mb-4",children:(0,n.jsx)("div",{children:"Powered by Etherscan.io APIs"})})]}),(0,n.jsxs)("div",{id:"capture-bitcoin",className:"hidden flex-col flex w-[1280px] font-[Oxanium-Regular] justify-center items-center bg-zinc-900 pt-4 px-12 bg-zinc-900 border-[12px] border-zinc-600 pb-16",children:[(0,n.jsxs)("div",{className:"tracking-[.2em] leading-[1.2rem] w-full flex items-center justify-center",children:[(0,n.jsx)("img",{src:c.Y.mainLogo,alt:"Trading Digits logo",className:"w-[26px] h-[26px] mr-3.5"}),(0,n.jsx)("span",{className:"text-3xl mb-[30px] font-[Oxanium-Medium]",children:"TRADING DIGITS"})]}),(0,n.jsxs)("div",{className:"flex items-center justify-center font-[Oxanium-Light] sm:text-2xl text-xl text-center",children:[(0,n.jsx)("div",{className:"sm:mr-5 mr-3",children:(0,n.jsx)("img",{src:c.Y.bitcoinLogoIcon,alt:"Bitcoin logo",className:"sm:w-8 w-6"})}),(0,n.jsx)("h2",{className:"pb-[26px]",children:"BITCOIN TRANSACTION FEES"})]}),(0,n.jsx)("div",{className:"text-lg text-center mb-12 flex justify-center w-full",children:ea}),(0,n.jsxs)("div",{className:"flex justify-around items-center sm:flex-row flex-col w-full px-3 mt-1",children:[(0,n.jsx)("div",{className:"w-1/5 md:px-2 sm:px-1 sm:mb-0 mb-3 relative",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700 pb-6",children:[(0,n.jsx)("p",{className:"flex justify-center items-center font-[Oxanium-SemiBold] text-base mb-1.5",children:"NO PRIORITY"}),(0,n.jsxs)("p",{className:"font-[Oxanium-Semibold] text-2xl my-2",children:[" $",t.economyFee.toFixed(2)]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-sm mt-1",children:[" ",e.economyFee," sat/vB "]})]})}),(0,n.jsx)("div",{className:"w-1/5 md:px-2 sm:px-1 sm:mb-0 mb-3 relative",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700 pb-6",children:[(0,n.jsxs)("p",{className:"flex justify-between items-center font-[Oxanium-SemiBold] text-base sm:mb-1.5 mb-1 mt-1",children:[(0,n.jsx)("i",{className:"fa-solid fa-bolt rounded-full p-1 mr-1 text-green-600 fa-lg"}),(0,n.jsx)("p",{children:"LOW"})]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Semibold] text-2xl my-1",children:[" $",t.hourFee.toFixed(2)]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-sm my-1",children:[" ",e.hourFee," sat/vB "]})]})}),(0,n.jsx)("div",{className:"w-1/5 md:px-2 sm:px-1 sm:mb-0 mb-3 relative",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700 pb-6",children:[(0,n.jsxs)("p",{className:"flex justify-center items-center font-[Oxanium-SemiBold] text-base sm:mb-1.5 mb-1 mt-1",children:[(0,n.jsx)("i",{className:"fa-solid fa-bolt rounded-full p-1 mr-1 text-yellow-500 fa-lg"}),"MEDIUM"]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Semibold] text-2xl my-1",children:[" $",t.halfHourFee.toFixed(2)]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-sm my-1",children:[" ",e.halfHourFee," sat/vB "]})]})}),(0,n.jsx)("div",{className:"w-1/5 md:px-2 sm:px-1 sm:mb-0 mb-3 relative",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-center items-center md:px-3 px-1 py-2 rounded-lg border border-1 border-zinc-600 bg-zinc-700 pb-6",children:[(0,n.jsxs)("p",{className:"flex justify-center items-center font-[Oxanium-SemiBold] text-base sm:mb-1.5 mb-1 mt-1",children:[(0,n.jsx)("i",{className:"fa-solid fa-bolt rounded-full p-1 mr-1 text-red-500 fa-lg"}),"HIGH"]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Semibold] text-2xl my-1",children:[" $",t.fastestFee.toFixed(2)]}),(0,n.jsxs)("p",{className:"font-[Oxanium-Regular] text-sm my-1",children:[" ",e.fastestFee," sat/vB "]})]})})]})]})]}):(0,n.jsx)("div",{className:"flex w-full items-center justify-center mt-32",children:(0,n.jsx)("img",{src:c.Y.logoLoading,className:"quick-pulse w-48",alt:"Loading..."})})]})})]})}GasFees.layout=o.Z},7663:function(e){!function(){var t={229:function(e){var t,s,n,a=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(s){try{return t.call(null,e,0)}catch(s){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{s="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){s=defaultClearTimeout}}();var r=[],i=!1,l=-1;function cleanUpNextTick(){i&&n&&(i=!1,n.length?r=n.concat(r):l=-1,r.length&&drainQueue())}function drainQueue(){if(!i){var e=runTimeout(cleanUpNextTick);i=!0;for(var t=r.length;t;){for(n=r,r=[];++l<t;)n&&n[l].run();l=-1,t=r.length}n=null,i=!1,function(e){if(s===clearTimeout)return clearTimeout(e);if((s===defaultClearTimeout||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)t[s-1]=arguments[s];r.push(new Item(e,t)),1!==r.length||i||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=noop,a.addListener=noop,a.once=noop,a.off=noop,a.removeListener=noop,a.removeAllListeners=noop,a.emit=noop,a.prependListener=noop,a.prependOnceListener=noop,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}}},s={};function __nccwpck_require__(e){var n=s[e];if(void 0!==n)return n.exports;var a=s[e]={exports:{}},r=!0;try{t[e](a,a.exports,__nccwpck_require__),r=!1}finally{r&&delete s[e]}return a.exports}__nccwpck_require__.ab="//";var n=__nccwpck_require__(229);e.exports=n}()}},function(e){e.O(0,[8391,4738,4817,2510,5443,5372,5912,9774,2888,179],function(){return e(e.s=4146)}),_N_E=e.O()}]);