mainnet
English
Русский
Tiếng Việt
繁體中文
简体中文
Українська
Home
Explore
Transaction: B4NKNKr...JMec
Signed by
tolmindev.near
Receiver
social.near
Status
Succeeded
Transaction Fee
0.00098 Ⓝ
Deposit Value
0 Ⓝ
Gas Used
10 Tgas
Attached Gas
100 Tgas
Created
November 29, 2022 at 7:45:49pm
Hash
B4NKNKr7FwZjY68SiteUZNYkUvfzmqiDCJP9krdcJMec
Block Hash
9MGuHBHbhEMLVAvcKbUBoScLC7sWDMc2PpoATRJogyXj
Actions
Called method: 'set' in contract:
social.near
Arguments:
{ "data": { "tolmindev.near": { "widget": { "BooClicker": { "": "const boos = Social.index(\"boo\", \"boo-click\");\nconst counter = {};\nconst uniqueMoos = {};\n\nif (boos) {\n boos.reverse().forEach(({ accountId, value }) => {\n const key = JSON.stringify({ accountId, value });\n if (key in uniqueMoos) {\n return;\n }\n counter[accountId] = (counter[accountId] || 0) + 1;\n uniqueMoos[key] = true;\n });\n}\n\nconst top = Object.entries(counter);\ntop.sort((a, b) => b[1] - a[1]);\n\nfunction renderMoos(accountIds) {\n return (\n <div className=\"d-flex flex-wrap gap-3\">\n {accountIds &&\n accountIds.map((accountId) => {\n return (\n <div className=\"position-relative\">\n <a\n href={`#/tolmindev/widget/ProfilePage?accountId=${accountId}`}\n className=\"text-decoration-none\"\n >\n <Widget\n src=\"tolmindev.near/widget/ProfileImage\"\n props={{\n accountId,\n className: \"d-inline-block overflow-hidden\",\n }}\n />\n </a>\n <span\n className=\"position-absolute top-0 start-100 translate-middle badge rounded-pill bg-success\"\n style={{ zIndex: 1, border: \"0px solid rgb(7,7,7)\" }}\n >\n {counter[accountId]}\n </span>\n </div>\n );\n })}\n </div>\n );\n}\n\nreturn (\n <div>\n <div className=\"mb-4\">\n <CommitButton\n className=\"btn btn-lg btn-success\"\n data={{\n index: {\n boo: JSON.stringify(\n {\n key: \"boo-click\",\n value: Date.now(),\n },\n undefined,\n 0\n ),\n },\n }}\n >\n Boo 💀\n </CommitButton>\n </div>\n <div className=\"mb-4\">\n <h4>💀 Boo Overlords</h4>\n <div>{renderMoos(top.slice(0, 10).map((a) => a[0]))}</div>\n </div>\n <div className=\"mb-4\">\n <h4>🦇 Last Catchers </h4>\n <div>{boos && renderMoos(boos.slice(0, 10).map((a) => a.accountId))}</div>\n </div>\n </div>\n);\n" } } } } }
Transaction Execution Plan
Convert Transaction To Receipt
Gas Burned:
2 Tgas
Tokens Burned:
0.00024 Ⓝ
Receipt:
Receipt ID:
G7FTuZG1U41CgnaDwn81VkreL2jqLKgueXcR6GBiVQKU
Executed in Block:
ANC7EVca8puoLjcQfs4rFGeAzjX8X4btnbMCSAU4kQvy
Predecessor ID:
tolmindev.near
Receiver ID:
social.near
Gas Burned:
7 Tgas
Tokens Burned:
0.00074 Ⓝ
Called method: 'set' in contract:
social.near
Arguments:
{ "data": { "tolmindev.near": { "widget": { "BooClicker": { "": "const boos = Social.index(\"boo\", \"boo-click\");\nconst counter = {};\nconst uniqueMoos = {};\n\nif (boos) {\n boos.reverse().forEach(({ accountId, value }) => {\n const key = JSON.stringify({ accountId, value });\n if (key in uniqueMoos) {\n return;\n }\n counter[accountId] = (counter[accountId] || 0) + 1;\n uniqueMoos[key] = true;\n });\n}\n\nconst top = Object.entries(counter);\ntop.sort((a, b) => b[1] - a[1]);\n\nfunction renderMoos(accountIds) {\n return (\n <div className=\"d-flex flex-wrap gap-3\">\n {accountIds &&\n accountIds.map((accountId) => {\n return (\n <div className=\"position-relative\">\n <a\n href={`#/tolmindev/widget/ProfilePage?accountId=${accountId}`}\n className=\"text-decoration-none\"\n >\n <Widget\n src=\"tolmindev.near/widget/ProfileImage\"\n props={{\n accountId,\n className: \"d-inline-block overflow-hidden\",\n }}\n />\n </a>\n <span\n className=\"position-absolute top-0 start-100 translate-middle badge rounded-pill bg-success\"\n style={{ zIndex: 1, border: \"0px solid rgb(7,7,7)\" }}\n >\n {counter[accountId]}\n </span>\n </div>\n );\n })}\n </div>\n );\n}\n\nreturn (\n <div>\n <div className=\"mb-4\">\n <CommitButton\n className=\"btn btn-lg btn-success\"\n data={{\n index: {\n boo: JSON.stringify(\n {\n key: \"boo-click\",\n value: Date.now(),\n },\n undefined,\n 0\n ),\n },\n }}\n >\n Boo 💀\n </CommitButton>\n </div>\n <div className=\"mb-4\">\n <h4>💀 Boo Overlords</h4>\n <div>{renderMoos(top.slice(0, 10).map((a) => a[0]))}</div>\n </div>\n <div className=\"mb-4\">\n <h4>🦇 Last Catchers </h4>\n <div>{boos && renderMoos(boos.slice(0, 10).map((a) => a.accountId))}</div>\n </div>\n </div>\n);\n" } } } } }
Empty result
No logs
Receipt:
Receipt ID:
Cyf1Et1xymRczr9r71z7FuLAfDfZBNdNnJA7tRSrwGBo
Executed in Block:
D3R5nUzLsMZMd3fRt3EaJEhQHp1ABByxzhAfwAPeJy2j
Predecessor ID:
system
Receiver ID:
tolmindev.near
Gas Burned:
223 Ggas
Tokens Burned:
0 Ⓝ
Transferred
0.01831 Ⓝ
to
tolmindev.near
Empty result
No logs
© 2024 NEAR Inc. All Rights Reserved.
Terms of Service
|
Privacy Policy
Questions?
Join the Community
◍