Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 235 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Consume Token | 24709640 | 28 hrs ago | IN | 0 ETH | 0.00000084 | ||||
| Anchor Response | 24709640 | 28 hrs ago | IN | 0 ETH | 0.00000163 | ||||
| Consume Token | 24709621 | 28 hrs ago | IN | 0 ETH | 0.00000082 | ||||
| Anchor Response | 24709621 | 28 hrs ago | IN | 0 ETH | 0.0000016 | ||||
| Consume Token | 24706160 | 40 hrs ago | IN | 0 ETH | 0.0000009 | ||||
| Anchor Response | 24706160 | 40 hrs ago | IN | 0 ETH | 0.00000174 | ||||
| Consume Token | 24702178 | 2 days ago | IN | 0 ETH | 0.00000113 | ||||
| Anchor Response | 24702177 | 2 days ago | IN | 0 ETH | 0.00000202 | ||||
| Consume Token | 24697120 | 2 days ago | IN | 0 ETH | 0.00000141 | ||||
| Anchor Response | 24697120 | 2 days ago | IN | 0 ETH | 0.00000273 | ||||
| Consume Token | 24697004 | 2 days ago | IN | 0 ETH | 0.00000119 | ||||
| Anchor Response | 24697004 | 2 days ago | IN | 0 ETH | 0.00000231 | ||||
| Consume Token | 24696958 | 2 days ago | IN | 0 ETH | 0.00000147 | ||||
| Anchor Response | 24696958 | 2 days ago | IN | 0 ETH | 0.00000285 | ||||
| Consume Token | 24696937 | 2 days ago | IN | 0 ETH | 0.00000172 | ||||
| Anchor Response | 24696936 | 2 days ago | IN | 0 ETH | 0.00000346 | ||||
| Consume Token | 24696706 | 2 days ago | IN | 0 ETH | 0.00000141 | ||||
| Consume Token | 24696705 | 2 days ago | IN | 0 ETH | 0.00000134 | ||||
| Anchor Response | 24696703 | 2 days ago | IN | 0 ETH | 0.00000283 | ||||
| Anchor Response | 24696702 | 2 days ago | IN | 0 ETH | 0.00000262 | ||||
| Consume Token | 24635008 | 11 days ago | IN | 0 ETH | 0.00000899 | ||||
| Anchor Response | 24635007 | 11 days ago | IN | 0 ETH | 0.00001773 | ||||
| Consume Token | 24632502 | 11 days ago | IN | 0 ETH | 0.0000009 | ||||
| Anchor Response | 24632502 | 11 days ago | IN | 0 ETH | 0.00000174 | ||||
| Consume Token | 24632436 | 11 days ago | IN | 0 ETH | 0.00000082 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SurveyAnchor
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;
/*
* Survey Blockchain Anchoring Contract
*
* 기능:
* - 설문 응답 해시 anchoring
* - 토큰 소모 이벤트 기록
* - 응답 무결성 검증을 위한 hash 조회 기능
*
* 개인정보 없이 재현 가능한 hash 기반 검증 구조.
* Arbitrum / Ethereum / Polygon 모두 호환.
*/
contract SurveyAnchor {
// 설문ID → 응답ID → 해시값
mapping(uint256 => mapping(uint256 => bytes32)) public responseHashes;
// --- Events -------------------------------------------------------------
// 토큰 소모 이벤트
event ResponseTokenConsumed(
uint256 indexed surveyId,
bytes32 indexed tokenHash,
uint256 blockNumber,
uint256 timestamp
);
// 응답 해시 anchoring 이벤트
event ResponseAnchored(
uint256 indexed surveyId,
uint256 indexed responseId,
bytes32 responseHash,
uint256 blockNumber,
uint256 timestamp
);
// --- Token consumption ---------------------------------------------------
/*
* 토큰이 소모되었음을 기록
* tokenHash: 서버에서 SHA256(token 문자열) 결과 (bytes32)
*/
function consumeToken(uint256 surveyId, bytes32 tokenHash) external {
emit ResponseTokenConsumed(
surveyId,
tokenHash,
block.number,
block.timestamp
);
}
// --- Response anchoring --------------------------------------------------
/*
* 응답 JSON 정규화 → SHA-256 → bytes32 로 변환된 해시를 저장
* responseId: 서버 DB의 응답 PK
*/
function anchorResponse(
uint256 surveyId,
uint256 responseId,
bytes32 responseHash
) external {
responseHashes[surveyId][responseId] = responseHash;
emit ResponseAnchored(
surveyId,
responseId,
responseHash,
block.number,
block.timestamp
);
}
// --- Hash 조회 ----------------------------------------------------------
function getResponseHash(
uint256 surveyId,
uint256 responseId
) external view returns (bytes32) {
return responseHashes[surveyId][responseId];
}
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"surveyId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"responseId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"responseHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ResponseAnchored","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"surveyId","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"tokenHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ResponseTokenConsumed","type":"event"},{"inputs":[{"internalType":"uint256","name":"surveyId","type":"uint256"},{"internalType":"uint256","name":"responseId","type":"uint256"},{"internalType":"bytes32","name":"responseHash","type":"bytes32"}],"name":"anchorResponse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"surveyId","type":"uint256"},{"internalType":"bytes32","name":"tokenHash","type":"bytes32"}],"name":"consumeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"surveyId","type":"uint256"},{"internalType":"uint256","name":"responseId","type":"uint256"}],"name":"getResponseHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"responseHashes","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}]Contract Creation Code
6080604052348015600f57600080fd5b506103f88061001f6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80638494e6d7146100515780638e068bd114610081578063e5ca29f4146100b1578063f3945502146100cd575b600080fd5b61006b60048036038101906100669190610220565b6100e9565b6040516100789190610279565b60405180910390f35b61009b60048036038101906100969190610220565b61010e565b6040516100a89190610279565b60405180910390f35b6100cb60048036038101906100c691906102c0565b61013c565b005b6100e760048036038101906100e29190610300565b61017b565b005b6000602052816000526040600020602052806000526040600020600091509150505481565b6000806000848152602001908152602001600020600083815260200190815260200160002054905092915050565b80827f67bbb192009c3518b33264c5b534b3ed0b242125016606dd4697820e2748efa2434260405161016f929190610362565b60405180910390a35050565b8060008085815260200190815260200160002060008481526020019081526020016000208190555081837fea912dcbac6bde57b727086a10f07d02cd2e56a3df9fe2897750f194265fc1fa8343426040516101d89392919061038b565b60405180910390a3505050565b600080fd5b6000819050919050565b6101fd816101ea565b811461020857600080fd5b50565b60008135905061021a816101f4565b92915050565b60008060408385031215610237576102366101e5565b5b60006102458582860161020b565b92505060206102568582860161020b565b9150509250929050565b6000819050919050565b61027381610260565b82525050565b600060208201905061028e600083018461026a565b92915050565b61029d81610260565b81146102a857600080fd5b50565b6000813590506102ba81610294565b92915050565b600080604083850312156102d7576102d66101e5565b5b60006102e58582860161020b565b92505060206102f6858286016102ab565b9150509250929050565b600080600060608486031215610319576103186101e5565b5b60006103278682870161020b565b93505060206103388682870161020b565b9250506040610349868287016102ab565b9150509250925092565b61035c816101ea565b82525050565b60006040820190506103776000830185610353565b6103846020830184610353565b9392505050565b60006060820190506103a0600083018661026a565b6103ad6020830185610353565b6103ba6040830184610353565b94935050505056fea26469706673582212202c1b57073774154233c226c1423094aaf3576c957370233e8bbd1806452e983e64736f6c634300081c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80638494e6d7146100515780638e068bd114610081578063e5ca29f4146100b1578063f3945502146100cd575b600080fd5b61006b60048036038101906100669190610220565b6100e9565b6040516100789190610279565b60405180910390f35b61009b60048036038101906100969190610220565b61010e565b6040516100a89190610279565b60405180910390f35b6100cb60048036038101906100c691906102c0565b61013c565b005b6100e760048036038101906100e29190610300565b61017b565b005b6000602052816000526040600020602052806000526040600020600091509150505481565b6000806000848152602001908152602001600020600083815260200190815260200160002054905092915050565b80827f67bbb192009c3518b33264c5b534b3ed0b242125016606dd4697820e2748efa2434260405161016f929190610362565b60405180910390a35050565b8060008085815260200190815260200160002060008481526020019081526020016000208190555081837fea912dcbac6bde57b727086a10f07d02cd2e56a3df9fe2897750f194265fc1fa8343426040516101d89392919061038b565b60405180910390a3505050565b600080fd5b6000819050919050565b6101fd816101ea565b811461020857600080fd5b50565b60008135905061021a816101f4565b92915050565b60008060408385031215610237576102366101e5565b5b60006102458582860161020b565b92505060206102568582860161020b565b9150509250929050565b6000819050919050565b61027381610260565b82525050565b600060208201905061028e600083018461026a565b92915050565b61029d81610260565b81146102a857600080fd5b50565b6000813590506102ba81610294565b92915050565b600080604083850312156102d7576102d66101e5565b5b60006102e58582860161020b565b92505060206102f6858286016102ab565b9150509250929050565b600080600060608486031215610319576103186101e5565b5b60006103278682870161020b565b93505060206103388682870161020b565b9250506040610349868287016102ab565b9150509250925092565b61035c816101ea565b82525050565b60006040820190506103776000830185610353565b6103846020830184610353565b9392505050565b60006060820190506103a0600083018661026a565b6103ad6020830185610353565b6103ba6040830184610353565b94935050505056fea26469706673582212202c1b57073774154233c226c1423094aaf3576c957370233e8bbd1806452e983e64736f6c634300081c0033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
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.