Reading from NEAR testnet…
Reading from NEAR testnet…
5Fb6yWXJSHcHMNsqYWRJPXHChDmsX1pakBGkZBNFysuc
test-relayer-1.testnet to 223cf590-0650-45d7-9c1d-6021e63e80ea.test-relayer-1.testnet
set() with 0.0092 NEAR
{
"data": {
"223cf590-0650-45d7-9c1d-6021e63e80ea.test-relayer-1.testnet": {
"widget": {
"chat": {
"": "const messages = props.messages || [\n {\n role: \"user\",\n content: \"how many tokens does root.near own?\",\n id: \"u9yqHUh\",\n },\n {\n id: \"xMnDF5d\",\n createdAt: \"2023-07-18T23:05:01.387Z\",\n content: \"\",\n role: \"assistant\",\n function_call: {\n name: \"submit-query\",\n arguments:\n '{\\n \"query\": \"{ mb_views_nft_tokens_aggregate(where: { owner: { _eq: \\\\\"root.near\\\\\" } }) { aggregate { count } } }\",\\n \"network\": \"testnet\"\\n}',\n },\n },\n {\n id: \"UKi0v80\",\n name: \"submit-query\",\n role: \"function\",\n content:\n '{\"result\":{\"data\":{\"mb_views_nft_tokens_aggregate\":{\"aggregate\":{\"count\":1}}}}}',\n },\n {\n id: \"wWLbtlI\",\n createdAt: \"2023-07-18T23:05:04.150Z\",\n content: \"The account `root.near` owns 1 token.\",\n role: \"assistant\",\n },\n {\n role: \"user\",\n content: \"which token is that?\",\n id: \"e4cEnUo\",\n },\n {\n id: \"BcLWcmD\",\n createdAt: \"2023-07-18T23:05:15.749Z\",\n content: \"\",\n role: \"assistant\",\n function_call: {\n name: \"submit-query\",\n arguments:\n '{\\n \"query\": \"{ mb_views_nft_tokens(where: { owner: { _eq: \\\\\"root.near\\\\\" } }) { nft_contract_id token_id } }\",\\n \"network\": \"testnet\"\\n}',\n },\n },\n {\n id: \"BSauL5s\",\n name: \"submit-query\",\n role: \"function\",\n content:\n '{\"result\":{\"data\":{\"mb_views_nft_tokens\":[{\"nft_contract_id\":\"dev-1674200168429-56270971460243\",\"token_id\":\"1861\"}]}}}',\n },\n {\n id: \"SmsXPhW\",\n createdAt: \"2023-07-18T23:05:20.332Z\",\n content:\n \"The token owned by `root.near` is with the `nft_contract_id` as `dev-1674200168429-56270971460243` and the `token_id` as `1861`.\",\n role: \"assistant\",\n },\n {\n role: \"user\",\n content: \"what about on mainnet?\",\n id: \"VdkrUaF\",\n },\n {\n id: \"IJHeCoE\",\n createdAt: \"2023-07-18T23:05:34.637Z\",\n content: \"\",\n role: \"assistant\",\n function_call: {\n name: \"submit-query\",\n arguments:\n '{\\n \"query\": \"{ mb_views_nft_tokens_aggregate(where: { owner: { _eq: \\\\\"root.near\\\\\" } }) { aggregate { count } } }\",\\n \"network\": \"mainnet\"\\n}',\n },\n },\n {\n id: \"OfPY2XC\",\n name: \"submit-query\",\n role: \"function\",\n content:\n '{\"result\":{\"data\":{\"mb_views_nft_tokens_aggregate\":{\"aggregate\":{\"count\":171}}}}}',\n },\n {\n id: \"6UzvaNF\",\n createdAt: \"2023-07-18T23:05:37.942Z\",\n content: \"On the mainnet, the account `root.near` owns 171 tokens.\",\n role: \"assistant\",\n },\n];\nconst onNewMessage = props.onNewMessage;\n\nState.init({\n currentMessage: \"\",\n});\n\nconst clearInput = () => {\n State.update({\n currentMessage: \"\",\n });\n};\n\nconst roleToColorMap = {\n system: \"red\",\n user: \"white\",\n function: \"blue\",\n assistant: \"green\",\n};\n\nconst getRenderedMessage = (m) => {\n const isUserMessage = m.role === \"user\";\n\n const isSystemMessage = m.role === \"system\";\n\n const isAssistantFunctionMessage =\n m.role === \"assistant\" && m.content === \"\" && m.function_call !== undefined;\n\n const isAssistant =\n m.role === \"assistant\" && m.content !== \"\" && m.function_call === undefined;\n\n const isFunction = m.role === \"function\";\n\n if (isUserMessage) {\n return (\n <>\n <div className={`font-bold text-black`}>user</div>\n {m.content}\n </>\n );\n } else if (isSystemMessage) {\n return m.content;\n } else if (isAssistant) {\n return (\n <>\n <div className={`font-bold text-black`}>assistant</div>\n <div className={`text-black`}>\n <Markdown\n text={m.content}\n syntaxHighlighterProps={{\n wrapLines: true,\n showLineNumbers: true,\n }}\n />\n </div>\n </>\n );\n } else if (isAssistantFunctionMessage) {\n return (\n <>\n <div className={`font-bold text-black`}>plugin call</div>\n <div className={`text-black`}>\n {JSON.stringify(m?.function_call?.name)}\n </div>\n </>\n );\n } else if (isFunction) {\n return (\n <div className=\"\">\n <div className={`font-bold text-black`}>function</div>\n <div className={`text-black`}>{m.content}</div>\n {m.name === \"generate-transaction\" && (\n <button\n style={{\n marginTop: \"12px\",\n }}\n onClick={() => {\n Near.call({ ...JSON.parse(m.content) });\n }}\n >\n Submit Transaction\n </button>\n )}\n </div>\n );\n }\n};\n\nreturn (\n <div className=\"flex flex-col rounded-lg h-screen border w-screen\">\n <div className=\"m-2 overflow-y-auto flex-grow\">\n {messages.map((m) => (\n <div\n key={m.id}\n className={`p-3 mb-1 rounded-lg ${\n m.role === \"user\" ? \"ml-auto border\" : \"mr-auto border\"\n }`}\n >\n {getRenderedMessage(m)}\n </div>\n ))}\n </div>\n\n <div className=\"p-2\">\n <div className=\"flex gap-2\">\n <input\n className=\"flex-grow rounded-lg p-2 border border-gray-300 text-black\"\n placeholder=\"Say something...\"\n type=\"text\"\n value={state.currentMessage}\n />\n <button\n className=\"bg-blue-500 text-white rounded-lg px-4 py-2\"\n onClick={() => {\n if (\n state.currentMessage === \"\" ||\n state.currentMessage === undefined\n )\n return;\n onNewMessage({ role: \"user\", content: state.currentMessage });\n clearInput();\n }}\n >\n Send\n </button>\n </div>\n </div>\n </div>\n);\n"
}
}
}
}
}223cf590-0650-45d7-9c1d-6021e63e80ea.test-relayer-1.testnet to v1.social08.testnet
set() with 0.0092 NEAR
{
"data": {
"223cf590-0650-45d7-9c1d-6021e63e80ea.test-relayer-1.testnet": {
"widget": {
"chat": {
"": "const messages = props.messages || [\n {\n role: \"user\",\n content: \"how many tokens does root.near own?\",\n id: \"u9yqHUh\",\n },\n {\n id: \"xMnDF5d\",\n createdAt: \"2023-07-18T23:05:01.387Z\",\n content: \"\",\n role: \"assistant\",\n function_call: {\n name: \"submit-query\",\n arguments:\n '{\\n \"query\": \"{ mb_views_nft_tokens_aggregate(where: { owner: { _eq: \\\\\"root.near\\\\\" } }) { aggregate { count } } }\",\\n \"network\": \"testnet\"\\n}',\n },\n },\n {\n id: \"UKi0v80\",\n name: \"submit-query\",\n role: \"function\",\n content:\n '{\"result\":{\"data\":{\"mb_views_nft_tokens_aggregate\":{\"aggregate\":{\"count\":1}}}}}',\n },\n {\n id: \"wWLbtlI\",\n createdAt: \"2023-07-18T23:05:04.150Z\",\n content: \"The account `root.near` owns 1 token.\",\n role: \"assistant\",\n },\n {\n role: \"user\",\n content: \"which token is that?\",\n id: \"e4cEnUo\",\n },\n {\n id: \"BcLWcmD\",\n createdAt: \"2023-07-18T23:05:15.749Z\",\n content: \"\",\n role: \"assistant\",\n function_call: {\n name: \"submit-query\",\n arguments:\n '{\\n \"query\": \"{ mb_views_nft_tokens(where: { owner: { _eq: \\\\\"root.near\\\\\" } }) { nft_contract_id token_id } }\",\\n \"network\": \"testnet\"\\n}',\n },\n },\n {\n id: \"BSauL5s\",\n name: \"submit-query\",\n role: \"function\",\n content:\n '{\"result\":{\"data\":{\"mb_views_nft_tokens\":[{\"nft_contract_id\":\"dev-1674200168429-56270971460243\",\"token_id\":\"1861\"}]}}}',\n },\n {\n id: \"SmsXPhW\",\n createdAt: \"2023-07-18T23:05:20.332Z\",\n content:\n \"The token owned by `root.near` is with the `nft_contract_id` as `dev-1674200168429-56270971460243` and the `token_id` as `1861`.\",\n role: \"assistant\",\n },\n {\n role: \"user\",\n content: \"what about on mainnet?\",\n id: \"VdkrUaF\",\n },\n {\n id: \"IJHeCoE\",\n createdAt: \"2023-07-18T23:05:34.637Z\",\n content: \"\",\n role: \"assistant\",\n function_call: {\n name: \"submit-query\",\n arguments:\n '{\\n \"query\": \"{ mb_views_nft_tokens_aggregate(where: { owner: { _eq: \\\\\"root.near\\\\\" } }) { aggregate { count } } }\",\\n \"network\": \"mainnet\"\\n}',\n },\n },\n {\n id: \"OfPY2XC\",\n name: \"submit-query\",\n role: \"function\",\n content:\n '{\"result\":{\"data\":{\"mb_views_nft_tokens_aggregate\":{\"aggregate\":{\"count\":171}}}}}',\n },\n {\n id: \"6UzvaNF\",\n createdAt: \"2023-07-18T23:05:37.942Z\",\n content: \"On the mainnet, the account `root.near` owns 171 tokens.\",\n role: \"assistant\",\n },\n];\nconst onNewMessage = props.onNewMessage;\n\nState.init({\n currentMessage: \"\",\n});\n\nconst clearInput = () => {\n State.update({\n currentMessage: \"\",\n });\n};\n\nconst roleToColorMap = {\n system: \"red\",\n user: \"white\",\n function: \"blue\",\n assistant: \"green\",\n};\n\nconst getRenderedMessage = (m) => {\n const isUserMessage = m.role === \"user\";\n\n const isSystemMessage = m.role === \"system\";\n\n const isAssistantFunctionMessage =\n m.role === \"assistant\" && m.content === \"\" && m.function_call !== undefined;\n\n const isAssistant =\n m.role === \"assistant\" && m.content !== \"\" && m.function_call === undefined;\n\n const isFunction = m.role === \"function\";\n\n if (isUserMessage) {\n return (\n <>\n <div className={`font-bold text-black`}>user</div>\n {m.content}\n </>\n );\n } else if (isSystemMessage) {\n return m.content;\n } else if (isAssistant) {\n return (\n <>\n <div className={`font-bold text-black`}>assistant</div>\n <div className={`text-black`}>\n <Markdown\n text={m.content}\n syntaxHighlighterProps={{\n wrapLines: true,\n showLineNumbers: true,\n }}\n />\n </div>\n </>\n );\n } else if (isAssistantFunctionMessage) {\n return (\n <>\n <div className={`font-bold text-black`}>plugin call</div>\n <div className={`text-black`}>\n {JSON.stringify(m?.function_call?.name)}\n </div>\n </>\n );\n } else if (isFunction) {\n return (\n <div className=\"\">\n <div className={`font-bold text-black`}>function</div>\n <div className={`text-black`}>{m.content}</div>\n {m.name === \"generate-transaction\" && (\n <button\n style={{\n marginTop: \"12px\",\n }}\n onClick={() => {\n Near.call({ ...JSON.parse(m.content) });\n }}\n >\n Submit Transaction\n </button>\n )}\n </div>\n );\n }\n};\n\nreturn (\n <div className=\"flex flex-col rounded-lg h-screen border w-screen\">\n <div className=\"m-2 overflow-y-auto flex-grow\">\n {messages.map((m) => (\n <div\n key={m.id}\n className={`p-3 mb-1 rounded-lg ${\n m.role === \"user\" ? \"ml-auto border\" : \"mr-auto border\"\n }`}\n >\n {getRenderedMessage(m)}\n </div>\n ))}\n </div>\n\n <div className=\"p-2\">\n <div className=\"flex gap-2\">\n <input\n className=\"flex-grow rounded-lg p-2 border border-gray-300 text-black\"\n placeholder=\"Say something...\"\n type=\"text\"\n value={state.currentMessage}\n />\n <button\n className=\"bg-blue-500 text-white rounded-lg px-4 py-2\"\n onClick={() => {\n if (\n state.currentMessage === \"\" ||\n state.currentMessage === undefined\n )\n return;\n onNewMessage({ role: \"user\", content: state.currentMessage });\n clearInput();\n }}\n >\n Send\n </button>\n </div>\n </div>\n </div>\n);\n"
}
}
}
}
}2 automatic refund steps 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":"5Fb6yWXJSHcHMNsqYWRJPXHChDmsX1pakBGkZBNFysuc","sender_account_id":"test-relayer-1.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.