Reading from NEAR testnet…
Reading from NEAR testnet…
AVmsxbwvvy6mHJ3Ue4UGhbugmhRVb4VQqtsUFwCZeQCZ
web4_profile.testnet to v1.social08.testnet
set() with 1 yoctoNEAR
{
"data": {
"web4_profile.testnet": {
"widget": {
"components.profiles.ProfileCreator": {
"": "/* INCLUDE: \"common.jsx\" */\nconst contractAccountId =\n props.contractAccountId ||\n (context.widgetSrc ?? \"web4_profile.near\").split(\"/\", 1)[0];\nconst widgetAccountId =\n props.widgetAccountId ||\n (context.widgetSrc ?? \"web4_profile.near\").split(\"/\", 1)[0];\n\nfunction widget(widgetName, widgetProps, key) {\n widgetProps = {\n ...widgetProps,\n contractAccountId: props.contractAccountId,\n widgetAccountId: props.widgetAccountId,\n referral: props.referral,\n };\n return (\n <Widget\n src={`${widgetAccountId}/widget/${widgetName}`}\n props={widgetProps}\n key={key}\n />\n );\n}\n\nfunction href(widgetName, linkProps) {\n linkProps = { ...linkProps };\n if (props.contractAccountId) {\n linkProps.contractAccountId = props.contractAccountId;\n }\n if (props.widgetAccountId) {\n linkProps.widgetAccountId = props.widgetAccountId;\n }\n if (props.referral) {\n linkProps.referral = props.referral;\n }\n const linkPropsQuery = Object.entries(linkProps)\n .map(([key, value]) => `${key}=${value}`)\n .join(\"&\");\n return `#/${widgetAccountId}/widget/pages.${widgetName}${\n linkPropsQuery ? \"?\" : \"\"\n }${linkPropsQuery}`;\n}\n/* END_INCLUDE: \"common.jsx\" */\n\nState.init({\n title: props.title ?? \"\",\n description: props.description ?? \"\",\n twitter: props.twitter ?? \"\",\n telegram: props.telegram ?? \"\",\n github: props.github ?? \"\",\n medium: props.medium ?? \"\",\n error: \"\",\n});\n\n// This must be outside onClick, because Near.view returns null at first, and when the view call finished, it returns true/false.\n// If checking this inside onClick, it will give `null` and we cannot tell the result is true or false.\nconst grantNotify = Near.view(\"social.near\", \"is_write_permission_granted\", {\n predecessor_id: contractAccountId,\n key: context.accountId + \"/index/notify\",\n});\nif (grantNotify === null) {\n return;\n}\n\nconst getAccountAccessKeys = (account) => {\n return asyncFetch(props.rpcUrl, {\n method: \"POST\",\n headers: {\n [\"Content-Type\"]: \"application/json\",\n [\"Accept\"]: \"application/json\",\n },\n body: JSON.stringify({\n jsonrpc: \"2.0\",\n id: \"dontcare\",\n method: \"query\",\n params: {\n request_type: \"view_access_key_list\",\n finality: \"final\",\n account_id: account,\n },\n }),\n }).then((response) => {\n if (!response.body.result) {\n return [];\n }\n\n return response.body.result.keys;\n });\n};\n\nconst keys = useCache(\n () => getAccountAccessKeys(context.accountId),\n \"getAccountAccessKeys\",\n { subscribe: true }\n);\n\nconst onCreateClick = () => {\n State.update({ error: \"\" });\n\n if (!state.title) {\n return State.update({ error: `Title can't be empty` });\n }\n\n if (!state.description) {\n return State.update({ error: `Description can't be empty` });\n }\n\n const fullAccessKey = keys.find(\n (key) => key.access_key.permission === \"FullAccess\"\n );\n\n if (!fullAccessKey) {\n return State.update({\n error: `Couldn't find FullAccessKey pair within your account`,\n });\n }\n\n const data = {\n title: state.title,\n description: state.description,\n twitter: state.twitter,\n telegram: state.telegram,\n github: state.github,\n medium: state.medium,\n };\n\n Near.call(\n props.factoryContractId,\n \"create_web4_little_link_page\",\n {\n args: { data: data },\n pub_key: fullAccessKey.public_key,\n },\n Big(10).pow(12).mul(300), // 300TGas\n Big(10).pow(24).mul(2) // 2N\n );\n};\n\nreturn (\n <div className=\"card\">\n <div className=\"card-header\">Creating your own Little Link page</div>\n <div class=\"card-body\">\n <div className=\"row\">\n <div className=\"col-lg-6 mb-2\">\n Title\n <input\n type=\"text\"\n value={state.title}\n onChange={(event) => {\n State.update({ title: event.target.value });\n }}\n />\n </div>\n <div className=\"col-lg-12 mb-2\">\n Description\n <textarea\n value={state.description}\n type=\"text\"\n rows={2}\n className=\"form-control\"\n onChange={(event) => {\n State.update({ description: event.target.value });\n }}\n />\n </div>\n <div className=\"col-lg-3 mb-2\">\n GitHub\n <input\n type=\"text\"\n value={state.github}\n placeholder=\"account\"\n onChange={(event) => {\n State.update({ github: event.target.value });\n }}\n />\n </div>\n <div className=\"col-lg-3 mb-2\">\n Twitter\n <input\n type=\"text\"\n value={state.twitter}\n placeholder=\"account\"\n onChange={(event) => {\n State.update({ twitter: event.target.value });\n }}\n />\n </div>\n <div className=\"col-lg-3 mb-2\">\n Telegram\n <input\n type=\"text\"\n placeholder=\"account\"\n value={state.telegram}\n onChange={(event) => {\n State.update({ telegram: event.target.value });\n }}\n />\n </div>\n <div className=\"col-lg-3 mb-2\">\n Medium\n <input\n type=\"text\"\n placeholder=\"@account\"\n value={state.medium}\n onChange={(event) => {\n State.update({ medium: event.target.value });\n }}\n />\n </div>\n </div>\n <a\n className=\"btn btn-outline-primary mb-2 mt-2 px-8 py-1\"\n onClick={onCreateClick}\n >\n Create\n </a>\n </div>\n {state.error && (\n <div class=\"card-footer\">\n <p style={{ color: \"red\" }}>{state.error}</p>\n </div>\n )}\n </div>\n);\n"
},
"pages.Home": {
"": "/* INCLUDE: \"common.jsx\" */\nconst contractAccountId =\n props.contractAccountId ||\n (context.widgetSrc ?? \"web4_profile.near\").split(\"/\", 1)[0];\nconst widgetAccountId =\n props.widgetAccountId ||\n (context.widgetSrc ?? \"web4_profile.near\").split(\"/\", 1)[0];\n\nfunction widget(widgetName, widgetProps, key) {\n widgetProps = {\n ...widgetProps,\n contractAccountId: props.contractAccountId,\n widgetAccountId: props.widgetAccountId,\n referral: props.referral,\n };\n return (\n <Widget\n src={`${widgetAccountId}/widget/${widgetName}`}\n props={widgetProps}\n key={key}\n />\n );\n}\n\nfunction href(widgetName, linkProps) {\n linkProps = { ...linkProps };\n if (props.contractAccountId) {\n linkProps.contractAccountId = props.contractAccountId;\n }\n if (props.widgetAccountId) {\n linkProps.widgetAccountId = props.widgetAccountId;\n }\n if (props.referral) {\n linkProps.referral = props.referral;\n }\n const linkPropsQuery = Object.entries(linkProps)\n .map(([key, value]) => `${key}=${value}`)\n .join(\"&\");\n return `#/${widgetAccountId}/widget/pages.${widgetName}${\n linkPropsQuery ? \"?\" : \"\"\n }${linkPropsQuery}`;\n}\n/* END_INCLUDE: \"common.jsx\" */\n\nif (!context.accountId) {\n return <div>Please log in to be able to create Little Link profile</div>;\n}\n\nconst rpcUrl = \"https://rpc.testnet.near.org\";\nconst factoryContractId = \"dev-1680623123570-11842026413316\";\n// const factoryContractId = \"web4_profile.testnet\";\n\n// const rpcUrl = \"https://rpc.mainnet.near.org\";\n// const factoryContractId = \"web4_profile.nearukraineguild.near\";\n\nconst profileContractId =\n Near.view(factoryContractId, \"get_registered_contract_by_creator\", {\n creator_id: context.accountId,\n }) || \"\";\n\nif (profileContractId === null || profileContractId === undefined) {\n return <div>Fetching data ...</div>;\n} else if (profileContractId === \"\") {\n return widget(\"components.profiles.ProfileCreator\", {\n rpcUrl: rpcUrl,\n factoryContractId: factoryContractId,\n });\n} else {\n const fields = Near.view(profileContractId, \"get_data\");\n\n return widget(\"components.profiles.ProfileEditor\", {\n profileContractId: profileContractId,\n ...(fields || {}),\n });\n}\n",
"metadata": {
"description": "Deploy & manage your own Web4 profile in a few clicks",
"image": {
"ipfs_cid": "bafkreig5gs2e26lpyj544xxxzexf5auq275xkfaymz4vjghpxvnpc6upem"
},
"name": "Web4 Profile Generator"
}
}
}
}
}
}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":"AVmsxbwvvy6mHJ3Ue4UGhbugmhRVb4VQqtsUFwCZeQCZ","sender_account_id":"web4_profile.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.