1import{a as r,j as e,F as p}from"./article-chunk.c8836a88.js";import{r as o}from"./react-chunk.44b61007.js";import{a as N}from"./axios-chunk.7738e096.js";import"./parser-chunk.b9270afc.js";import"./backend-chunk.5a01a22e.js";import"./prebid-chunk.3b5c91b8.js";import"./date-chunk.ae9eeb0f.js";const P="/py/blockchainstatus",U=()=>{const[g,f]=o.useState(null),[k,b]=o.useState(!0),[u,m]=o.useState(null);if(o.useEffect(()=>{(async()=>{try{const i=await N.get(P);i.data&&typeof i.data=="object"?f(i.data):m("Invalid response format.")}catch{m("Failed to fetch blockchain data.")}finally{b(!1)}})()},[]),k)return r("p",{children:"Loading blockchain data..."});if(u)return r("p",{style:{color:"red"},children:u});if(!g)return r("p",{children:"No blockchain data available."});const{blocks:_,difficulty:c,mempool_size:l,mempool_tx_count:s,mempool_min_fee:S,mempool_usage_percent:x,verification_progress:a,network_hash_rate:d,total_tx_count:h,block_size_limit:T,block_weight_limit:y,segwit_active:B,pruned:L,latest_block_signals:t,sample_outputs:n}=g;return e("div",{style:{padding:"20px",border:"1px solid #ddd",borderRadius:"6px",maxWidth:"700px",margin:"2rem auto",fontFamily:"Arial, sans-serif"},children:[r("h2",{children:"â¿ Bitcoin Blockchain Status"}),e("p",{children:[r("strong",{children:"Block Height:"})," ",_]}),e("p",{children:[r("strong",{children:"Difficulty:"})," ",c==null?void 0:c.toLocaleString()]}),e("p",{children:[r("strong",{children:"Mempool Size:"})," ",l==null?void 0:l.toLocaleString()," transactions"]}),e("p",{children:[r("strong",{children:"Mempool TX Count:"})," ",s==null?void 0:s.toLocaleString()]}),e("p",{children:[r("strong",{children:"Minimum Fee:"})," ",S," BTC/kvB"]}),e("p",{children:[r("strong",{children:"Mempool Usage:"})," ",x,"%"]}),e("p",{children:[r("strong",{children:"Total Transactions:"})," ",h==null?void 0:h.toLocaleString()]}),e("p",{children:[r("strong",{children:"Verification Progress:"})," ",a==null?void 0:a.toFixed(5)]}),e("p",{children:[r("strong",{children:"Network Hash Rate:"})," ",d==null?void 0:d.toLocaleString()," H/s"]}),e("p",{children:[r("strong",{children:"SegWit Active:"})," ",B?"Yes":"No"]}),e("p",{children:[r("strong",{children:"Pruned Node:"})," ",L?"Yes":"No"]}),e("p",{children:[r("strong",{children:"Block Size Limit:"})," ",T," bytes"]}),e("p",{children:[r("strong",{children:"Block Weight Limit:"})," ",y]}),t&&e(p,{children:[r("h4",{children:"ð Protocol Signals"}),e("p",{children:[r("strong",{children:"OP_RETURN TXs:"})," ",t.op_return_tx]}),e("p",{children:[r("strong",{children:"Multisig TXs:"})," ",t.multisig_tx]}),e("p",{children:[r("strong",{children:"Taproot TXs:"})," ",t.taproot_tx]}),e("p",{children:[r("strong",{children:"Inscription TXs:"})," ",t.inscription_tx]}),e("p",{children:[r("strong",{children:"LN Channel TXs:"})," ",t.ln_channel_tx]})]}),n&&e(p,{children:[r("h4",{children:" Sample Outputs"}),n.op_return&&e("p",{children:[r("strong",{children:"OP_RETURN:"})," ",n.op_return.decoded]}),n.taproot&&e(p,{children:[e("p",{children:[r("strong",{children:"Taproot Address:"})," ",n.taproot.address]}),e("p",{children:[r("strong",{children:"Taproot Pubkey:"})," ",n.taproot.pubkey]})]})]})]})};export{U as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.