Address Contract Verified
Address
0xbFB17c041C5F7766617Dd44a4477d62f67aFE3ba
Balance
0 ETH
Nonce
1
Code Size
1268 bytes
Creator
0xc27c70F5...d059 at tx 0xedd7dbde...63c926
Indexed Transactions
0
Contract Bytecode
1268 bytes
0x608060405260043610610033575f3560e01c80633ccfd60b146100375780637f5154b41461004d5780638da5cb5b14610069575b5f80fd5b348015610042575f80fd5b5061004b610093565b005b610067600480360381019061006291906102a9565b610185565b005b348015610074575f80fd5b5061007d61021d565b60405161008a9190610333565b60405180910390f35b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610120576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610117906103a6565b60405180910390fd5b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015610182573d5f803e3d5ffd5b50565b5f34116101c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101be9061040e565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f8dfc1109af223bb7f4e48f38a8a7631f492f0106b90747a651bf181b0fc4e4023484846040516102119392919061048e565b60405180910390a25050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261026957610268610248565b5b8235905067ffffffffffffffff8111156102865761028561024c565b5b6020830191508360018202830111156102a2576102a1610250565b5b9250929050565b5f80602083850312156102bf576102be610240565b5b5f83013567ffffffffffffffff8111156102dc576102db610244565b5b6102e885828601610254565b92509250509250929050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61031d826102f4565b9050919050565b61032d81610313565b82525050565b5f6020820190506103465f830184610324565b92915050565b5f82825260208201905092915050565b7f4f6e6c7920746865206f776e65722063616e2077697468647261772e000000005f82015250565b5f610390601c8361034c565b915061039b8261035c565b602082019050919050565b5f6020820190508181035f8301526103bd81610384565b9050919050565b7f546970206d7573742062652067726561746572207468616e207a65726f2e00005f82015250565b5f6103f8601e8361034c565b9150610403826103c4565b602082019050919050565b5f6020820190508181035f830152610425816103ec565b9050919050565b5f819050919050565b61043e8161042c565b82525050565b828183375f83830152505050565b5f601f19601f8301169050919050565b5f61046d838561034c565b935061047a838584610444565b61048383610452565b840190509392505050565b5f6040820190506104a15f830186610435565b81810360208301526104b4818486610462565b905094935050505056fea2646970667358221220ad2914b06db775ea63e46b1aa8ad9da3b789fa4dd4c14d792a60ca755df5980664736f6c634300081a0033
Verified Source Code Full Match
Compiler: v0.8.26+commit.8a97fa7a
EVM: cancun
Optimization: No
MicroTransactionTool.sol 34 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract MicroTransactionTool {
// The address that deployed the contract, also considered as the owner.
address public owner;
// Event to emit when a microtransaction (tip) is received.
event PaymentReceived(address indexed from, uint256 amount, string message);
// Set the deployer as the owner.
constructor() {
owner = msg.sender;
}
/**
* @notice Function to send a microtransaction (tip).
* @dev Users send ETH along with an optional message.
* @param message A string message that can be used to record a note or tip description.
*/
function sendTip(string calldata message) external payable {
require(msg.value > 0, "Tip must be greater than zero.");
emit PaymentReceived(msg.sender, msg.value, message);
}
/**
* @notice Allows the owner to withdraw all the contract's balance.
* @dev Only the owner can call this function.
*/
function withdraw() external {
require(msg.sender == owner, "Only the owner can withdraw.");
payable(owner).transfer(address(this).balance);
}
}
Read Contract
owner 0x8da5cb5b → address
Write Contract 2 functions
These functions modify contract state and require a wallet transaction to execute.
sendTip 0x7f5154b4
string message
withdraw 0x3ccfd60b
No parameters
Recent Transactions
No transactions found for this address