Reading from NEAR testnet…
Reading from NEAR testnet…
GvBBsPuZCAyHxPaSQDDb4dod6EJeWbVYRJRMq6kRMupg
sarin.testnet to v1.social08.testnet
set() with 1 yoctoNEAR
{
"data": {
"sarin.testnet": {
"widget": {
"light.libs.fetcher": {
"": "const fetcher = () => {\n const retryFetch = (url, options) => {\n let attempts = 0;\n const retries = 3;\n const makeRequest = () => {\n return new Promise((resolve, reject) => {\n asyncFetch(url, options)\n .then((response) => {\n if (response.ok) {\n return resolve(response);\n }\n return reject(response);\n })\n .catch(reject);\n });\n };\n const attemptRequest = () => {\n return makeRequest()\n .then((response) => response)\n .catch((error) => {\n if (attempts < retries) {\n attempts++;\n const delay = 1000 * Math.pow(2, attempts);\n return new Promise((resolve) => setTimeout(resolve, delay)).then(\n attemptRequest\n );\n } else {\n return Promise.reject(error);\n }\n });\n };\n return attemptRequest();\n };\n const rpcFetch = (url, method, params) => {\n const options = {\n body: JSON.stringify({\n id: \"near\",\n jsonrpc: \"2.0\",\n method,\n params,\n }),\n headers: {\n \"Content-Type\": \"application/json\",\n },\n method: \"POST\",\n };\n return new Promise((resolve, reject) => {\n retryFetch(url, options)\n .then((response) => {\n const body = response.body;\n if (body.result) {\n return resolve(body.result);\n }\n return reject(body.error);\n })\n .catch(reject);\n });\n };\n const apiFetch = (url) => {\n const options = {\n headers: {\n \"Content-Type\": \"application/json\",\n },\n };\n return new Promise((resolve, reject) => {\n retryFetch(url, options)\n .then((response) => {\n resolve(response.body);\n })\n .catch(reject);\n });\n };\n return { apiFetch, retryFetch, rpcFetch };\n};\nreturn fetcher(props);\n"
},
"light.Home": {
"": "const App = () => {\n return (\n <div className=\"relative container mx-auto\">\n <div className=\"py-[58px] px-6\">\n <h1 className=\"font-heading font-bold text-[49px] tracking-[1px]\">\n Hello, I’m the explorer\n </h1>\n <h2 className=\"font-heading font-medium text-[40px] tracking-[0.4px] mt-[-3px]\">\n If I could talk, this is what I would say to you guys.\n </h2>\n </div>\n <hr className=\"h-px border-0 border-b border-primary/20\" />\n <Widget key=\"chart\" src={`sarin.testnet/widget/light.Home.Chart`} />\n <Widget key=\"stats\" src={`sarin.testnet/widget/light.Home.Stats`} />\n </div>\n );\n};\nreturn App(props);\n"
},
"light.Home.Chart": {
"": "const Chart = () => {\n let { apiFetch } = VM.require(`sarin.testnet/widget/light.libs.fetcher`);\n let { formatNumber, formatScale } = VM.require(\n `sarin.testnet/widget/light.libs.formatter`\n );\n let { yoctoToTgas } = VM.require(`sarin.testnet/widget/light.libs.convertor`);\n formatNumber = formatNumber || (() => <></>);\n formatScale = formatScale || (() => <></>);\n yoctoToTgas = yoctoToTgas || (() => <></>);\n const [charts, setCharts] = useState(null);\n useEffect(() => {\n if (apiFetch) {\n apiFetch(`https://api-testnet.nearblocks.io/v1/charts/latest`)\n .then((response) => setCharts(response?.charts))\n .catch(console.log);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n const srcDoc = useMemo(() => {\n let series = [];\n let categories = [];\n if (charts?.length) {\n series = charts?.map((chart) => ({\n date: new Date(chart.date).toLocaleDateString(\"en-US\", {\n day: \"numeric\",\n month: \"short\",\n weekday: \"long\",\n year: \"numeric\",\n }),\n price: `$${formatNumber(chart.near_price ?? \"0\", 2)}`,\n txns: formatNumber(chart.txns, 0),\n y: Number(chart.txns),\n }));\n series.reverse();\n categories = series.map((stat) => stat.date);\n }\n return `\n <html>\n <head>\n <title>Highcharts Line Chart</title>\n <script src=\"https://code.highcharts.com/highcharts.js\"></script>\n </head>\n <body style=\"margin: 0\">\n <div id=\"container\" style=\"width: 100%; height: 280px\"></div>\n <script>\n document.addEventListener(\"DOMContentLoaded\", function () {\n Highcharts.chart(\"container\", {\n chart: {\n spacingTop: 0,\n spacingBottom: 0,\n spacingLeft: 0,\n spacingRight: 0,\n backgroundColor: \"transparent\"\n },\n title: {\n text: undefined,\n },\n xAxis: {\n visible: false,\n categories: ${JSON.stringify(categories)},\n },\n yAxis: {\n visible: false,\n },\n series: [\n {\n name: \"Transactions\",\n type: \"spline\",\n data: ${JSON.stringify(series)},\n lineWidth: 3\n },\n ],\n tooltip: {\n formatter: function () {\n return '<span style=\"font-size:10px\">' + this.point.date + '</span><br/>${\n context.networkId === \"testnet\"\n ? \"\"\n : \"Price: <b>' + this.point.price + '</b><br/>\"\n }Transactions: <b>' + this.point.txns + '</b>'\n }\n },\n legend: {\n enabled: false,\n },\n plotOptions: {\n spline: {\n marker: {\n radius: 0,\n states: {\n hover: {\n radius: 4\n }\n }\n },\n },\n },\n exporting: {\n enabled: false,\n },\n credits: {\n enabled: false,\n },\n });\n });\n </script>\n </body>\n </html>\n `;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [charts]);\n return (\n <div className=\"flex flex-col pt-4 pb-6\">\n <iframe\n className=\"w-full overflow-hidden border-none\"\n srcDoc={srcDoc}\n style={{ height: 280 }}\n />\n </div>\n );\n};\nreturn Chart(props);\n"
},
"light.libs.formatter": {
"": "const formatter = () => {\n const formatNumber = (value, decimals) => {\n const bigNumber = Big(value).toFixed(decimals);\n const parts = bigNumber.split(\".\");\n const integerPart = parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\n if (parts.length === 1 || decimals === 0) return integerPart;\n const decimalPart = parts[1].slice(0, decimals).replace(/0+$/, \"\");\n if (!decimalPart) return integerPart;\n return `${integerPart}.${decimalPart}`;\n };\n const formatScale = (value, decimals) => {\n const bigNumber = Big(value);\n const scales = [\n { suffix: \"T\", threshold: Big(1e12) },\n { suffix: \"B\", threshold: Big(1e9) },\n { suffix: \"M\", threshold: Big(1e6) },\n { suffix: \"K\", threshold: Big(1e3) },\n ];\n for (const scale of scales) {\n if (bigNumber.gte(scale.threshold)) {\n const formatted = formatNumber(\n bigNumber.div(scale.threshold).toString(),\n decimals\n );\n return `${formatted} ${scale.suffix}`;\n }\n }\n return formatNumber(bigNumber.toString(), decimals);\n };\n const formatSize = (value, decimals) => {\n const bigNumber = Big(value);\n const sizes = [\"B\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\"];\n if (bigNumber.eq(0)) return \"0 B\";\n const i = Math.floor(Math.log(bigNumber.toNumber()) / Math.log(1024));\n const converted = bigNumber.div(Big(1024).pow(i)).toString();\n const formatted = formatNumber(converted, decimals);\n return `${formatted} ${sizes[i]}`;\n };\n return { formatNumber, formatScale, formatSize };\n};\nreturn formatter(props);\n"
},
"light.Home.Stats": {
"": "let Skeleton = window?.Skeleton || (({ children }) => <>{children}</>);\nconst Stats = () => {\n let { apiFetch } = VM.require(`sarin.testnet/widget/light.libs.fetcher`);\n let { formatNumber, formatScale } = VM.require(\n `sarin.testnet/widget/light.libs.formatter`\n );\n let { yoctoToTgas } = VM.require(`sarin.testnet/widget/light.libs.convertor`);\n formatNumber = formatNumber || (() => <></>);\n formatScale = formatScale || (() => <></>);\n yoctoToTgas = yoctoToTgas || (() => <></>);\n const [loading, setLoading] = useState(true);\n const [stats, setStats] = useState(null);\n useEffect(() => {\n if (apiFetch) {\n apiFetch(`https://api-testnet.nearblocks.io/v1/stats`)\n .then((response) => setStats(response?.stats?.[0]))\n .catch(console.log)\n .finally(() => setLoading(false));\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return (\n <div className=\"lg:flex flex-wrap justify-between px-3 lg:px-0\">\n <div className=\"sm:flex lg:block flex-wrap justify-between lg:min-w-[200px]\">\n <div className=\"px-3 mb-[42px]\">\n <p className=\"font-heading font-medium text-[39px] tracking-[0.6px] -mb-[5px]\">\n <Skeleton className=\"w-28\" loading={loading}>\n {formatScale(stats?.total_txns ?? \"0\", 2)}\n </Skeleton>\n </p>\n <h3 className=\"font-normal text-[20px]\">Transactions</h3>\n </div>\n <div className=\"px-3 mb-[42px]\">\n <p className=\"font-heading font-medium text-[39px] tracking-[0.6px] -mb-[5px] sm:text-right lg:text-left\">\n <Skeleton className=\"w-16\" loading={loading}>\n {formatNumber(String(stats?.nodes_online ?? 0), 0)}\n </Skeleton>\n </p>\n <h3 className=\"text-[20px] font-normal sm:text-right lg:text-left\">\n Active Validators\n </h3>\n </div>\n </div>\n {context.networkId === \"mainnet\" && (\n <div className=\"sm:flex lg:block flex-wrap justify-between lg:min-w-[200px]\">\n <div className=\"px-3 mb-[42px]\">\n <p className=\"font-heading font-medium text-[39px] tracking-[0.6px] lg:text-center -mb-[5px]\">\n <Skeleton className=\"w-28\" loading={loading}>\n ${formatNumber(stats?.near_price ?? \"0\", 2)}\n </Skeleton>\n </p>\n <h3 className=\"text-[20px] font-normal lg:text-center\">\n Near Price\n </h3>\n </div>\n <div className=\"px-3 mb-[42px]\">\n <p className=\"font-heading font-medium text-[39px] tracking-[0.6px] sm:text-right lg:text-center -mb-[5px]\">\n <Skeleton className=\"w-36\" loading={loading}>\n ${formatScale(stats?.market_cap ?? \"0\", 2)}\n </Skeleton>\n </p>\n <h3 className=\"font-normal text-[20px] sm:text-right lg:text-center\">\n Market Cap\n </h3>\n </div>\n </div>\n )}\n <div className=\"sm:flex lg:block flex-wrap justify-between lg:min-w-[200px]\">\n <div className=\"px-3 mb-[42px]\">\n <p className=\"font-heading font-medium text-[39px] tracking-[0.6px] lg:text-right -mb-[5px]\">\n <Skeleton className=\"w-44\" loading={loading}>\n {formatNumber(yoctoToTgas(stats?.gas_price ?? \"0\"), 4)} Ⓝ\n </Skeleton>\n </p>\n <h3 className=\"font-normal text-[20px] lg:text-right\">\n Gas Price / Tgas\n </h3>\n </div>\n <div className=\"px-3 mb-[42px]\">\n <p className=\"font-heading font-medium text-[39px] tracking-[0.6px] sm:text-right lg:text-right -mb-[5px]\">\n <Skeleton className=\"w-36\" loading={loading}>\n {formatNumber(stats?.avg_block_time ?? \"0\", 4)}s\n </Skeleton>\n </p>\n <h3 className=\"font-normal text-[20px] sm:text-right lg:text-right\">\n Avg. Block Time\n </h3>\n </div>\n </div>\n </div>\n );\n};\nreturn Stats(props);\n"
},
"light.libs.convertor": {
"": "const YOCTO_PER_NEAR = Big(10).pow(24);\nconst MS_PER_NS = Big(10).pow(6);\nconst T_GAS = Big(10).pow(12);\nconst convertor = () => {\n const yoctoToNear = (value) => {\n const yocto = Big(value);\n return yocto.div(YOCTO_PER_NEAR).toString();\n };\n const yoctoToTgas = (value) => {\n const near = Big(yoctoToNear(value));\n return near.mul(T_GAS).toString();\n };\n const nsToMs = (value) => {\n const ns = Big(value);\n return ns.div(MS_PER_NS).toNumber();\n };\n const nsToDateTime = (value, format) => {\n const date = new Date(nsToMs(value));\n const year = date.getFullYear().toString();\n const year2 = date.getFullYear().toString().slice(2);\n const month = (date.getMonth() + 1).toString().padStart(2, \"0\");\n const day = date.getDate().toString().padStart(2, \"0\");\n const hour = date.getHours();\n const hour12 = (hour % 12 || 12).toString().padStart(2, \"0\");\n const minute = date.getMinutes().toString().padStart(2, \"0\");\n const second = date.getSeconds().toString().padStart(2, \"0\");\n const ampm = hour >= 12 ? \"PM\" : \"AM\";\n const replacements = {\n YYYY: year,\n YY: year2,\n MM: month,\n DD: day,\n HH: hour.toString().padStart(2, \"0\"),\n hh: hour12,\n mm: minute,\n ss: second,\n AA: ampm,\n };\n let formatted = format;\n for (const [token, value] of Object.entries(replacements)) {\n formatted = formatted.replace(token, value);\n }\n return formatted;\n };\n const nsToTimeAgo = (value) => {\n const now = new Date().getTime();\n const diff = now - nsToMs(value);\n const second = 1000;\n const minute = second * 60;\n const hour = minute * 60;\n const day = hour * 24;\n const week = day * 7;\n const month = day * 30;\n const year = day * 365;\n const intervals = [\n { value: second, unit: \"second\" },\n { value: minute, unit: \"minute\" },\n { value: hour, unit: \"hour\" },\n { value: day, unit: \"day\" },\n { value: week, unit: \"week\" },\n { value: month, unit: \"month\" },\n { value: year, unit: \"year\" },\n ];\n for (const interval of intervals) {\n if (diff >= interval.value) {\n const count = Math.floor(diff / interval.value);\n return `${count} ${interval.unit}${count > 1 ? \"s\" : \"\"} ago`;\n }\n }\n return \"just now\";\n };\n return { nsToMs, nsToDateTime, nsToTimeAgo, yoctoToNear, yoctoToTgas };\n};\nreturn convertor(props);\n"
}
}
}
}
}1 automatic refund step from the network not shown.
This page reads FastNEAR's public transaction index and stores nothing. This command asks a NEAR archival node for the same transaction and needs no keys.
curl -s https://archival-rpc.testnet.fastnear.com -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tx","params":{"tx_hash":"GvBBsPuZCAyHxPaSQDDb4dod6EJeWbVYRJRMq6kRMupg","sender_account_id":"sarin.testnet","wait_until":"FINAL"}}'Vouch has its own page because testnet.nearblocks.io stopped indexing on 27 Sep 2026, so it can't show newer transactions.