Sponsored Link:   Ambrosus Main-Net Launching: Stake AMB in Masternodes and get regular rewards for maintaining network integrity.
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 9 txns
 Latest 9 txns

TxHash Age From To Value [TxFee]
0xd817ee4a9f81076f40dba8f01b2b56091b0fd5e193e83a17cb84921ccfff6b5853 days 22 hrs ago0xc804800e48471c5780538432fc1772e5a1f62161  IN   0xca6e136f87df4ec7d27787bdb79ccd867b4d76690 Ether0.000119568
0xbcd7d66eb9f6da676374cbc472c8803ce1502fef4dfb55d4025f981090f955e258 days 7 hrs ago0xe632a7bd3018246b2c2667e33000652d4bba43a2  IN   0xca6e136f87df4ec7d27787bdb79ccd867b4d76690.001 Ether0.000958034
0x6aa83775ccae1fe50ad86279a24238147701267a1ec3662efdcbb5fba00bc3ce58 days 15 hrs ago0xeb591dfc9ab1514db1dcfd4f8043c388a83144d2  IN   0xca6e136f87df4ec7d27787bdb79ccd867b4d76690.01 Ether0.001309968
0xec2af2528410c830ca6325e264199a623ee27f728bd7bc427349e248d682017558 days 15 hrs ago0xeb591dfc9ab1514db1dcfd4f8043c388a83144d2  IN   0xca6e136f87df4ec7d27787bdb79ccd867b4d76690.001 Ether0.000203875
0x5b9670d638763504cf5f638dbcd9916884efe468300c1a2b97755359e5c9ad9b58 days 15 hrs ago0xeb591dfc9ab1514db1dcfd4f8043c388a83144d2  IN   0xca6e136f87df4ec7d27787bdb79ccd867b4d76690.001 Ether0.00017475
0x2549041a6c1b3df55fdffb198db29d254c343343848d0610e9f8f4c3e4be85a659 days 20 hrs ago0x63a9dbce75413036b2b778e670aabd4493aaf9f3  IN   0xca6e136f87df4ec7d27787bdb79ccd867b4d76690.00001 Ether0.00152502
0xd832ad8afef360688a216e7009bcf574411a10cc4d9f8f5ba396b4362931a5b960 days 13 hrs ago0x4a4c35280bc7e7f426453db48e5faf66f47398b6  IN   0xca6e136f87df4ec7d27787bdb79ccd867b4d76690.002 Ether0.0018162
0xda7d29f4c8ec5cd5029a44c52ee23b843e76fb618e0ba8fe86e498ea640be89a65 days 4 hrs ago0xc804800e48471c5780538432fc1772e5a1f62161  IN   0xca6e136f87df4ec7d27787bdb79ccd867b4d76690.001 Ether0.00062242
0x751dc72634ccd36027ca2157a5c261b394791e1ba4675e50311bc871fcccb5f665 days 5 hrs ago0xc804800e48471c5780538432fc1772e5a1f62161  IN    Contract Creation0 Ether0.0042083
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0xd817ee4a9f81076f40dba8f01b2b56091b0fd5e193e83a17cb84921ccfff6b58567190053 days 22 hrs ago0xca6e136f87df4ec7d27787bdb79ccd867b4d76690xc804800e48471c5780538432fc1772e5a1f621610.01601 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact match)
Contract Name: Ethertag
Compiler Version: v0.4.23+commit.124ca40d
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.23;
contract Ethertag {
    address public owner;
    address public thisContract = this;
    uint public minValue;
    uint public maxTextLength;
    message[] public messages;
    
    struct message {
        string text;
        uint value;
        rgb color;
    }
    
    struct rgb {
        uint8 red;
        uint8 green;
        uint8 blue;
    }
    
    event newMessage(uint id, string text, uint value, uint8 red, uint8 green, uint8 blue);
    event newSupport(uint id, uint value);
    
    constructor() public {
        owner = msg.sender;
        minValue = 10000000000000;
        maxTextLength = 200;
    }
    
    function getMessagesCount() public view returns(uint) {
        return messages.length;
    }

    function getMessage(uint i) public view returns(string text, uint value, uint8 red, uint8 green, uint8 blue) {
        require(i<messages.length);
        return (
            messages[i].text, 
            messages[i].value,
            messages[i].color.red,
            messages[i].color.green,
            messages[i].color.blue
            );
    }
  
    function addMessage(string m, uint8 r, uint8 g, uint8 b) public payable {
        require(msg.value >= minValue);
        require(bytes(m).length <= maxTextLength);
        messages.push(message(m, msg.value, rgb(r,g,b)));
        emit newMessage(
            messages.length-1,
            messages[messages.length-1].text, 
            messages[messages.length-1].value, 
            messages[messages.length-1].color.red,
            messages[messages.length-1].color.green,
            messages[messages.length-1].color.blue
            );
    }
    
    function supportMessage(uint i) public payable {
        messages[i].value += msg.value;
        emit newSupport(i, messages[i].value);
    }
   
    function changeSettings(uint newMaxTextLength, uint newMinValue) public {
        require(msg.sender == owner);
        maxTextLength = newMaxTextLength;
        minValue = newMinValue;
    }
    
    function withdraw() public {
        require(msg.sender == owner);
        msg.sender.transfer(thisContract.balance);
    }
}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"messages","outputs":[{"name":"text","type":"string"},{"name":"value","type":"uint256"},{"components":[{"name":"red","type":"uint8"},{"name":"green","type":"uint8"},{"name":"blue","type":"uint8"}],"name":"color","type":"tuple"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newMaxTextLength","type":"uint256"},{"name":"newMinValue","type":"uint256"}],"name":"changeSettings","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"maxTextLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getMessagesCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"i","type":"uint256"}],"name":"supportMessage","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"i","type":"uint256"}],"name":"getMessage","outputs":[{"name":"text","type":"string"},{"name":"value","type":"uint256"},{"name":"red","type":"uint8"},{"name":"green","type":"uint8"},{"name":"blue","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"thisContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"m","type":"string"},{"name":"r","type":"uint8"},{"name":"g","type":"uint8"},{"name":"b","type":"uint8"}],"name":"addMessage","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"id","type":"uint256"},{"indexed":false,"name":"text","type":"string"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"red","type":"uint8"},{"indexed":false,"name":"green","type":"uint8"},{"indexed":false,"name":"blue","type":"uint8"}],"name":"newMessage","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"id","type":"uint256"},{"indexed":false,"name":"value","type":"uint256"}],"name":"newSupport","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405230600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561005157600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506509184e72a00060028190555060c8600381905550610d5c806100b66000396000f3006080604052600436106100af576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630d80fefd146100b457806336d02c9414610168578063379e00d41461019f5780633ccfd60b146101ca5780633d0c46d0146101e1578063665330141461020c57806386f79edb1461022c578063891e6f43146103005780638da5cb5b14610357578063963e63c7146103ae578063fa4c5dc0146103d9575b600080fd5b3480156100c057600080fd5b506100df6004803603810190808035906020019092919050505061045c565b6040518080602001848152602001838152602001828103825285818151815260200191508051906020019080838360005b8381101561012b578082015181840152602081019050610110565b50505050905090810190601f1680156101585780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b34801561017457600080fd5b5061019d600480360381019080803590602001909291908035906020019092919050505061058f565b005b3480156101ab57600080fd5b506101b46105fc565b6040518082815260200191505060405180910390f35b3480156101d657600080fd5b506101df610602565b005b3480156101ed57600080fd5b506101f66106df565b6040518082815260200191505060405180910390f35b61022a600480360381019080803590602001909291905050506106ec565b005b34801561023857600080fd5b506102576004803603810190808035906020019092919050505061077c565b60405180806020018681526020018560ff1660ff1681526020018460ff1660ff1681526020018360ff1660ff168152602001828103825287818151815260200191508051906020019080838360005b838110156102c15780820151818401526020810190506102a6565b50505050905090810190601f1680156102ee5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b34801561030c57600080fd5b5061031561091a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561036357600080fd5b5061036c610940565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103ba57600080fd5b506103c3610965565b6040518082815260200191505060405180910390f35b61045a600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff169060200190929190803560ff169060200190929190803560ff16906020019092919050505061096b565b005b60048181548110151561046b57fe5b9060005260206000209060030201600091509050806000018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105175780601f106104ec57610100808354040283529160200191610517565b820191906000526020600020905b8154815290600101906020018083116104fa57829003601f168201915b50505050509080600101549080600201606060405190810160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff1660ff1660ff1681526020016000820160029054906101000a900460ff1660ff1660ff1681525050905083565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156105ea57600080fd5b81600381905550806002819055505050565b60035481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561065d57600080fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f193505050501580156106dc573d6000803e3d6000fd5b50565b6000600480549050905090565b346004828154811015156106fc57fe5b9060005260206000209060030201600101600082825401925050819055507f456f1de73fdb13a0cdf58fc5f485bd6289e592a9dfe28bc50d51afd903d117748160048381548110151561074b57fe5b906000526020600020906003020160010154604051808381526020018281526020019250505060405180910390a150565b60606000806000806004805490508610151561079757600080fd5b6004868154811015156107a657fe5b90600052602060002090600302016000016004878154811015156107c657fe5b9060005260206000209060030201600101546004888154811015156107e757fe5b906000526020600020906003020160020160000160009054906101000a900460ff1660048981548110151561081857fe5b906000526020600020906003020160020160000160019054906101000a900460ff1660048a81548110151561084957fe5b906000526020600020906003020160020160000160029054906101000a900460ff16848054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109005780601f106108d557610100808354040283529160200191610900565b820191906000526020600020905b8154815290600101906020018083116108e357829003601f168201915b505050505094509450945094509450945091939590929450565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60025481565b600254341015151561097c57600080fd5b60035484511115151561098e57600080fd5b60046060604051908101604052808681526020013481526020016060604051908101604052808760ff1681526020018660ff1681526020018560ff16815250815250908060018154018082558091505090600182039060005260206000209060030201600090919290919091506000820151816000019080519060200190610a17929190610c8b565b506020820151816001015560408201518160020160008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff16021790555060408201518160000160026101000a81548160ff021916908360ff16021790555050505050507f925fe5a5879b91e14d1bfd37bebe01e35a51f59cac1754fdc1c334b9d24601d66001600480549050036004600160048054905003815481101515610ad457fe5b90600052602060002090600302016000016004600160048054905003815481101515610afc57fe5b9060005260206000209060030201600101546004600160048054905003815481101515610b2557fe5b906000526020600020906003020160020160000160009054906101000a900460ff166004600160048054905003815481101515610b5e57fe5b906000526020600020906003020160020160000160019054906101000a900460ff166004600160048054905003815481101515610b9757fe5b906000526020600020906003020160020160000160029054906101000a900460ff1660405180878152602001806020018681526020018560ff1660ff1681526020018460ff1660ff1681526020018360ff1660ff168152602001828103825287818154600181600116156101000203166002900481526020019150805460018160011615610100020316600290048015610c725780601f10610c4757610100808354040283529160200191610c72565b820191906000526020600020905b815481529060010190602001808311610c5557829003601f168201915b505097505050505050505060405180910390a150505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610ccc57805160ff1916838001178555610cfa565b82800160010185558215610cfa579182015b82811115610cf9578251825591602001919060010190610cde565b5b509050610d079190610d0b565b5090565b610d2d91905b80821115610d29576000816000905550600101610d11565b5090565b905600a165627a7a7230582053e45927361834d293b0947e8d7393e56f1809930ac24b67b93b3888db03c1550029

   Swarm Source:
bzzr://53e45927361834d293b0947e8d7393e56f1809930ac24b67b93b3888db03c155

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.