Transaction

734b0c90f4f9c9521b2951faade2bb5e9052d595e3583522db03e4ce5d0e7d74
Timestamp (utc)
2025-12-27 02:55:02
Fee Paid
0.00000753 BSV
(
0.17285421 BSV
-
0.17284668 BSV
)
Fee Rate
50.01 sat/KB
Version
1
Confirmations
6,785
Size Stats
15,055 B

2 Outputs

Total Output:
0.17284668 BSV
  • cordQapplication/javascriptMÉ9(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5633],{8187:function(e,t,s){Promise.resolve().then(s.bind(s,9716))},9716:function(e,t,s){"use strict";s.d(t,{default:function(){return d}});var r=s(7437),a=s(2265),o=s(9376),n=s(8880),l=s(8559),i=s(92),c=s(3993);function d(e){var t;let{txId:s}=e,d=(0,o.useRouter)();(0,a.useMemo)(()=>(0,n.eD)(d),[d]);let[u,h]=(0,a.useState)(null),[x,p]=(0,a.useState)([]),[m,g]=(0,a.useState)(!0),[b,f]=(0,a.useState)(!1),[w,v]=(0,a.useState)(""),[j,y]=(0,a.useState)(""),[N,k]=(0,a.useState)(!1),[S,C]=(0,a.useState)(!1),[D,P]=(0,a.useState)(!1);(0,a.useEffect)(()=>{s&&"placeholder"!==s&&L(),I()},[s]);let I=async()=>{let e=localStorage.getItem("userAddress");e&&(f(!0),v(e))},L=async()=>{try{g(!0);let e=await l.w.getPost(s);if(e){h(e);let t=await l.w.getReplies(s);p(t)}}catch(e){console.error("Error loading post:",e)}finally{g(!1)}},E=async()=>{if(b&&!S){C(!0);try{(await l.w.likePost(s)).success&&(P(!0),u&&h({...u,likesCount:(u.likesCount||0)+1}))}catch(e){console.error("Error liking post:",e)}finally{C(!1)}}},B=async()=>{if(j.trim()&&!N){k(!0);try{if((await l.w.createPost("Re: ".concat((null==u?void 0:u.title)||"Reply"),j,[],(null==u?void 0:u.category)||"other","public",s)).success){y("");let e=await l.w.getReplies(s);p(e),alert("Reply published to blockchain!")}}catch(e){console.error("Error posting reply:",e)}finally{k(!1)}}};return m?(0,r.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900",children:[(0,r.jsx)(i.Z,{}),(0,r.jsxs)("div",{className:"max-w-4xl mx-auto px-4 py-20 text-center",children:[(0,r.jsx)("div",{className:"w-12 h-12 border-4 border-purple-500 border-t-transparent rounded-full animate-spin mx-auto mb-4"}),(0,r.jsx)("p",{className:"text-purple-200",children:"Loading post..."})]})]}):u?(0,r.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900",children:[(0,r.jsx)(i.Z,{}),(0,r.jsxs)("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[(0,r.jsxs)(c.Z,{href:"/blog",className:"inline-flex items-center gap-2 text-purple-300 hover:text-white mb-8 transition-colors",children:[(0,r.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 19l-7-7 7-7"})}),"Back to Blog"]}),(0,r.jsxs)("article",{className:"bg-white/10 backdrop-blur-md rounded-2xl p-8 border border-white/20 mb-8",children:[(0,r.jsxs)("div",{className:"flex flex-wrap gap-2 mb-4",children:[(0,r.jsx)("span",{className:"px-3 py-1 bg-purple-500/20 text-purple-300 text-sm rounded-lg",children:(e=>{let t=l.d.find(t=>t.value===e);return(null==t?void 0:t.label)||e})(u.category)}),u.tags.map(e=>(0,r.jsxs)("span",{className:"px-3 py-1 bg-white/10 text-purple-200 text-sm rounded-lg",children:["#",e]},e))]}),(0,r.jsx)("h1",{className:"text-4xl font-bold text-white mb-6",children:u.title}),(0,r.jsxs)("div",{className:"flex items-center gap-4 mb-8 pb-8 border-b border-white/20",children:[(0,r.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-purple-500 to-blue-600 rounded-full flex items-center justify-center text-white font-bold text-lg",children:(null===(t=u.creatorName)||void 0===t?void 0:t.charAt(0))||u.creator.charAt(0)}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-semibold text-white",children:u.creatorName||"".concat(u.creator.substring(0,12),"...")}),(0,r.jsx)("p",{className:"text-purple-300 text-sm",children:new Date(u.timestamp).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})]}),(0,r.jsx)("div",{className:"prose prose-invert max-w-none",children:u.content.split("\n\n").map((e,t)=>{if(e.startsWith("# "))return(0,r.jsx)("h1",{className:"text-3xl font-bold text-white mt-6 mb-4",children:e.substring(2)},t);if(e.startsWith("## "))return(0,r.jsx)("h2",{className:"text-2xl font-bold text-white mt-5 mb-3",children:e.substring(3)},t);if(e.startsWith("### "))return(0,r.jsx)("h3",{className:"text-xl font-bold text-white mt-4 mb-2",children:e.substring(4)},t);if(e.startsWith("```")){let s=e.split("\n").slice(1,-1).join("\n");return(0,r.jsx)("pre",{className:"bg-black/30 rounded-xl p-4 overflow-x-auto my-4",children:(0,r.jsx)("code",{className:"text-purple-200 font-mono text-sm",children:s})},t)}return(0,r.jsx)("p",{className:"text-purple-100 leading-relaxed mb-4",children:e},t)})}),(0,r.jsxs)("div",{className:"mt-8 pt-8 border-t border-white/20 flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsxs)("button",{onClick:E,disabled:!b||S||D,className:"flex items-center gap-2 px-4 py-2 rounded-xl transition-all ".concat(D?"bg-red-500/20 text-red-400":"bg-white/10 text-purple-200 hover:bg-white/20"," disabled:opacity-50"),children:[(0,r.jsx)("svg",{className:"w-5 h-5",fill:D?"currentColor":"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"})}),(0,r.jsx)("span",{children:u.likesCount||0})]}),(0,r.jsxs)("span",{className:"flex items-center gap-2 px-4 py-2 bg-white/10 text-purple-200 rounded-xl",children:[(0,r.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),(0,r.jsx)("span",{children:x.length})]})]}),(0,r.jsxs)("a",{href:"https://whatsonchain.com/tx/".concat(u.txId),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-purple-400 hover:text-purple-300 text-sm",children:[(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})}),"View on Blockchain"]})]})]}),b&&(0,r.jsxs)("div",{className:"bg-white/10 backdrop-blur-md rounded-2xl p-6 border border-white/20 mb-8",children:[(0,r.jsx)("h3",{className:"text-xl font-bold text-white mb-4",children:"Write a Reply"}),(0,r.jsx)("textarea",{value:j,onChange:e=>y(e.target.value),placeholder:"Share your thoughts...",rows:4,className:"w-full px-4 py-3 bg-white/10 border border-white/20 rounded-xl text-white placeholder-purple-300 focus:outline-none focus:border-purple-400 resize-none mb-4"}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)("button",{onClick:B,disabled:N||!j.trim(),className:"px-6 py-2 bg-gradient-to-r from-purple-500 to-blue-600 text-white font-semibold rounded-xl hover:shadow-lg transition-all disabled:opacity-50",children:N?"Publishing...":"Publish Reply"})})]}),x.length>0&&(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("h3",{className:"text-2xl font-bold text-white mb-6",children:["Replies (",x.length,")"]}),x.map(e=>{var t;return(0,r.jsxs)("div",{className:"bg-white/5 backdrop-blur-md rounded-xl p-6 border border-white/10",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,r.jsx)("div",{className:"w-10 h-10 bg-gradient-to-br from-purple-500 to-blue-600 rounded-full flex items-center justify-center text-white font-bold",children:(null===(t=e.creatorName)||void 0===t?void 0:t.charAt(0))||e.creator.charAt(0)}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-semibold text-white",children:e.creatorName||"".concat(e.creator.substring(0,12),"...")}),(0,r.jsx)("p",{className:"text-purple-300 text-sm",children:new Date(e.timestamp).toLocaleDateString()})]})]}),(0,r.jsx)("p",{className:"text-purple-100",children:e.content})]},e.txId)})]})]})]}):(0,r.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900",children:[(0,r.jsx)(i.Z,{}),(0,r.jsx)("div",{className:"max-w-2xl mx-auto px-4 py-20 text-center",children:(0,r.jsxs)("div",{className:"bg-white/10 backdrop-blur-md rounded-2xl p-12 border border-white/20",children:[(0,r.jsx)("div",{className:"text-6xl mb-6",children:(0,r.jsx)("svg",{className:"w-20 h-20 mx-auto text-purple-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),(0,r.jsx)("h2",{className:"text-3xl font-bold text-white mb-4",children:"Post Not Found"}),(0,r.jsx)("p",{className:"text-purple-200 mb-8",children:"This post may not exist or hasn't been indexed yet."}),(0,r.jsx)(c.Z,{href:"/blog",className:"inline-flex items-center gap-2 px-6 py-3 bg-gradient-to-r from-purple-500 to-blue-600 text-white font-semibold rounded-xl hover:shadow-lg transition-all",children:"Browse All Posts"})]})})]})}},8559:function(e,t,s){"use strict";s.d(t,{d:function(){return i},w:function(){return l}});let r="bsv_blog_posts",a="bsv_blog_drafts";function o(e){return Array.from(new TextEncoder().encode(e)).map(e=>e.toString(16).padStart(2,"0")).join("")}class n{async getBlogPosts(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,t=Date.now();if(this.cachedPosts.length>0&&t-this.lastFetch<this.fetchInterval)return this.cachedPosts.slice(0,e);let s=localStorage.getItem(r);if(s)try{this.cachedPosts=JSON.parse(s),this.lastFetch=t}catch(e){console.error("Error parsing blog cache:",e)}return this.cachedPosts.slice(0,e)}async getPostsByCreator(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return(await this.getBlogPosts(500)).filter(t=>t.creator.toLowerCase()===e.toLowerCase()).slice(0,t)}async getPost(e){return(await this.getBlogPosts(500)).find(t=>t.txId===e)||null}async getReplies(e){return(await this.getBlogPosts(500)).filter(t=>t.replyTo===e)}async searchPosts(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,s=await this.getBlogPosts(500),r=e.toLowerCase();return s.filter(e=>e.title.toLowerCase().includes(r)||e.content.toLowerCase().includes(r)||e.tags.some(e=>e.toLowerCase().includes(r))).slice(0,t)}async createPost(e,t,s,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"public",n=arguments.length>5?arguments[5]:void 0;try{let l=window.yours;if(!l)return{txId:"",success:!1,error:"Yours Wallet not found"};if(!await l.isConnected())return{txId:"",success:!1,error:"Wallet not connected"};let i=await l.getAddresses(),c=null==i?void 0:i.bsvAddress;if(!c)return{txId:"",success:!1,error:"Could not get wallet address"};let d={app:"BSV_VIDEO_PLATFORM",type:"blog_post",title:e.trim(),content:t.trim(),summary:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:280;return e.length<=t?e:e.substring(0,t-3)+"..."}(t.trim()),creator:c,tags:s.map(e=>e.trim()).filter(e=>e.length>0),category:r,visibility:a,timestamp:Date.now(),...n?{replyTo:n}:{}},u=await l.sendBsv([{satoshis:0,data:[o(JSON.stringify(d))]},{address:c,satoshis:1}]);if(u&&u.txid){let e={txId:u.txid,...d};return this.cachedPosts.unshift(e),this.saveCacheToStorage(),{txId:u.txid,success:!0}}return{txId:"",success:!1,error:"Transaction failed"}}catch(e){var l,i;if(console.error("Error creating blog post:",e),(null===(l=e.message)||void 0===l?void 0:l.includes("User denied"))||(null===(i=e.message)||void 0===i?void 0:i.includes("rejected")))return{txId:"",success:!1,error:"Transaction cancelled by user"};return{txId:"",success:!1,error:e.message||"Failed to create post"}}}async likePost(e){try{let t=window.yours;if(!t)return{txId:"",success:!1,error:"Yours Wallet not found"};if(!await t.isConnected())return{txId:"",success:!1,error:"Wallet not connected"};let s=await t.getAddresses(),r=null==s?void 0:s.bsvAddress,a={app:"BSV_VIDEO_PLATFORM",type:"blog_like",targetTxId:e,creator:r,timestamp:Date.now()},n=await t.sendBsv([{satoshis:0,data:[o(JSON.stringify(a))]},{address:r,satoshis:1}]);if(n&&n.txid)return{txId:n.txid,success:!0};return{txId:"",success:!1,error:"Transaction failed"}}catch(e){return{txId:"",success:!1,error:e.message||"Failed to like post"}}}saveDraft(e){let t=this.getDrafts(),s="draft_".concat(Date.now(),"_").concat(Math.random().toString(36).substring(7)),r={...e,id:s,lastSaved:Date.now()};return t.push(r),localStorage.setItem(a,JSON.stringify(t)),s}updateDraft(e,t){let s=this.getDrafts(),r=s.findIndex(t=>t.id===e);r>=0&&(s[r]={...s[r],...t,lastSaved:Date.now()},localStorage.setItem(a,JSON.stringify(s)))}getDrafts(){let e=localStorage.getItem(a);if(e)try{return JSON.parse(e)}catch(e){}return[]}deleteDraft(e){let t=this.getDrafts().filter(t=>t.id!==e);localStorage.setItem(a,JSON.stringify(t))}saveCacheToStorage(){try{localStorage.setItem(r,JSON.stringify(this.cachedPosts.slice(0,500)))}catch(e){console.error("Error saving blog cache:",e)}}addToCache(e){this.cachedPosts.unshift(e),this.saveCacheToStorage()}constructor(){this.cachedPosts=[],this.lastFetch=0,this.fetchInterval=3e4}}let l=new n,i=[{value:"technology",label:"Technology"},{value:"crypto",label:"Crypto & Blockchain"},{value:"tutorial",label:"Tutorial"},{value:"opinion",label:"Opinion"},{value:"news",label:"News & Updates"},{value:"personal",label:"Personal"},{value:"business",label:"Business"},{value:"creative",label:"Creative Writing"},{value:"other",label:"Other"}]},8880:function(e,t,s){"use strict";function r(){return"app.reactonchain.com"===window.location.hostname||window.location.pathname.includes("/content/")||/^\/[a-f0-9]{64}_\d+/.test(window.location.pathname)}function a(){if(r()){let e=window.location.hash;return e&&e.startsWith("#")&&e.slice(1)||"/"}return window.location.pathname}function o(e,t){let s=e.startsWith("/")?e:"/"+e;if(r()){console.log("\uD83E\uDDED ReactOnChain hash navigation to: #".concat(s)),window.location.hash=s,window.dispatchEvent(new CustomEvent("roc-navigate",{detail:{path:s}}));return}if(t){console.log("\uD83E\uDDED Next.js router navigation to: ".concat(s)),t.push(s);return}console.log("\uD83E\uDDED History API navigation to: ".concat(s)),window.history.pushState({},"",s),window.dispatchEvent(new PopStateEvent("popstate",{state:{}}))}function n(e){return{push:t=>{r()?o(t):e.push(t)},back:()=>{window.history.back()}}}s.d(t,{T8:function(){return o},UA:function(){return r},eD:function(){return n},rk:function(){return a}})}},function(e){e.O(0,[3448,92,2971,2117,1744],function(){return e(e.s=8187)}),_N_E=e.O()}]);hv©òfâ‚q°Ñ ½°K`‡˜‡pˆ¬
    https://whatsonchain.com/tx/734b0c90f4f9c9521b2951faade2bb5e9052d595e3583522db03e4ce5d0e7d74