ETH Price: $2,535.09 (+4.19%)

Contract

0x19AbA76AFa8Ac7b50b17D72ea0Adc5ef9b4D4b85
 

Overview

ETH Balance

0.00718591 ETH

Eth Value

$18.22 (@ $2,535.09/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer83587222019-08-16 2:07:191862 days ago1565921239IN
0x19AbA76A...f9b4D4b85
0.01 ETH0.0000211

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
83603092019-08-16 8:02:371862 days ago1565942557
0x19AbA76A...f9b4D4b85
0.00086409 ETH
83593972019-08-16 4:44:121862 days ago1565930652
0x19AbA76A...f9b4D4b85
0.00195 ETH
83593972019-08-16 4:44:121862 days ago1565930652  Contract Creation0 ETH
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x2c2EC514...6Ce87834F
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Account

Compiler Version
v0.5.10+commit.5a6ea5b1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2019-08-16
*/

pragma solidity ^0.5.10;

contract AbstractAccount {

  event DeviceAdded(address device, bool isOwner);
  event DeviceRemoved(address device);
  event TransactionExecuted(address recipient, uint256 value, bytes data, bytes response);

  struct Device {
    bool isOwner;
    bool exists;
    bool existed;
  }

  mapping(address => Device) public devices;

  function addDevice(address _device, bool _isOwner) public;

  function removeDevice(address _device) public;

  function executeTransaction(address payable _recipient, uint256 _value, bytes memory _data) public returns (bytes memory _response);
}



/**
 * @title Account
 */
contract Account is AbstractAccount {

  modifier onlyOwner() {
    require(
      devices[msg.sender].isOwner
    );

    _;
  }

  constructor() public {
    devices[msg.sender].isOwner = true;
    devices[msg.sender].exists = true;
    devices[msg.sender].existed = true;
  }

  function() external payable {
    //
  }

  function addDevice(address _device, bool _isOwner) onlyOwner public {
    require(
      _device != address(0)
    );
    require(
      !devices[_device].exists
    );

    devices[_device].isOwner = _isOwner;
    devices[_device].exists = true;
    devices[_device].existed = true;

    emit DeviceAdded(_device, _isOwner);
  }

  function removeDevice(address _device) onlyOwner public {
    require(
      devices[_device].exists
    );

    devices[_device].isOwner = false;
    devices[_device].exists = false;

    emit DeviceRemoved(_device);
  }

  function executeTransaction(address payable _recipient, uint256 _value, bytes memory _data) onlyOwner public returns (bytes memory _response) {
    require(
      _recipient != address(0)
    );

    bool _succeeded;
    (_succeeded, _response) = _recipient.call.value(_value)(_data);

    require(
      _succeeded
    );

    emit TransactionExecuted(_recipient, _value, _data, _response);
  }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_device","type":"address"}],"name":"removeDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_recipient","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"executeTransaction","outputs":[{"name":"_response","type":"bytes"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_device","type":"address"},{"name":"_isOwner","type":"bool"}],"name":"addDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"devices","outputs":[{"name":"isOwner","type":"bool"},{"name":"exists","type":"bool"},{"name":"existed","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"device","type":"address"},{"indexed":false,"name":"isOwner","type":"bool"}],"name":"DeviceAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"device","type":"address"}],"name":"DeviceRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"recipient","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"data","type":"bytes"},{"indexed":false,"name":"response","type":"bytes"}],"name":"TransactionExecuted","type":"event"}]

Deployed Bytecode

