Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 43 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Caller | 1539590 | 3588 days ago | IN | 0 ETH | 0.00056344 | ||||
| Set Owner | 1539416 | 3588 days ago | IN | 0 ETH | 0.00056164 | ||||
| Set Caller | 1454208 | 3602 days ago | IN | 0 ETH | 0.00056344 | ||||
| Set Caller | 1190966 | 3646 days ago | IN | 0 ETH | 0.00056216 | ||||
| Set Owner | 935837 | 3695 days ago | IN | 0 ETH | 0.0014041 | ||||
| Set Caller | 696560 | 3743 days ago | IN | 0 ETH | 0.00142095 | ||||
| Set Caller | 696552 | 3743 days ago | IN | 0 ETH | 0.00153898 | ||||
| Set Caller | 696543 | 3743 days ago | IN | 0 ETH | 0.0014086 | ||||
| Set Caller | 696523 | 3743 days ago | IN | 0 ETH | 0.0014086 | ||||
| Deposit | 696520 | 3743 days ago | IN | 0 ETH | 0.0023222 | ||||
| Set Caller | 696517 | 3743 days ago | IN | 0 ETH | 0.0014086 | ||||
| Set Caller | 690391 | 3744 days ago | IN | 0 ETH | 0.0014086 | ||||
| Deposit | 690389 | 3744 days ago | IN | 0 ETH | 0.0023158 | ||||
| Set Caller | 690387 | 3744 days ago | IN | 0 ETH | 0.0014086 | ||||
| Set Caller | 687962 | 3745 days ago | IN | 0 ETH | 0.0014086 | ||||
| Deposit | 687945 | 3745 days ago | IN | 0 ETH | 0.0015658 | ||||
| Deposit | 687943 | 3745 days ago | IN | 0 ETH | 0.0023158 | ||||
| Withdraw | 687925 | 3745 days ago | IN | 0 ETH | 0.00116895 | ||||
| Set Caller | 687923 | 3745 days ago | IN | 0 ETH | 0.0014086 | ||||
| Set Caller | 687906 | 3745 days ago | IN | 0 ETH | 0.00156594 | ||||
| Set Caller | 687895 | 3745 days ago | IN | 0 ETH | 0.0014086 | ||||
| Set Caller | 687804 | 3745 days ago | IN | 0 ETH | 0.0014086 | ||||
| Set Caller | 687771 | 3745 days ago | IN | 0 ETH | 0.0014086 | ||||
| Set Caller | 687751 | 3745 days ago | IN | 0 ETH | 0.00152753 | ||||
| Set Caller | 687734 | 3745 days ago | IN | 0 ETH | 0.00159746 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ElcoinDb
Compiler Version
v0.2.0-2015-12-10-e709895
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2016-05-09
*/
contract ElcoinDb {
address owner;
address caller;
event Transaction(bytes32 indexed hash, address indexed from, address indexed to, uint time, uint amount);
modifier checkOwner() { if(msg.sender == owner) { _ } else { return; } }
modifier checkCaller() { if(msg.sender == caller) { _ } else { return; } }
mapping (address => uint) public balances;
function ElcoinDb(address pCaller) {
owner = msg.sender;
caller = pCaller;
}
function getOwner() constant returns (address rv) {
return owner;
}
function getCaller() constant returns (address rv) {
return caller;
}
function setCaller(address pCaller) checkOwner() returns (bool _success) {
caller = pCaller;
return true;
}
function setOwner(address pOwner) checkOwner() returns (bool _success) {
owner = pOwner;
return true;
}
function getBalance(address addr) constant returns(uint balance) {
return balances[addr];
}
function deposit(address addr, uint amount, bytes32 hash, uint time) checkCaller() returns (bool res) {
balances[addr] += amount;
Transaction(hash,0 , addr, time, amount);
return true;
}
function withdraw(address addr, uint amount, bytes32 hash, uint time) checkCaller() returns (bool res) {
uint oldBalance = balances[addr];
if(oldBalance >= amount) {
msg.sender.send(amount);
balances[addr] = oldBalance - amount;
Transaction(hash, addr, 0, time, amount);
return true;
}
return false;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"amount","type":"uint256"},{"name":"hash","type":"bytes32"},{"name":"time","type":"uint256"}],"name":"withdraw","outputs":[{"name":"res","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"pOwner","type":"address"}],"name":"setOwner","outputs":[{"name":"_success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"getOwner","outputs":[{"name":"rv","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"getCaller","outputs":[{"name":"rv","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"pCaller","type":"address"}],"name":"setCaller","outputs":[{"name":"_success","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"amount","type":"uint256"},{"name":"hash","type":"bytes32"},{"name":"time","type":"uint256"}],"name":"deposit","outputs":[{"name":"res","type":"bool"}],"type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"getBalance","outputs":[{"name":"balance","type":"uint256"}],"type":"function"},{"inputs":[{"name":"pCaller","type":"address"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"time","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Transaction","type":"event"}]Contract Creation Code
606060405260405160208061031a83395060806040525160008054600160a060020a031990811633179091556001805490911682179055506102d5806100456000396000f36060604052361561006c5760e060020a600035046307bc6fad811461006e57806313af40351461013c57806327e235e31461017f578063893d20e814610197578063ab470f05146101aa578063beb92f55146101be578063ec2ac54e14610202578063f8b2cb4f14610286575b005b6102ab600435602435604435606435600154600090819033600160a060020a03908116911614156101335750600160a060020a0385168152600260205260408120548481106101335733600160a060020a03168286606082818181858883f15050604091829020600160a060020a038a168087526002602090815292860390915582518781529182018990528251869450909288927fea0f544916910bb1ff33390cbe54a3f5d36d298328578399311cde3c9a750686929081900390910190a4600191505b50949350505050565b6102ab60043560008054600160a060020a039081163390911614156102d057805473ffffffffffffffffffffffffffffffffffffffff19168217905560016102a6565b6102ab60043560026020526000908152604090205481565b6102bd600054600160a060020a03165b90565b6102bd600154600160a060020a03166101a7565b6102ab60043560008054600160a060020a039081163390911614156102d057506001805473ffffffffffffffffffffffffffffffffffffffff1916821781556102a6565b6102ab60043560243560443560643560015460009033600160a060020a039081169116141561027e57600160a060020a0385168082526002602052604080832080548701905560608481526080879052839186917fea0f544916910bb1ff33390cbe54a3f5d36d298328578399311cde3c9a7506869190a45060015b949350505050565b6102ab600435600160a060020a0381166000908152600260205260409020545b919050565b60408051918252519081900360200190f35b600160a060020a03166060908152602090f35b6102a656
Deployed Bytecode
0x6060604052361561006c5760e060020a600035046307bc6fad811461006e57806313af40351461013c57806327e235e31461017f578063893d20e814610197578063ab470f05146101aa578063beb92f55146101be578063ec2ac54e14610202578063f8b2cb4f14610286575b005b6102ab600435602435604435606435600154600090819033600160a060020a03908116911614156101335750600160a060020a0385168152600260205260408120548481106101335733600160a060020a03168286606082818181858883f15050604091829020600160a060020a038a168087526002602090815292860390915582518781529182018990528251869450909288927fea0f544916910bb1ff33390cbe54a3f5d36d298328578399311cde3c9a750686929081900390910190a4600191505b50949350505050565b6102ab60043560008054600160a060020a039081163390911614156102d057805473ffffffffffffffffffffffffffffffffffffffff19168217905560016102a6565b6102ab60043560026020526000908152604090205481565b6102bd600054600160a060020a03165b90565b6102bd600154600160a060020a03166101a7565b6102ab60043560008054600160a060020a039081163390911614156102d057506001805473ffffffffffffffffffffffffffffffffffffffff1916821781556102a6565b6102ab60043560243560443560643560015460009033600160a060020a039081169116141561027e57600160a060020a0385168082526002602052604080832080548701905560608481526080879052839186917fea0f544916910bb1ff33390cbe54a3f5d36d298328578399311cde3c9a7506869190a45060015b949350505050565b6102ab600435600160a060020a0381166000908152600260205260409020545b919050565b60408051918252519081900360200190f35b600160a060020a03166060908152602090f35b6102a656
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.