Search
Search

Transaction: 8gqeDdV...Fjyr

Receiver
Status
Succeeded
Transaction Fee
0.00098 
Deposit Value
0 
Gas Used
10 Tgas
Attached Gas
100 Tgas
Created
January 03, 2023 at 10:08:51pm
Hash
8gqeDdVtPFH1u9RsnxbcaY27kRczPfQoUh9Hhcy2Fjyr

Actions

Called method: 'set' in contract: social.near
Arguments:
{ "data": { "f2bc8abdb8ba64fe5aac9689ded9491ff0e6fdcd7a5c680b7cf364142d1789fb": { "widget": { "answersHeader": { "": "if (!props.blockHeight) {\n return \"Prop blockHeight is not set\";\n}\n\nconst questionBlockHeight = props.blockHeight;\nlet questions = Social.index(\"poll_question\", \"question-v3.0.1\");\nif (!questions) {\n return \"Loading\";\n}\nlet questionParams = questions.find(\n (q) => q.blockHeight == questionBlockHeight\n);\n\nfunction isActive() {\n return (\n questionParams.value.startTimestamp < Date.now() &&\n Date.now() < questionParams.value.endTimestamp\n );\n}\n\nfunction isUpcoming() {\n return questionParams.value.startTimestamp > Date.now();\n}\n\nlet profile = Social.getr(`${props.accountId}/profile`);\nif (!profile) {\n return \"Loading\";\n}\n\nreturn (\n <div className=\"my-2\">\n <div className=\"d-flex no-wrap justify-content-between\">\n <Widget\n src={`f2bc8abdb8ba64fe5aac9689ded9491ff0e6fdcd7a5c680b7cf364142d1789fb/widget/Profile`}\n props={{ userMakingQuestion: props.accountId, profile }}\n />\n\n <div className=\"d-flex\">\n <span className=\"mx-2\" style={{ fontWeight: \"500\" }}>\n End date:{\" \"}\n {new Date(questionParams.value.endTimestamp).toLocaleDateString()}\n </span>\n <span\n style={{\n backgroundColor: isUpcoming()\n ? \"rgb(255, 255, 128)\"\n : isActive()\n ? \"rgb(153, 255, 153)\"\n : \"rgb(255, 128, 128)\",\n\n height: \"max-content\",\n width: \"6rem\",\n border: \"1px solid rgb(0, 82, 204)\",\n textAlign: \"center\",\n borderRadius: \"80px\",\n }}\n >\n {isUpcoming() ? \"Upcoming\" : isActive() ? \"Active\" : \"Closed\"}\n </span>\n </div>\n </div>\n <h5 className=\"mt-3\">{questionParams.value.title}</h5>\n <p>{questionParams.value.description}</p>\n <p>{questionParams.value.question}</p>\n </div>\n);\n" } } } } }

Transaction Execution Plan

Convert Transaction To Receipt
Gas Burned:
2 Tgas
Tokens Burned:
0.00024 
Receipt:
Predecessor ID:
Receiver ID:
Gas Burned:
7 Tgas
Tokens Burned:
0.00074 
Called method: 'set' in contract: social.near
Arguments:
{ "data": { "f2bc8abdb8ba64fe5aac9689ded9491ff0e6fdcd7a5c680b7cf364142d1789fb": { "widget": { "answersHeader": { "": "if (!props.blockHeight) {\n return \"Prop blockHeight is not set\";\n}\n\nconst questionBlockHeight = props.blockHeight;\nlet questions = Social.index(\"poll_question\", \"question-v3.0.1\");\nif (!questions) {\n return \"Loading\";\n}\nlet questionParams = questions.find(\n (q) => q.blockHeight == questionBlockHeight\n);\n\nfunction isActive() {\n return (\n questionParams.value.startTimestamp < Date.now() &&\n Date.now() < questionParams.value.endTimestamp\n );\n}\n\nfunction isUpcoming() {\n return questionParams.value.startTimestamp > Date.now();\n}\n\nlet profile = Social.getr(`${props.accountId}/profile`);\nif (!profile) {\n return \"Loading\";\n}\n\nreturn (\n <div className=\"my-2\">\n <div className=\"d-flex no-wrap justify-content-between\">\n <Widget\n src={`f2bc8abdb8ba64fe5aac9689ded9491ff0e6fdcd7a5c680b7cf364142d1789fb/widget/Profile`}\n props={{ userMakingQuestion: props.accountId, profile }}\n />\n\n <div className=\"d-flex\">\n <span className=\"mx-2\" style={{ fontWeight: \"500\" }}>\n End date:{\" \"}\n {new Date(questionParams.value.endTimestamp).toLocaleDateString()}\n </span>\n <span\n style={{\n backgroundColor: isUpcoming()\n ? \"rgb(255, 255, 128)\"\n : isActive()\n ? \"rgb(153, 255, 153)\"\n : \"rgb(255, 128, 128)\",\n\n height: \"max-content\",\n width: \"6rem\",\n border: \"1px solid rgb(0, 82, 204)\",\n textAlign: \"center\",\n borderRadius: \"80px\",\n }}\n >\n {isUpcoming() ? \"Upcoming\" : isActive() ? \"Active\" : \"Closed\"}\n </span>\n </div>\n </div>\n <h5 className=\"mt-3\">{questionParams.value.title}</h5>\n <p>{questionParams.value.description}</p>\n <p>{questionParams.value.question}</p>\n </div>\n);\n" } } } } }
Empty result
No logs
Receipt:
Predecessor ID:
Receiver ID:
Gas Burned:
424 Ggas
Tokens Burned:
0 
Transferred 0.01832  to f2bc8…142d1789fb
Empty result
No logs