mainnet
English
Русский
Tiếng Việt
繁體中文
简体中文
Українська
Home
Explore
Transaction: 9io7Mxw...x3BL
Signed by
nearcatalog.near
Receiver
social.near
Status
Succeeded
Transaction Fee
0.00081 Ⓝ
Deposit Value
0 Ⓝ
Gas Used
8 Tgas
Attached Gas
100 Tgas
Created
March 02, 2024 at 8:57:37pm
Hash
9io7MxwYDDN8MoaQN4qmFmeUSD2vnF4dPKQcn4Mrx3BL
Block Hash
9MrU2Kry575s6evjT6eh3o8tQdLFfHx9qnFfWsKE1xxs
Actions
Called method: 'set' in contract:
social.near
Arguments:
{ "data": { "nearcatalog.near": { "widget": { "Index": { "": "const owner = \"nearcatalog.near\";\nconst componentPath = `${owner}/widget/NearCatalog`;\nconst indexer = \"https://nearcatalog.xyz/wp-json/nearcatalog/v1\";\nconst defaultImg =\n \"https://learnnear.club/wp-content/uploads/2021/09/lnc-profile-desktop-150x150.png\";\n\nconst projects = {};\nlet router = \"home\";\nconst query = \"\";\n\nlet widgetSrc = \"\";\nlet widgetProps = {};\n\nif (props?.bookmark) {\n router = \"bookmark\";\n} else if (props?.cat.length > 0) {\n router = \"category\";\n} else if (props?.id) {\n router = \"project\";\n}\n\nfunction loadingScreen() {\n return <>👀📗~~</>;\n}\n\nconsole.log(\"router: \", router);\n\nconsole.log(\n \"bookmarks: \",\n (projects = Storage.get(\"nearcatalogBookmark\", componentPath + \".Project\"))\n);\n\nswitch (router) {\n case \"project\":\n query = fetch(indexer + \"/project?pid=\" + props.id);\n if (!query || !query.body) {\n return loadingScreen();\n }\n widgetSrc = `${componentPath}.Project`;\n widgetProps = {\n id: props.id,\n project: query.body,\n };\n break;\n\n case \"category\":\n query = fetch(indexer + \"/projects-by-category?cid=\" + props.cat);\n projects = query.body;\n if (!query) {\n return loadingScreen();\n }\n widgetSrc = `${componentPath}.Layout.AppGrid`;\n widgetProps = {\n cat: props.cat,\n };\n break;\n\n case \"bookmark\":\n widgetSrc = `${componentPath}.Layout.AppGrid`;\n widgetProps = {\n bookmark: true,\n };\n projects = Storage.get(\"nearcatalogBookmark\", componentPath + \".Project\");\n break;\n\n default:\n //home router\n query = fetch(indexer + \"/projects\");\n if (!query || !query.body) {\n return loadingScreen();\n }\n projects = query.body;\n widgetSrc = `${componentPath}.Layout.AppGrid`;\n break;\n}\n\nlet p = {\n ...{\n componentPath,\n indexPath: owner + \"/widget/Index\",\n owner,\n indexer,\n projects,\n defaultImg,\n router,\n },\n ...widgetProps,\n};\nconsole.log(\"final props\", p);\nreturn (\n <div key={router}>\n <Widget src={widgetSrc} props={p} />\n </div>\n);\n" } } } } }
Transaction Execution Plan
Convert Transaction To Receipt
Gas Burned:
2 Tgas
Tokens Burned:
0.00024 Ⓝ
Receipt:
Receipt ID:
Do23A42BR65ed1mYBC9EmfCiQHzkcQxjMGtgNwYTryXa
Executed in Block:
CqJK5k6H3v85ydzSNB6sAKqTtzRWHycZ8AaqnBYPTXXq
Predecessor ID:
nearcatalog.near
Receiver ID:
social.near
Gas Burned:
5 Tgas
Tokens Burned:
0.00056 Ⓝ
Called method: 'set' in contract:
social.near
Arguments:
{ "data": { "nearcatalog.near": { "widget": { "Index": { "": "const owner = \"nearcatalog.near\";\nconst componentPath = `${owner}/widget/NearCatalog`;\nconst indexer = \"https://nearcatalog.xyz/wp-json/nearcatalog/v1\";\nconst defaultImg =\n \"https://learnnear.club/wp-content/uploads/2021/09/lnc-profile-desktop-150x150.png\";\n\nconst projects = {};\nlet router = \"home\";\nconst query = \"\";\n\nlet widgetSrc = \"\";\nlet widgetProps = {};\n\nif (props?.bookmark) {\n router = \"bookmark\";\n} else if (props?.cat.length > 0) {\n router = \"category\";\n} else if (props?.id) {\n router = \"project\";\n}\n\nfunction loadingScreen() {\n return <>👀📗~~</>;\n}\n\nconsole.log(\"router: \", router);\n\nconsole.log(\n \"bookmarks: \",\n (projects = Storage.get(\"nearcatalogBookmark\", componentPath + \".Project\"))\n);\n\nswitch (router) {\n case \"project\":\n query = fetch(indexer + \"/project?pid=\" + props.id);\n if (!query || !query.body) {\n return loadingScreen();\n }\n widgetSrc = `${componentPath}.Project`;\n widgetProps = {\n id: props.id,\n project: query.body,\n };\n break;\n\n case \"category\":\n query = fetch(indexer + \"/projects-by-category?cid=\" + props.cat);\n projects = query.body;\n if (!query) {\n return loadingScreen();\n }\n widgetSrc = `${componentPath}.Layout.AppGrid`;\n widgetProps = {\n cat: props.cat,\n };\n break;\n\n case \"bookmark\":\n widgetSrc = `${componentPath}.Layout.AppGrid`;\n widgetProps = {\n bookmark: true,\n };\n projects = Storage.get(\"nearcatalogBookmark\", componentPath + \".Project\");\n break;\n\n default:\n //home router\n query = fetch(indexer + \"/projects\");\n if (!query || !query.body) {\n return loadingScreen();\n }\n projects = query.body;\n widgetSrc = `${componentPath}.Layout.AppGrid`;\n break;\n}\n\nlet p = {\n ...{\n componentPath,\n indexPath: owner + \"/widget/Index\",\n owner,\n indexer,\n projects,\n defaultImg,\n router,\n },\n ...widgetProps,\n};\nconsole.log(\"final props\", p);\nreturn (\n <div key={router}>\n <Widget src={widgetSrc} props={p} />\n </div>\n);\n" } } } } }
Result:
{ "block_height": "113970922" }
No logs
Receipt:
Receipt ID:
8doEafu2Mi9vbARXYjXy3KVpWgmBWCZFMTnRcEjhpm6J
Executed in Block:
F9LpAVWSZLZgrfYLUcFauBwVq1RNovgjSf3ibu8GhahF
Predecessor ID:
system
Receiver ID:
nearcatalog.near
Gas Burned:
223 Ggas
Tokens Burned:
0 Ⓝ
Transferred
0.01849 Ⓝ
to
nearcatalog.near
Empty result
No logs
© 2024 NEAR Inc. All Rights Reserved.
Terms of Service
|
Privacy Policy
Questions?
Join the Community
◍