mainnet
English
Русский
Tiếng Việt
繁體中文
简体中文
Українська
Home
Explore
Transaction: BRoi1g1...kcWL
Signed by
idknwhoru.near
Receiver
social.near
Status
Succeeded
Transaction Fee
0.00084 Ⓝ
Deposit Value
<0.00001 Ⓝ
Gas Used
8 Tgas
Attached Gas
100 Tgas
Created
March 08, 2024 at 12:32:09pm
Hash
BRoi1g1NVHVDeGqDo1gHjCDxxsWhMfLaJvQYKqQ9kcWL
Block Hash
DKpyk3oxmgdX6hhCtNjUBiivfRymaMbc7iYNaqyaVeXW
Actions
Called method: 'set' in contract:
social.near
Arguments:
{ "data": { "idknwhoru.near": { "component_alpha": { "Profile": { "": "import { socialDb } from \"@bos-web-engine/social-db-plugin\";\nimport { useState, useEffect, Suspense } from \"react\";\nimport ps from \"./styles.module.css\"\n\nconst UserProfile = ({ profile }) => {\n return <article className={ps.profile}>\n <img className={ps.avatar} src={`https://ipfs.near.social/ipfs/${profile?.image.ipfs_cid}`} />\n <div>\n <h3 className={ps.h3}>Hello, {profile?.name}</h3>\n </div>\n </article>\n}\n\nexport default function Profile({ id = \"idknwhoru.near\" }) {\n console.log({ id })\n const [data, setData] = useState(null);\n const profile = data?.[id]?.profile;\n\n const loadData = async () => {\n const res = await socialDb.get({\n key: `${id}/profile/**`\n });\n\n setData(res);\n }\n\n useEffect(() => {\n loadData();\n }, []);\n\n return (\n <section className={ps.wrapper}>\n <>\n <h2 className={ps.h2}>Ternary operator</h2>\n {\n !profile ? <p>pending...</p> : <UserProfile profile={profile} />\n }\n </>\n <hr />\n <Suspense fallback={<p>pending...</p>}>\n <h2 className={ps.h2}>Suspense</h2>\n <UserProfile profile={profile} />\n </Suspense>\n <hr />\n <>\n <h2 className={ps.h2}>None</h2>\n <UserProfile profile={profile} />\n </>\n </section>\n );\n}\n\nexport default Profile as BWEComponent;", "css": "@import url(\"https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css\");\n\n.wrapper {\n --avatar-size: 60px;\n --font-family: Pretendard Variable;\n --font-style: normal;\n --h2-font-size: 28px;\n --h2-line-height: 33px;\n --h3-font-weight: 700;\n --h3-font-size: 24px;\n --h3-line-height: 29px;\n --h3-letter-spacing: -0.003em;\n\n display: block;\n}\n\n.profile {\n display: flex;\n}\n\n.avatar {\n width: var(--avatar-size);\n height: var(--avatar-size);\n border-radius: 50%;\n}\n\n.h2 {\n font-family: var(--font-family);\n font-style: var(--font-style);\n font-size: var(--h2-font-size);\n line-height: var(--h2-line-height);\n}\n\n.h3 {\n font-weight: var(--h3-font-weight);\n font-size: var(--h3-font-size);\n line-height: var(--h3-line-height);\n letter-spacing: var(--h3-letter-spacing);\n}" } } } } }
Transaction Execution Plan
Convert Transaction To Receipt
Gas Burned:
2 Tgas
Tokens Burned:
0.00024 Ⓝ
Receipt:
Receipt ID:
Eau6fTSfYfeLMd9ZVUQjF43PXQxbWzKr7uQzsay8HiHc
Executed in Block:
AsmNsgAaHgKqHyUCqidWSs7CbtT3CifrfDGkHcoTjukX
Predecessor ID:
idknwhoru.near
Receiver ID:
social.near
Gas Burned:
5 Tgas
Tokens Burned:
0.00059 Ⓝ
Called method: 'set' in contract:
social.near
Arguments:
{ "data": { "idknwhoru.near": { "component_alpha": { "Profile": { "": "import { socialDb } from \"@bos-web-engine/social-db-plugin\";\nimport { useState, useEffect, Suspense } from \"react\";\nimport ps from \"./styles.module.css\"\n\nconst UserProfile = ({ profile }) => {\n return <article className={ps.profile}>\n <img className={ps.avatar} src={`https://ipfs.near.social/ipfs/${profile?.image.ipfs_cid}`} />\n <div>\n <h3 className={ps.h3}>Hello, {profile?.name}</h3>\n </div>\n </article>\n}\n\nexport default function Profile({ id = \"idknwhoru.near\" }) {\n console.log({ id })\n const [data, setData] = useState(null);\n const profile = data?.[id]?.profile;\n\n const loadData = async () => {\n const res = await socialDb.get({\n key: `${id}/profile/**`\n });\n\n setData(res);\n }\n\n useEffect(() => {\n loadData();\n }, []);\n\n return (\n <section className={ps.wrapper}>\n <>\n <h2 className={ps.h2}>Ternary operator</h2>\n {\n !profile ? <p>pending...</p> : <UserProfile profile={profile} />\n }\n </>\n <hr />\n <Suspense fallback={<p>pending...</p>}>\n <h2 className={ps.h2}>Suspense</h2>\n <UserProfile profile={profile} />\n </Suspense>\n <hr />\n <>\n <h2 className={ps.h2}>None</h2>\n <UserProfile profile={profile} />\n </>\n </section>\n );\n}\n\nexport default Profile as BWEComponent;", "css": "@import url(\"https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css\");\n\n.wrapper {\n --avatar-size: 60px;\n --font-family: Pretendard Variable;\n --font-style: normal;\n --h2-font-size: 28px;\n --h2-line-height: 33px;\n --h3-font-weight: 700;\n --h3-font-size: 24px;\n --h3-line-height: 29px;\n --h3-letter-spacing: -0.003em;\n\n display: block;\n}\n\n.profile {\n display: flex;\n}\n\n.avatar {\n width: var(--avatar-size);\n height: var(--avatar-size);\n border-radius: 50%;\n}\n\n.h2 {\n font-family: var(--font-family);\n font-style: var(--font-style);\n font-size: var(--h2-font-size);\n line-height: var(--h2-line-height);\n}\n\n.h3 {\n font-weight: var(--h3-font-weight);\n font-size: var(--h3-font-size);\n line-height: var(--h3-line-height);\n letter-spacing: var(--h3-letter-spacing);\n}" } } } } }
Result:
{ "block_height": "114329209" }
No logs
Receipt:
Receipt ID:
ERQLNUDJeyN3JCRcBZ5NoE2Sx47YsRAhyXLquUiSHN6p
Executed in Block:
HzgNGFMQDx199bF43fLfa1tr5CwkHH8RYzgoAngKn13V
Predecessor ID:
system
Receiver ID:
idknwhoru.near
Gas Burned:
223 Ggas
Tokens Burned:
0 Ⓝ
Transferred
0.01846 Ⓝ
to
idknwhoru.near
Empty result
No logs
© 2024 NEAR Inc. All Rights Reserved.
Terms of Service
|
Privacy Policy
Questions?
Join the Community
◍