Reading from NEAR testnet…
Reading from NEAR testnet…
7EgprHZ9sYCiB1nCwMQ7nxUhreQSWT1j1QAymarco5mM
igi.testnet to v1.social08.testnet
set() with 0.2467 NEAR
{
"data": {
"igi.testnet": {
"widget": {
"Calimero.DocsChain.Main": {
"": "const contract = \"docs.testnet\";\n\nconst accountId = props.accountId ?? context.accountId;\nconst componentOwnerId = props.componentOwnerId ?? \"igi.testnet\";\n\nif (!accountId) {\n return \"No account ID\";\n}\n\nconst PageContainer = styled.div`\n width: 100%;\n height: 100vh;\n`;\n\nconst FunctionButton = styled.button`\n background-color: #5765f2;\n :hover {\n background-color: #717cf0;\n }\n color: #fff;\n border-radius: 4px;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n border: none;\n width: 100%;\n`;\n\nState.init({\n bootstraping: true,\n});\n\nconst joinDocs = () => {\n Near.requestCalimeroFak(contract);\n};\n\nconst isMember = () => {\n return Near.calimeroView(contract, \"get_account\", {\n account_id: context.accountId,\n });\n};\n\nconst verifyKey = () => {\n Near.hasValidCalimeroFak(contract).then((result) => {\n console.log(\"verifying\");\n\n State.update({ bootstraping: false, loggedIn: result });\n\n if (result) {\n if (!isMember()) {\n Near.fakCalimeroCall(contract, \"join\");\n }\n }\n });\n};\n\nif (state.bootstraping) {\n verifyKey();\n}\n\nreturn (\n <PageContainer>\n <>\n {state.bootstraping ? (\n <Widget\n src={`${componentOwnerId}/widget/Calimero.Curb.Popups.LoadingPopup`}\n props={{ componentOwnerId }}\n />\n ) : (\n <>\n {isMember(context.accountId) ? (\n <>\n <Widget\n src={`${componentOwnerId}/widget/Calimero.DocsChain.MainNavigation`}\n props={{ currentNavPill: \"articles\", componentOwnerId: \"igi.testnet\" }}\n />\n <div>\n <Widget\n src={`${componentOwnerId}/widget/Calimero.DocsChain.AllArticlesList`}\n props={{ componentOwnerId }}\n />\n </div>\n </>\n ) : (\n <>\n <FunctionButton onClick={joinDocs}>Join</FunctionButton>\n </>\n )}\n </>\n )}\n </>\n </PageContainer>\n);\n"
},
"First": {
"": "return <div>Hello World</div>;\n"
},
"Calimero.DocsChain.ArticleView": {
"": "const contract = \"docs.testnet\"\n//const authorForWidget = \"igi.testnet\";\n\n// const article = Near.view(contract, \"get_article\", {\"article_id\": props.articleId});\n// console.log(\"ARTICLE\");\n// console.log(article);\n\nState.init({\n articleId: props.articleId,\n editArticle: false,\n});\n\nState.update({\n ...state,\n article: Near.calimeroView(contract, \"get_article\", {\"article_id\": props.articleId}),\n})\n\nconsole.log(state.article)\n\nconst saveArticle = () => {\n if (!state.editorInput) {\n return;\n }\n const params = {\n \"article_id\": state.articleId,\n \"body\": state.editorInput\n }\n Near.fakCalimeroCall(contract, \"post_article\", params);\n};\n\nreturn (\n <>\n <Widget\n src={`${props.componentOwnerId}/widget/Calimero.DocsChain.MainNavigation`}\n props={{ currentNavPill: \"articles\" }}\n />\n <div>\n <h1>Article: {state.articleId}</h1>\n {/* === BUTTON - EDIT ARTICLE === */}\n {(\n <button\n onClick={() => {\n State.update({\n ...state,\n editArticle: true,\n editorInput: state.article.body,\n });\n }}\n >\n Edit Article\n </button>\n )}\n {/* === BUTTON - SAVE ARTICLE === */}\n {state.editArticle && (\n <>\n <button\n type=\"button\"\n className=\"btn btn-success\"\n onClick={() => {\n saveArticle();\n }}\n >\n Save Article{\" \"}\n </button>\n\n <button\n type=\"button\"\n className=\"btn btn-danger\"\n onClick={() => {\n State.update({\n ...state,\n editArticle: false,\n editorInput: undefined,\n });\n }}\n >\n Cancel{\" \"}\n </button>\n </>\n )}\n\n {/* === BUTTON - VIEW HISTORY === */}\n <span className=\"ps-4\">\n <button\n onClick={() => {\n State.update({\n ...state,\n viewHistory: !state.viewHistory,\n });\n }}\n >\n View History\n </button>\n </span>\n {/* === EDIT ARTICLE === */}\n {state.editArticle && (\n <>\n <div className=\"d-flex gap-2\" style={{ minHeight: \"300px\" }}>\n <div className=\"w-50\">\n <Widget\n src=\"igi.testnet/widget/Calimero.DocsChain.MarkdownEditorIframe\"\n props={{\n initialText: state.article.body,\n onChange: (newBody) => State.update({\n editorInput: newBody}),\n }}\n />\n </div>\n <div className=\"w-50\">\n <Widget\n src=\"igi.testnet/widget/Calimero.DocsChain.SocialMarkdown\"\n props={{ text: state.editorInput }}\n />\n </div>\n </div>\n </>\n )}\n {/* MARKDOWN and TAGS list when user doesn't edit article */}\n {!state.editArticle && (\n <>\n <Markdown text={state.editorInput || state.article.body} />\n </>\n )}\n {/* === VIEW HISTORY === */}\n {state.viewHistory && (\n <div className=\"mt-3 ps-5\">\n Not implemented yet\n </div>\n )}\n {/* === FOOTER === */}\n <Widget\n src={`${props.componentOwnerId}/widget/Calimero.DocsChain.ArticleFooter`}\n props={{\n author: state.article.author,\n lastEditor: state.article.author, // expand contract to allow editors\n timeLastEdit: state.article.timestamp,\n version: state.article.version,\n }}\n />\n </div>\n </>\n);"
},
"Calimero.DocsChain.Authors": {
"": "const contract = \"docs.testnet\"\nconst componentOwnerId = props.componentOwnerId || \"igi.testnet\";\n\nconst allAuthors = Near.calimeroView(contract, \"get_accounts_paged\", {});\nconsole.log(\"AUTHORS\");\nconsole.log(allAuthors);\n\nreturn (\n <>\n <Widget\n src={`${componentOwnerId}/widget/Calimero.DocsChain.MainNavigation`}\n props={{ currentNavPill: \"authors\" }}\n />\n <h6>Total authors: {allAuthors.length}</h6>\n <ul>\n {allAuthors.map((data) => (\n <li>\n <a\n href={`https://near.social/#/mob.near/widget/ProfilePage?accountId=${author}`}\n target=\"_blank\"\n >\n {data[0]}\n </a>{\" \"}\n -\n <a\n href={`#/${componentOwnerId}/widget/Calimero.DocsChain.ArticlesByAuthor?author=${data[0]}`}\n >\n {data[1].articles.length}\n </a>\n </li>\n ))}\n </ul>\n </>\n);"
},
"Calimero.DocsChain.MarkdownEditorIframe": {
"": "const initialText = props.initialText ?? \"# Hello World\\n\\n\";\n\nconst code = `\n<script src=\"https://unpkg.com/react@18/umd/react.development.js\" crossorigin></script>\n<script src=\"https://unpkg.com/react-dom@18/umd/react-dom.development.js\" crossorigin></script>\n<script src=\"https://unpkg.com/react-markdown-editor-lite@1.3.4/lib/index.js\" crossorigin></script>\n<link rel=\"stylesheet\" href=\"https://unpkg.com/react-markdown-editor-lite@1.3.4/lib/index.css\" />\n\n\n<div id=\"react-root\"></div>\n\n<script>\nfunction TestReact(props) {\n const [value, setValue] = React.useState(props.initialText || \"\");\n return React.createElement(ReactMarkdownEditorLite.default, {\n value,\n view: { menu: true, md: true, html: false },\n canView: { menu: true, md: false, html: false, fullScreen: false, hideMenu: true },\n onChange: ({ text }) => {\n setValue(text);\n window.top.postMessage(text, \"*\");\n },\n renderHTML: () => {},\n className: \"full\",\n }); \n}\n\nconst domContainer = document.querySelector('#react-root');\nconst root = ReactDOM.createRoot(domContainer);\n\nwindow.addEventListener(\"message\", (event) => {\n root.render(React.createElement(TestReact, {\n initialText: event.data,\n }));\n});\n\n</script>\n`;\n\nreturn (\n <iframe\n className=\"w-100 h-100\"\n srcDoc={code}\n message={initialText}\n onMessage={props.onChange}\n />\n);\n"
},
"Calimero.DocsChain.AllArticlesList": {
"": "const contract = \"docs.testnet\"\n//const authorForWidget = \"igi.testnet\";\n\nconst getDateLastEdit = (timestamp) => {\n const date = new Date(Number(timestamp) / 1e6);\n const dateString = `${date.toLocaleDateString()} / ${date.toLocaleTimeString()}`;\n return dateString;\n};\n\nconst allArticles = Near.calimeroView(contract, \"get_article_ids_paged\", {}).map((articleId) => {\n return {\n \"id\": articleId,\n \"data\": Near.calimeroView(contract, \"get_article\", {\"article_id\": articleId})\n };\n});\nconsole.log(allArticles);\n\nreturn (\n <ol>\n {allArticles &&\n allArticles.map((article) => (\n <li key={article.id}>\n <a\n href={`#/${props.componentOwnerId}/widget/Calimero.DocsChain.ArticleView?articleId=${article.id}&blockHeight=${article.data.blockHeight}&lastEditor=${article.data.author}\n `}\n >\n {article.id}{\" \"}\n <small>\n (author: {article.data.author}\n {getDateLastEdit(article.data.timestamp)})\n </small>\n </a>\n </li>\n ))}\n </ol>\n);"
},
"Calimero.DocsChain.ArticlesByAuthor": {
"": "const contract = \"docs.testnet\"\n\nconst componentOwnerId = props.componentOwnerId || \"igi.testnet\";\n\nconst author = props.author;\n\nconst getDateLastEdit = (timestamp) => {\n const date = new Date(Number(timestamp) / 1e6);\n const dateString = `${date.toLocaleDateString()} / ${date.toLocaleTimeString()}`;\n return dateString;\n};\n\nconst allArticleIds = Near.calimeroView(contract, \"get_article_ids_paged\", {});\nconsole.log(allArticleIds);\n\nconst allArticles = allArticleIds.map((articleId) => {\n return {\n \"id\": articleId,\n \"data\": Near.calimeroView(contract, \"get_article\", {\"article_id\": articleId})\n };\n}).filter((article) => article.data.author == author);\nconsole.log(allArticles);\n\nreturn (\n <ol>\n {allArticles &&\n allArticles.map((article) => (\n <li key={article.id}>\n <a\n href={`#/${props.componentOwnerId}/widget/Calimero.DocsChain.ArticleView?articleId=${article.id}&blockHeight=${article.data.blockHeight}&lastEditor=${article.data.lastEditor}\n `}\n >\n {article.id}{\" \"}\n <small>\n (author: {article.data.author}\n {getDateLastEdit(article.data.timestamp)})\n </small>\n </a>\n </li>\n ))}\n </ol>\n);"
},
"Calimero.DocsChain.SocialMarkdown": {
"": "const renderMention =\n props.renderMention ??\n props.onMention ??\n ((accountId) => (\n <span key={accountId} className=\"d-inline-flex\" style={{ fontWeight: 500 }}>\n <Widget\n src=\"mob.near/widget/ProfileLine\"\n props={{\n accountId: accountId.toLowerCase(),\n hideAccountId: true,\n tooltip: true,\n }}\n />\n </span>\n ));\n\nconst onHashtag = props.onHashtag;\n\nconst Wrapper = styled.div`\n word-break: break-word;\n p {\n white-space: pre-line;\n }\n`;\n\nreturn (\n <Wrapper>\n <Markdown\n text={props.text}\n onMention={renderMention}\n onHashtag={onHashtag}\n />\n </Wrapper>\n);"
},
"Calimero.LiveCollab.LiveView": {
"": "const PageContainer = styled.div`\n width: 100%;\n height: 100vh;\n`;\n\nconst contract = \"docs.testnet\";\n\nState.init({\n text: \"\",\n editing: false,\n});\n\n\n// Near.asyncView(contract, \"last_version\", {}, undefined, true)\n// .then((m) => {\n// console.log(\"UNUTRA\");\n// State.update({text: m});\n// });\n\nState.update({text: Near.calimeroView(contract, \"last_version\", {}, undefined, true)})\nconsole.log(\"PERIOD\")\n\nconst updatePost = () => {\n console.log(\"FROM ALERT\");\n console.log(state.text);\n State.update({editing: false});\n Near.fakCalimeroCall(contract, \"post\", {text: state.text});\n}\n\nconsole.log(state.text)\n\nreturn (\n <PageContainer>\n {context.accountId ? (\n <>\n {context.accountId}\n <div class=\"d-flex flex-column pt-3\">\n <label for=\"textareaArticleBody\">\n Edit doc (in markdown format):\n </label>\n <label>Editing: {state.editing ? \"TRUE\" : \"FALSE\"}</label>\n <label for=\"textareaArticleBody\" class=\"small text-danger\">\n {state.errorBody}\n </label>\n <div className=\"d-flex gap-2\" style={{ minHeight: \"300px\" }}>\n <div className=\"w-50\">\n <Widget\n src=\"igi.testnet/widget/Calimero.DocsChain.MarkdownEditorIframe\"\n props={{\n initialText: state.text,\n onChange: (text) => {\n //console.log(text);\n if (!state.editing) {\n State.update({editing: true, text: text});\n } else {\n \n }\n clearTimeout(state.t);\n State.update({t: setTimeout(updatePost, 5000), text: text});\n console.log(state.t)\n },\n }}\n />\n </div>\n <div className=\"w-50\">\n <Widget\n src=\"igi.testnet/widget/Calimero.DocsChain.SocialMarkdown\"\n props={{ text: state.articleBody }}\n />\n </div>\n </div>\n </div>\n </>\n ) : (\n <h1>NOT LOGGED IN</h1>\n )}\n </PageContainer>\n);\n"
},
"Calimero.DocsChain.CreateArticle": {
"": "const contract = \"docs.testnet\"\n\nconst componentOwnerId = props.componentOwnerId || \"igi.testnet\";\n\nconst initialBody = \"# Hello world\"\n\nconst initialCreateArticleState = {\n articleId: \"\",\n articleBody: initialBody,\n};\n \nState.init(initialCreateArticleState);\n\nconst saveArticle = () => {\n if (!state.articleBody) {\n return;\n }\n const params = {\n \"article_id\": state.articleId,\n \"body\": state.articleBody\n }\n Near.fakCalimeroCall(contract, \"post_article\", params);\n };\n\nreturn (\n <>\n <Widget\n src={`${componentOwnerId}/widget/Calimero.DocsChain.MainNavigation`}\n props={{ currentNavPill: \"create\" }}\n />\n <div>\n <h1 className=\"mb-3\"> Create Article</h1>\n <div>\n <div>\n <button\n type=\"submit\"\n className=\"btn btn-success\"\n onClick={saveArticle}\n >\n Save Article\n </button>\n </div>\n <div class=\"d-flex flex-column pt-3\">\n <label for=\"inputArticleId\">\n Input article id (case-sensitive, without spaces):\n </label>\n <label for=\"inputArticleId\" class=\"small text-danger\">\n {state.errorId}\n </label>\n <input\n className=\"form-control mt-2\"\n id=\"inputArticleId\"\n value={state.articleId}\n placeholder=\"Input article id\"\n onChange={(e) => {\n State.update({\n ...state,\n articleId: e.target.value.replace(/\\s+/g, \"\"),\n });\n }}\n />\n </div>\n <div class=\"d-flex flex-column pt-3\">\n <label for=\"textareaArticleBody\">\n Input article body (in markdown format):\n </label>\n <label for=\"textareaArticleBody\" class=\"small text-danger\">\n {state.errorBody}\n </label>\n <div className=\"d-flex gap-2\" style={{ minHeight: \"300px\" }}>\n <div className=\"w-50\">\n <Widget\n src=\"igi.testnet/widget/Calimero.DocsChain.MarkdownEditorIframe\"\n props={{\n initialText: initialBody,\n onChange: (articleBody) => State.update({ articleBody }),\n }}\n />\n </div>\n <div className=\"w-50\">\n <Widget\n src=\"igi.testnet/widget/Calimero.DocsChain.SocialMarkdown\"\n props={{ text: state.articleBody }}\n />\n </div>\n </div>\n </div>\n </div>\n </div>\n </>\n );"
},
"Calimero.DocsChain.MainNavigation": {
"": "const currentPill = props.currentNavPill ?? \"\";\n\nconst componentOwnerId = props.componentOwnerId || \"igi.testnet\";\n\nconst pills = [\n {\n id: \"articles\",\n title: \"Articles\",\n widgetName: \"Main\",\n },\n {\n id: \"authors\",\n title: \"Authors\",\n widgetName: \"Authors\",\n },\n {\n id: \"create\",\n title: \"Create Article\",\n widgetName: \"CreateArticle\",\n },\n];\n\nreturn (\n <div>\n <ul className=\"nav nav-pills nav-fill mb-4\">\n {pills.map(({ id, title, widgetName }, i) => (\n <li className=\"nav-item\">\n <a\n href={`#/${componentOwnerId}/widget/Calimero.DocsChain.${widgetName}`}\n class={`nav-link ${\n id === currentPill ? \"active\" : \"\"\n } text-decoration-none`}\n >\n {title}\n </a>\n </li>\n ))}\n </ul>\n </div>\n);"
},
"Calimero.DocsChain.ArticleFooter": {
"": "const { author, timeCreated, lastEditor, timeLastEdit, version } = props;\nconst getDate = (timestamp) => {\n const date = new Date(Number(timestamp) / 1e6);\n return date.toDateString();\n};\n\nreturn (\n <div className=\"alert alert-secondary bg-white\">\n <div>\n Created by{\" \"}\n <a\n href={`https://near.social/#/mob.near/widget/ProfilePage?accountId=${author}`}\n target=\"_blank\"\n style={{ textDecoration: \"underline\" }}\n >\n {author}\n </a>\n <br />\n {timeCreated && (\n <>\n Posted on {getDate(timeCreated)}\n <br />\n </>\n )}\n <br />\n Last edit by{\" \"}\n <a\n href={`https://near.social/#/mob.near/widget/ProfilePage?accountId=${lastEditor}`}\n style={{ textDecoration: \"underline\" }}\n >\n {lastEditor}\n </a>\n <br />\n Edited on {getDate(timeLastEdit)}\n <br />\n <br />\n Edit versions: {version}\n </div>\n </div>\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":"7EgprHZ9sYCiB1nCwMQ7nxUhreQSWT1j1QAymarco5mM","sender_account_id":"igi.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.