Reading from NEAR testnet…
Reading from NEAR testnet…
DFdYESf4hPJewYbk7cyunpMCVX419y9jmo9d6tDoNmGL
debeligad.testnet to v1.social08.testnet
set() with 1 yoctoNEAR
{
"data": {
"debeligad.testnet": {
"widget": {
"Calimero.Curb2.NewChatContainer": {
"": "const selectedChannel = props.selectedChannel;\nconst encryptionUrl =\n props.encryptionUrl ||\n \"https://cali-encryption.euw3.staging.gcp.calimero.network/key\";\n\n// TODO move to module\n// HELPER FUNCTIONS\nfunction parseHexString(hexString) {\n const result = [];\n while (hexString.length >= 2) {\n result.push(parseInt(hexString.substring(0, 2), 16));\n hexString = hexString.substring(2, hexString.length);\n }\n return result;\n}\n\nfunction toHexString(byteArray) {\n const result = \"\";\n for (let byte of byteArray) {\n result += (\"0\" + (byte & 0xff).toString(16)).slice(-2);\n }\n return result;\n}\n\nfunction getMessageFetchParams() {\n if (props.conversation.to) {\n return { accounts: [props.conversation.to, context.accountId] };\n } else if (props.conversation.group.name) {\n return props.conversation;\n } else {\n return null;\n }\n}\n\nfunction encrypt(text, key) {\n const nonce = Crypto.randomBytes(16);\n const cipher = Crypto.createCipheriv(\n \"aes-256-cbc\",\n parseHexString(key),\n nonce\n );\n let encrypted = cipher.update(text, \"utf8\", \"base64\");\n encrypted += cipher.final(\"base64\");\n return { text: encrypted, nonce: toHexString(nonce) };\n}\n\nfunction decrypt(text, key, nonce) {\n if (!key) {\n return null;\n }\n const byteNonce = [];\n let hexString = nonce;\n while (hexString.length >= 2) {\n byteNonce.push(parseInt(hexString.substring(0, 2), 16));\n hexString = hexString.substring(2, hexString.length);\n }\n\n try {\n const decipher = Crypto.createDecipheriv(\n \"aes-256-cbc\",\n parseHexString(key),\n byteNonce\n );\n let decrypted = decipher.update(text, \"base64\", \"utf8\");\n decrypted += decipher.final(\"utf8\");\n return decrypted;\n } catch (e) {\n console.log(\"Calimero.decrypt error: \", e.toString());\n return null;\n }\n}\n// END HELPER FUNCTIONS\n\nconst dataSources = (contract, accountId) => ({\n key: async () => {\n let keyBody = { from: accountId, ...props.conversation };\n const cacheKey = { ...keyBody };\n keyBody.nonce = toHexString(Crypto.randomBytes(16));\n\n return Calimero.sign(contract, Buffer.from(accountId + \"|\" + keyBody.nonce))\n .then((signature) => {\n keyBody.signature = toHexString(signature.signature);\n\n return useCache(\n () =>\n asyncFetch(encryptionUrl, {\n method: \"POST\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify(keyBody),\n }),\n cacheKey\n );\n })\n .then((keyData) => {\n return keyData.body?.key;\n })\n .catch(() => null);\n },\n messages: () => {\n if (getMessageFetchParams()) {\n return Calimero.asyncView(\n contract,\n \"get_messages\",\n getMessageFetchParams(),\n \"optimistic\"\n );\n }\n\n return new Promise(() => []);\n }, // TODO add local messages\n});\n\nconst generator = (contract, account) => {\n const promises = Object.entries(dataSources(contract, account)).map(\n ([key, promiseFunc]) => {\n return promiseFunc().then((result) => ({ [key]: result }));\n }\n );\n\n return () =>\n Promise.all(promises).then((results) => {\n const result = results.reduce(\n (acc, result) => ({ ...acc, ...result }),\n {}\n );\n\n return result;\n });\n};\n\nconst subscribeToMessageUpdates = (contract, accountId) =>\n useCache(generator(contract, accountId), \"message_data\", { subscribe: true }); // 5 seconds\n\nconst messageUpdates = subscribeToMessageUpdates(\n props.contract,\n context.accountId\n);\n\nconst decryptOneMessage = (message, key) => {\n const decrypted = decrypt(message.text, key, message.nonce);\n let thread = [];\n if (message.thread) {\n thread = message.thread?.map((m) => decryptOneMessage(m, key));\n }\n\n return { ...message, decrypted, thread };\n};\n\nconst decryptedMessages = messageUpdates.messages.map((m) =>\n decryptOneMessage(m, messageUpdates.key)\n);\nconsole.log([\"TEST\", decryptedMessages]);\n\nreturn <></>;\n\nreturn (\n <ChatContainer>\n <Widget\n src={`${componentOwnerId}/widget/Calimero.Curb.Chat.ChatContainer`}\n props={{\n componentOwnerId,\n key: parseHexString(state.key),\n messages: state.chatMessages,\n readMessage: (id) => readMessage(id, readMessageParams),\n addMessageReaction: (params) => addMessageReaction(params),\n showThread: state.showThread,\n threadId: state.threadId,\n openThread: () => openThread(),\n closeThread: () => closeThread(),\n setThread: (messageId) => setThread(messageId),\n }}\n />\n <Widget\n src={`${componentOwnerId}/widget/Calimero.Curb.Chat.MessageInput`}\n props={{\n componentOwnerId,\n selectedChat: state.selectedDM\n ? state.selectedDM\n : \"#\" + state.channelList[state.selectedChannel].name,\n sendMessage: sendMessage,\n inputId: state.inputId,\n img: state.img,\n uploadComponent: (\n <IpfsImageUpload image={state.img} className=\"btn btn-secondary\" />\n ),\n resetImage: resetImage,\n threadReply: state.showThread,\n }}\n />\n </ChatContainer>\n);\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":"DFdYESf4hPJewYbk7cyunpMCVX419y9jmo9d6tDoNmGL","sender_account_id":"debeligad.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.