0x60806040526004361061003f5760003560e01c80631f7b6324146100415780633f579f4214610074578063811d54dc146101b1578063e7b4cac6146101ec575b005b34801561004d57600080fd5b5061003f6004803603602081101561006457600080fd5b50356001600160a01b0316610241565b34801561008057600080fd5b5061013c6004803603606081101561009757600080fd5b6001600160a01b03823516916020810135918101906060810160408201356401000000008111156100c757600080fd5b8201836020820111156100d957600080fd5b803590602001918460018302840111640100000000831117156100fb57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506102de945050505050565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017657818101518382015260200161015e565b50505050905090810190601f1680156101a35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101bd57600080fd5b5061003f600480360360408110156101d457600080fd5b506001600160a01b03813516906020013515156104ed565b3480156101f857600080fd5b5061021f6004803603602081101561020f57600080fd5b50356001600160a01b03166105be565b6040805193151584529115156020840152151582820152519081900360600190f35b3360009081526020819052604090205460ff1661025d57600080fd5b6001600160a01b038116600090815260208190526040902054610100900460ff1661028757600080fd5b6001600160a01b03811660008181526020818152604091829020805461ffff19169055815192835290517f15c62ec158a6c18af42b447791266b9b0764ba2a6df610890d4da85c3d4185db9281900390910190a150565b3360009081526020819052604090205460609060ff166102fd57600080fd5b6001600160a01b03841661031057600080fd5b6000846001600160a01b031684846040518082805190602001908083835b6020831061034d5780518252601f19909201916020918201910161032e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146103af576040519150601f19603f3d011682016040523d82523d6000602084013e6103b4565b606091505b5092509050806103c357600080fd5b7f012ae8711b8dc37e405d8e422569d1ee78d52d76bc8fe2a9ea81ffe17569e51a8585858560405180856001600160a01b03166001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561044757818101518382015260200161042f565b50505050905090810190601f1680156104745780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156104a757818101518382015260200161048f565b50505050905090810190601f1680156104d45780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a1509392505050565b3360009081526020819052604090205460ff1661050957600080fd5b6001600160a01b03821661051c57600080fd5b6001600160a01b038216600090815260208190526040902054610100900460ff161561054757600080fd5b6001600160a01b03821660008181526020818152604091829020805462ff00001961ff001987151560ff199093168317166101001716620100001790915582519384529083015280517f3525178f8d4a5c0dc1e61a0ede8d6a7a9ea67a23ec515983bbb940be4b4196509281900390910190a15050565b60006020819052908152604090205460ff80821691610100810482169162010000909104168356fea265627a7a72305820e14f95bd455a8016ef9d3429468ca1d08ebf4209ca7126aedd976554789e4dc064736f6c634300050a0032

Deployed Bytecode Sourcemap

664:1341:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1358:230;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1358:230:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1358:230:0;-1:-1:-1;;;;;1358:230:0;;:::i;1594:408::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1594:408:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;1594:408:0;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;1594:408:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1594:408:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;1594:408:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;1594:408:0;;-1:-1:-1;1594:408:0;;-1:-1:-1;;;;;1594:408:0:i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1594:408:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1010:342;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1010:342:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1010:342:0;;;;;;;;;;:::i;328:41::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;328:41:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;328:41:0;-1:-1:-1;;;;;328:41:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1358:230;759:10;751:7;:19;;;;;;;;;;:27;;;735:50;;;;;;-1:-1:-1;;;;;1437:16:0;;:7;:16;;;;;;;;;;:23;;;;;;1421:46;;;;;;-1:-1:-1;;;;;1476:16:0;;1503:5;1476:16;;;;;;;;;;;;:32;;-1:-1:-1;;1515:31:0;;;1560:22;;;;;;;;;;;;;;;;;1358:230;:::o;1594:408::-;759:10;751:7;:19;;;;;;;;;;:27;1712:22;;751:27;;735:50;;;;;;-1:-1:-1;;;;;1759:24:0;;1743:47;;;;;;1799:15;1847:10;-1:-1:-1;;;;;1847:15:0;1869:6;1877:5;1847:36;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1847:36:0;;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;1821:62:0;-1:-1:-1;1821:62:0;-1:-1:-1;1821:62:0;1892:33;;;;;;1939:57;1959:10;1971:6;1979:5;1986:9;1939:57;;;;-1:-1:-1;;;;;1939:57:0;-1:-1:-1;;;;;1939:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1939:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1939:57:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1939:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;794:1;1594:408;;;;;:::o;1010:342::-;759:10;751:7;:19;;;;;;;;;;:27;;;735:50;;;;;;-1:-1:-1;;;;;1101:21:0;;1085:44;;;;;;-1:-1:-1;;;;;1153:16:0;;:7;:16;;;;;;;;;;:23;;;;;;1152:24;1136:47;;;;;;-1:-1:-1;;;;;1192:16:0;;:7;:16;;;;;;;;;;;;:35;;-1:-1:-1;;;;1192:35:0;;;-1:-1:-1;;1192:35:0;;;;;1234:30;1192:35;1234:30;1271:31;;;;;;1316:30;;;;;;;;;;;;;;;;;;;;;1010:342;;:::o;328:41::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

bzzr://e14f95bd455a8016ef9d3429468ca1d08ebf4209ca7126aedd976554789e4dc0

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.