Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 19007629 | 196 days ago | IN | 0 ETH | 0.00208363 |
Loading...
Loading
Contract Name:
BlockPrice
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Apache-2.0. pragma solidity ^0.8.20; contract BlockPrice { event Sample(uint256 price); uint256 public lastSample; function writePrice() external { lastSample = getBlockPrice(); emit Sample(lastSample); } function getBlockPrice() public view returns (uint256) { return block.basefee; } }
{ "metadata": { "useLiteralContent": true }, "libraries": {}, "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"Sample","type":"event"},{"inputs":[],"name":"getBlockPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastSample","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"writePrice","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052348015600e575f80fd5b5060d48061001b5f395ff3fe6080604052348015600e575f80fd5b5060043610603a575f3560e01c806310ca212a14603e578063af6f855d146057578063d77385c614605f575b5f80fd5b60455f5481565b60405190815260200160405180910390f35b605d6064565b005b486045565b485f8190556040519081527f43505e8565af2714277d8f0b7a8cd2021c606580589ad154a21aada8bddfc4b69060200160405180910390a156fea2646970667358221220a537fd9e5281c23995fc6609800317d42ce0875d14b5b4bee0c011b8d45506a164736f6c63430008140033
Deployed Bytecode
0x6080604052348015600e575f80fd5b5060043610603a575f3560e01c806310ca212a14603e578063af6f855d146057578063d77385c614605f575b5f80fd5b60455f5481565b60405190815260200160405180910390f35b605d6064565b005b486045565b485f8190556040519081527f43505e8565af2714277d8f0b7a8cd2021c606580589ad154a21aada8bddfc4b69060200160405180910390a156fea2646970667358221220a537fd9e5281c23995fc6609800317d42ce0875d14b5b4bee0c011b8d45506a164736f6c63430008140033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.