PageSourceSearch

https://block.info/assets/blockList.e4814658.js

js block.info collected 2026-10-08 07:26:25 UTC 8,491 bytes, 1 lines download raw bytes

1import{a as I,c as V,l as y,k as W,n as m,p as $,e as a,s as x,v as X,B as Y,C as Z,D as S,u as j,b as G,t as _,r as v,h as P,F as B,w as q,o as J,cs as M,M as d,cb as Q,N,cg as E,aI as D,A as H,y as O}from"./index.4aa4ebc6.js";import{P as ee}from"./public-header-title.072103d5.js";import{P as te}from"./public-table.8e86eaf3.js";import{P as ae}from"./public-search.e9f22844.js";import"./index.c811aae9.js";import"./table.86987f3b.js";import"./index.b0b662c5.js";import"./useState.ca57e47f.js";import"./Spin.405ba598.js";import"./DownOutlined.0749fbaa.js";import"./createForOfIteratorHelper.b3b6d3ca.js";import"./CheckOutlined.19c6d193.js";import"./zh_CN.8010c171.js";const ie=n=>(Y("data-v-95540643"),n=n(),Z(),n),se={class:"block-list"},le={class:"block-list-main"},ne=ie(()=>x("div",{class:"list-title"}," Block list ",-1)),oe={class:"list-total"},ce=I({__name:"public-block-list",props:{blocks:{type:Object,default:{}},paginationParams:{type:Object}},setup(n){const c=n,k=V(),u=y(()=>{var l;return(l=k.chainInfo[c.blocks.chain])==null?void 0:l.name}),s=y(()=>W(c.paginationParams.pagination.lastBlock));return(l,i)=>(m(),$("div",se,[a(ee,{data:{chain:n.blocks.chain,title:`${u.value}`}},null,8,["data"]),x("div",le,[ne,x("div",oe,X(s.value)+" blocks in total (Only display nearly 10,000 pieces of data) ",1),a(te,{columns:n.blocks.columns,list:n.blocks.list,loading:n.blocks.loading,paginationParams:n.paginationParams},null,8,["columns","list","loading","paginationParams"])])]))}});const K=S(ce,[["__scopeId","data-v-95540643"]]),re={class:"utxo-container"},de={class:"utxo-container-main"},ke=I({__name:"block-list",setup(n){const c=V();j();const k=G(),{chain:u}=_(k.params),s=u.toLowerCase(),l=y(()=>{var e,o;return((o=(e=c.chainInfo[s])==null?void 0:e.chainUnit)==null?void 0:o.toUpperCase())||""}),i=v({currentPage:1,defaultPageSize:20,total:0,lastBlock:0,hideQuickJumper:!0,hideTotal:!0}),r=v({chain:s,columns:[{title:"Block",dataIndex:"block",key:"block",customRender:({record:e})=>a("a",{class:"primary-style",href:`/explorer/${s}/block/${e.block}`},[e.block])},{title:"Relayed By",dataIndex:"relayedBy",key:"relayedBy",customRender:({record:e})=>a(B,null,[e.relayedBy?a("a",{class:"primary-style",href:`/explorer/${s}/address/${e.relayedBy}`},[a(P,{bgColor:"#000000",text:e.relayedBy,placement:"top",fontSize:"12px"},{default:()=>[e.relayedBy.slice(0,10)+"..."+e.relayedBy.slice(-4)]})]):"-"])},{title:"Txns",dataIndex:"txns",key:"txns"},{title:"Time",dataIndex:"time",key:"time"},{title:"BlokckSize (Bytes)",dataIndex:"blockSize",key:"blockSize"},{title:`Block Profit (${l.value})`,dataIndex:"blockProfit",key:"blockProfit",align:"right"},{title:`Average Transaction Fee (${l.value})`,dataIndex:"fee",key:"fee",align:"right"}],loading:!0,list:[]});q(()=>l.value,e=>{p()}),J(()=>{p()});function p(){l.value&&b()}async function b(){try{Object.assign(r,{loading:!0,columns:[{title:"Block",dataIndex:"block",key:"block",customRender:({record:t})=>a("a",{class:"primary-style",href:`/explorer/${s}/block/${t.block}`},[t.block])},{title:"Relayed By",dataIndex:"relayedBy",key:"relayedBy",customRender:({record:t})=>a(B,null,[t.relayedBy?a("a",{class:"primary-style",href:`/explorer/${s}/address/${t.relayedBy}`},[a(P,{bgColor:"#000000",text:t.relayedBy,placement:"top",fontSize:"12px"},{default:()=>[t.relayedBy.slice(0,10)+"..."+t.relayedBy.slice(-4)]})]):"-"])},{title:"Txns",dataIndex:"txns",key:"txns"},{title:"Time",dataIndex:"time",key:"time"},{title:"BlokckSize (Bytes)",dataIndex:"blockSize",key:"blockSize"},{title:`Block Profit (${l.value})`,dataIndex:"blockProfit",key:"blockProfit",align:"right"},{title:`Average Transaction Fee (${l.value})`,dataIndex:"fee",key:"fee",align:"right"}],list:[]});const e=await M({chain:s,page:i.currentPage-1,size:i.defaultPageSize}),{blocks:o,total:g=0}=e!=null?e:{},f=[];Array.isArray(o)&&(o.forEach(t=>{const{averageTxFee:U,blockNumber:w,blockProfit:L,chain:R,miner:T,minerAddress:A,size:C,timeUnix:h,txns:F}=t;f.push({block:w,relayedBy:A,txns:d(F),time:h?Q(h*1e3):"-",blockSize:d(C),blockProfit:L,fee:d(U,6)})}),i.currentPage==1&&Object.assign(i,{total:g-1e4<0?g:1e4,lastBlock:g})),Object.assign(r,{loading:!1,list:f})}catch{Object.assign(r,{loading:!1,list:[]})}}const z=e=>{i.currentPage=e,b(),document.querySelector(".block-list").scrollIntoView({block:"start"})};return(e,o)=>(m(),$("div",re,[x("div",de,[a(K,{blocks:r,paginationParams:{pagination:i,onPagination:z}},null,8,["blocks","paginationParams"])])]))}});const ue=S(ke,[["__scopeId","data-v-0e861b18"]]),ge={class:"evm-container"},me={class:"evm-container-main"},ye=I({__name:"block-list",setup(n){const c=V();j();const k=G(),{chain:u}=_(k.params),s=u.toLowerCase(),l=y(()=>{var e,o;return((o=(e=c.chainInfo[s])==null?void 0:e.chainUnit)==null?void 0:o.toUpperCase())||""}),i=v({currentPage:1,defaultPageSize:20,total:0,lastBlock:0,hideQuickJumper:!0,hideTotal:!0}),r=v({chain:s,columns:[{title:"Block Height",dataIndex:"block",key:"block",customRender:({record:e})=>a("a",{class:"primary-style",href:`/explorer/${s}/block/${e.block}`},[e.block])},{title:"Verifier",dataIndex:"verifier",key:"verifier",customRender:({record:e})=>a("a",{class:"primary-style",href:`/explorer/${s}/address/${e.verifier}`},[a(P,{bgColor:"#000000",text:e.verifier,placement:"top",fontSize:"12px"},{default:()=>[N(" "),e.verifier.slice(0,10)+"..."+e.verifier.slice(-4)]})])},{title:"Txns",dataIndex:"txns",key:"txns"},{title:"Time",dataIndex:"time",key:"time"},{title:"Block Size",dataIndex:"size",key:"size"},{title:"Gas Usage",dataIndex:"gasUsage",key:"gasUsage",align:"right",customRender:({record:e})=>a(B,null,[e.gasUsage,a("div",{class:"rate-style"},[e.gasUseageRate])])}
1,{title:"Gas Limit",dataIndex:"gasLimit",key:"gasLimit",align:"right"},{title:"Gas Average Price (Gwei)",dataIndex:"price",key:"price",align:"right",width:130},{title:`Block Profit (${l.value})`,dataIndex:"blockProfit",key:"blockProfit",align:"right",width:100}],loading:!0,list:[]});q(()=>l.value,e=>{p()}),J(()=>{p()});function p(){l.value&&b()}async function b(){try{Object.assign(r,{loading:!0,columns:[{title:"Block Height",dataIndex:"block",key:"block",customRender:({record:t})=>a("a",{class:"primary-style",href:`/explorer/${s}/block/${t.block}`},[t.block])},{title:"Verifier",dataIndex:"verifier",key:"verifier",customRender:({record:t})=>a("a",{class:"primary-style",href:`/explorer/${s}/address/${t.verifier}`},[a(P,{bgColor:"#000000",text:t.verifier,placement:"top",fontSize:"12px"},{default:()=>[N(" "),t.verifier.slice(0,10)+"..."+t.verifier.slice(-4)]})])},{title:"Txns",dataIndex:"txns",key:"txns"},{title:"Time",dataIndex:"time",key:"time"},{title:"Block Size",dataIndex:"size",key:"size"},{title:"Gas Usage",dataIndex:"gasUsage",key:"gasUsage",align:"right",customRender:({record:t})=>a(B,null,[t.gasUsage,a("div",{class:"rate-style"},[t.gasUseageRate])])},{title:"Gas Limit",dataIndex:"gasLimit",key:"gasLimit",align:"right"},{title:"Gas Average Price (Gwei)",dataIndex:"price",key:"price",align:"right",width:130},{title:`Block Profit (${l.value})`,dataIndex:"blockProfit",key:"blockProfit",align:"right",width:100}],list:[]});const e=await M({chain:s,page:i.currentPage-1,size:i.defaultPageSize}),{blocks:o,total:g=0}=e!=null?e:{},f=[];Array.isArray(o)&&(o.forEach(t=>{const{gasAvgPrice:U,blockNumber:w,blockReward:L,gasUsed:R,gasLimit:T,minerAddress:A,size:C,timeUnix:h,txns:F}=t;f.push({block:w,verifier:A,txns:d(F),gasUsage:d(R),gasUseageRate:parseFloat((R/T*100).toFixed(2))+"%",gasLimit:d(T),time:h?Q(h*1e3):"-",size:d(C),price:d(U),blockProfit:d(L,6)})}),i.currentPage==1&&Object.assign(i,{total:g-1e4<0?g:1e4,lastBlock:g})),Object.assign(r,{loading:!1,list:f})}catch{Object.assign(r,{loading:!1,list:[]})}}const z=e=>{i.currentPage=e,b(),document.querySelector(".block-list").scrollIntoView({block:"start"})};return(e,o)=>(m(),$("div",ge,[x("div",me,[a(K,{blocks:r,paginationParams:{pagination:i,onPagination:z}},null,8,["blocks","paginationParams"])])]))}});const pe=S(ye,[["__scopeId","data-v-b90cd518"]]),be={key:0,class:"content-container"},fe=I({__name:"blockList",setup(n){const c=G(),k=j();function u(){const{params:{chain:i}}=_(c);if(E(i)||D(i))return!0;k.replace("/")}const s=y(()=>{const{params:{chain:i}}=_(c);return E(i)}),l=y(()=>{const{params:{chain:i}}=_(c);return D(i)});return(i,r)=>u()?(m(),$("div",be,[a(ae),s.value?(m(),H(ue,{key:0})):O("",!0),l.value?(m(),H(pe,{key:1})):O("",!0)])):O("",!0)}});const Re=S(fe,[["__scopeId","data-v-a9efce6b"]]);export{Re 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.