Source Code
Overview
XDC Balance
XDC Value
$0.00Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 90643184 | 10 days ago | IN | 84 XDC | 0.00026306 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
MetadataLogger
Compiler Version
v0.8.26+commit.8a97fa7a
Contract Source Code (Solidity)
/** *Submitted for verification at xdcscan.com on 2025-06-17 */ // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.20; contract MetadataLogger { event MetadataStored(address indexed user, uint256 indexed gameId, string metadata); function storeMetadata(address user, string memory metadata ,uint256 gameId) public { address caller = msg.sender; emit MetadataStored( user, gameId, metadata); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"gameId","type":"uint256"},{"indexed":false,"internalType":"string","name":"metadata","type":"string"}],"name":"MetadataStored","type":"event"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"string","name":"metadata","type":"string"},{"internalType":"uint256","name":"gameId","type":"uint256"}],"name":"storeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052348015600f57600080fd5b5061020e8061001f6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063afb91b2e14610030575b600080fd5b61004361003e3660046100a8565b610045565b005b600033905081846001600160a01b03167f720de19c410b3e984289c84afa93598bb0075152e0ffa5623d10756005b4a0f485604051610084919061018a565b60405180910390a350505050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156100bd57600080fd5b83356001600160a01b03811681146100d457600080fd5b9250602084013567ffffffffffffffff8111156100f057600080fd5b8401601f8101861361010157600080fd5b803567ffffffffffffffff81111561011b5761011b610092565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561014a5761014a610092565b60405281815282820160200188101561016257600080fd5b8160208401602083013760009181016020019190915293969395505050506040919091013590565b602081526000825180602084015260005b818110156101b8576020818601810151604086840101520161019b565b506000604082850101526040601f19601f8301168401019150509291505056fea26469706673582212202691310e0619261f1ddc796c46c1aa35ec3b42d0d4addb2a289a60f6c25a90c264736f6c634300081a0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063afb91b2e14610030575b600080fd5b61004361003e3660046100a8565b610045565b005b600033905081846001600160a01b03167f720de19c410b3e984289c84afa93598bb0075152e0ffa5623d10756005b4a0f485604051610084919061018a565b60405180910390a350505050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156100bd57600080fd5b83356001600160a01b03811681146100d457600080fd5b9250602084013567ffffffffffffffff8111156100f057600080fd5b8401601f8101861361010157600080fd5b803567ffffffffffffffff81111561011b5761011b610092565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561014a5761014a610092565b60405281815282820160200188101561016257600080fd5b8160208401602083013760009181016020019190915293969395505050506040919091013590565b602081526000825180602084015260005b818110156101b8576020818601810151604086840101520161019b565b506000604082850101526040601f19601f8301168401019150509291505056fea26469706673582212202691310e0619261f1ddc796c46c1aa35ec3b42d0d4addb2a289a60f6c25a90c264736f6c634300081a0033
Deployed Bytecode Sourcemap
65:313:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;189:186;;;;;;:::i;:::-;;:::i;:::-;;;285:14;302:10;285:27;;350:6;344:4;-1:-1:-1;;;;;328:39:0;;358:8;328:39;;;;;;:::i;:::-;;;;;;;;274:101;189:186;;;:::o;14:127:1:-;75:10;70:3;66:20;63:1;56:31;106:4;103:1;96:15;130:4;127:1;120:15;146:1239;233:6;241;249;302:2;290:9;281:7;277:23;273:32;270:52;;;318:1;315;308:12;270:52;344:23;;-1:-1:-1;;;;;396:31:1;;386:42;;376:70;;442:1;439;432:12;376:70;465:5;-1:-1:-1;521:2:1;506:18;;493:32;548:18;537:30;;534:50;;;580:1;577;570:12;534:50;603:22;;656:4;648:13;;644:27;-1:-1:-1;634:55:1;;685:1;682;675:12;634:55;725:2;712:16;751:18;743:6;740:30;737:56;;;773:18;;:::i;:::-;822:2;816:9;914:2;876:17;;-1:-1:-1;;872:31:1;;;905:2;868:40;864:54;852:67;;949:18;934:34;;970:22;;;931:62;928:88;;;996:18;;:::i;:::-;1032:2;1025:22;1056;;;1097:15;;;1114:2;1093:24;1090:37;-1:-1:-1;1087:57:1;;;1140:1;1137;1130:12;1087:57;1196:6;1191:2;1187;1183:11;1178:2;1170:6;1166:15;1153:50;1249:1;1223:19;;;1244:2;1219:28;1212:39;;;;146:1239;;1227:6;;-1:-1:-1;;;;1349:2:1;1334:18;;;;1321:32;;146:1239::o;1390:527::-;1539:2;1528:9;1521:21;1502:4;1571:6;1565:13;1614:6;1609:2;1598:9;1594:18;1587:34;1639:1;1649:140;1663:6;1660:1;1657:13;1649:140;;;1774:2;1758:14;;;1754:23;;1748:30;1743:2;1724:17;;;1720:26;1713:66;1678:10;1649:140;;;1653:3;1838:1;1833:2;1824:6;1813:9;1809:22;1805:31;1798:42;1908:2;1901;1897:7;1892:2;1884:6;1880:15;1876:29;1865:9;1861:45;1857:54;1849:62;;;1390:527;;;;:::o
Swarm Source
ipfs://2691310e0619261f1ddc796c46c1aa35ec3b42d0d4addb2a289a60f6c25a90c2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.