ERC-20
Source Code
Overview
Max Total Supply
10,000,000 XDRAC
Holders
39
Transfers
-
0
Market
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 6 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
XDRAC
Compiler Version
v0.4.8+commit.60cc1668
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2017-03-10
*/
pragma solidity 0.4.8;
contract tokenSpender { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); }
contract XDRAC {
/* Public variables of the token */
string public name;
string public symbol;
uint8 public decimals;
uint256 public initialSupply;
/* This creates an array with all balances */
mapping (address => uint) public balanceOf;
mapping (address => mapping (address => uint)) public allowance;
/* This generates a public event on the blockchain that will notify clients */
event Transfer(address indexed from, address indexed to, uint value);
event Approval(address indexed from, address indexed spender, uint value);
/* Initializes contract with initial supply tokens to the creator of the contract */
function XDRAC() {
initialSupply = 10000000000000;
balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens
name = 'DracShares'; // Set the name for display purposes
symbol = 'XDRAC'; // Set the symbol for display purposes
decimals = 6; // Amount of decimals for display purposes
}
function totalSupply() returns(uint){
return initialSupply ;
}
/* Send coins */
function transfer(address _to, uint256 _value)
returns (bool success) {
if (balanceOf[msg.sender] >= _value && _value > 0) {
balanceOf[msg.sender] -= _value;
balanceOf[_to] += _value;
Transfer(msg.sender, _to, _value);
return true;
} else return false;
}
/* Allow another contract to spend some tokens in your behalf */
function approveAndCall(address _spender,
uint256 _value,
bytes _extraData)
returns (bool success) {
allowance[msg.sender][_spender] = _value;
tokenSpender spender = tokenSpender(_spender);
spender.receiveApproval(msg.sender, _value, this, _extraData);
Approval(msg.sender, _spender, _value);
return true;
}
/*Allow another adress to use your money but doesn't notify it*/
function approve(address _spender, uint256 _value) returns (bool success) {
allowance[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
/* A contract attempts to get the coins */
function transferFrom(address _from,
address _to,
uint256 _value)
returns (bool success) {
if (balanceOf[_from] >= _value && allowance[_from][msg.sender] >= _value && _value > 0) {
balanceOf[_to] += _value;
Transfer(_from, _to, _value);
balanceOf[_from] -= _value;
allowance[_from][msg.sender] -= _value;
return true;
} else return false;
}
/* This unnamed function is called whenever someone tries to send ether to it */
function () {
throw; // Prevents accidental sending of ether
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"initialSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":false,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]Contract Creation Code
606060405234610000575b6509184e72a000600381905533600160a060020a03166000908152600460209081526040808320939093558251808401909352600a8084527f447261635368617265730000000000000000000000000000000000000000000093820193845282548380528451601460ff1990911617845592937f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56360026001861615610100026000190190951694909404601f019290920483019290916100f2565b828001600101855582156100f2579182015b828111156100f25782518255916020019190600101906100d7565b5b506101139291505b8082111561010f57600081556001016100fb565b5090565b50506040805180820190915260058082527f584452414300000000000000000000000000000000000000000000000000000060209283019081526001805460008290528251600a60ff1990911617825590937fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6600283871615610100026000190190931692909204601f0104810192916101d5565b828001600101855582156101d5579182015b828111156101d55782518255916020019190600101906101ba565b5b506101f69291505b8082111561010f57600081556001016100fb565b5090565b50506002805460ff191660061790555b5b6108a0806102166000396000f300606060405236156100935763ffffffff60e060020a60003504166306fdde0381146100a5578063095ea7b31461013257806318160ddd1461016257806323b872dd14610181578063313ce567146101b7578063378dc3dc146101da57806370a08231146101f957806395d89b4114610224578063a9059cbb146102b1578063cae9ca51146102e1578063dd62ed3e14610355575b34610000576100a35b610000565b565b005b34610000576100b2610386565b6040805160208082528351818301528351919283929083019185019080838382156100f8575b8051825260208311156100f857601f1990920191602091820191016100d8565b505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b346100005761014e600160a060020a0360043516602435610414565b604080519115158252519081900360200190f35b346100005761016f61047f565b60408051918252519081900360200190f35b346100005761014e600160a060020a0360043581169060243516604435610486565b604080519115158252519081900360200190f35b34610000576101c461058f565b6040805160ff9092168252519081900360200190f35b346100005761016f610598565b60408051918252519081900360200190f35b346100005761016f600160a060020a036004351661059e565b60408051918252519081900360200190f35b34610000576100b26105b0565b6040805160208082528351818301528351919283929083019185019080838382156100f8575b8051825260208311156100f857601f1990920191602091820191016100d8565b505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b346100005761014e600160a060020a036004351660243561063d565b604080519115158252519081900360200190f35b3461000057604080516020600460443581810135601f810184900484028501840190955284845261014e948235600160a060020a03169460248035956064949293919092019181908401838280828437509496506106e995505050505050565b604080519115158252519081900360200190f35b346100005761016f600160a060020a0360043581169060243516610857565b60408051918252519081900360200190f35b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561040c5780601f106103e15761010080835404028352916020019161040c565b820191906000526020600020905b8154815290600101906020018083116103ef57829003601f168201915b505050505081565b600160a060020a03338116600081815260056020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b6003545b90565b600160a060020a0383166000908152600460205260408120548290108015906104d65750600160a060020a0380851660009081526005602090815260408083203390941683529290522054829010155b80156104e25750600082115b1561058357600160a060020a038084166000818152600460209081526040918290208054870190558151868152915192938816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600160a060020a038084166000908152600460209081526040808320805486900390556005825280832033909416835292905220805482900390556001610587565b5060005b5b9392505050565b60025460ff1681565b60035481565b60046020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561040c5780601f106103e15761010080835404028352916020019161040c565b820191906000526020600020905b8154815290600101906020018083116103ef57829003601f168201915b505050505081565b600160a060020a0333166000908152600460205260408120548290108015906106665750600082115b156106da57600160a060020a03338116600081815260046020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3506001610479565b506000610479565b5b92915050565b33600160a060020a03818116600081815260056020908152604080832089861680855290835281842089905590517f8f4ffcb1000000000000000000000000000000000000000000000000000000008152600481019485526024810189905230958616604482015260806064820190815288516084830152885194978b979396638f4ffcb19691958c95948c94929360a49091019185019080838382156107ab575b8051825260208311156107ab57601f19909201916020918201910161078b565b505050905090810190601f1680156107d75780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b156100005760325a03f1156100005750505084600160a060020a031633600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925866040518082815260200191505060405180910390a3600191505b509392505050565b6005602090815260009283526040808420909152908252902054815600a165627a7a7230582018caa334ca9184f3b4c73cd76a679de870b22cef2039dae898114ac9bc9258c60029
Deployed Bytecode
0x606060405236156100935763ffffffff60e060020a60003504166306fdde0381146100a5578063095ea7b31461013257806318160ddd1461016257806323b872dd14610181578063313ce567146101b7578063378dc3dc146101da57806370a08231146101f957806395d89b4114610224578063a9059cbb146102b1578063cae9ca51146102e1578063dd62ed3e14610355575b34610000576100a35b610000565b565b005b34610000576100b2610386565b6040805160208082528351818301528351919283929083019185019080838382156100f8575b8051825260208311156100f857601f1990920191602091820191016100d8565b505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b346100005761014e600160a060020a0360043516602435610414565b604080519115158252519081900360200190f35b346100005761016f61047f565b60408051918252519081900360200190f35b346100005761014e600160a060020a0360043581169060243516604435610486565b604080519115158252519081900360200190f35b34610000576101c461058f565b6040805160ff9092168252519081900360200190f35b346100005761016f610598565b60408051918252519081900360200190f35b346100005761016f600160a060020a036004351661059e565b60408051918252519081900360200190f35b34610000576100b26105b0565b6040805160208082528351818301528351919283929083019185019080838382156100f8575b8051825260208311156100f857601f1990920191602091820191016100d8565b505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b346100005761014e600160a060020a036004351660243561063d565b604080519115158252519081900360200190f35b3461000057604080516020600460443581810135601f810184900484028501840190955284845261014e948235600160a060020a03169460248035956064949293919092019181908401838280828437509496506106e995505050505050565b604080519115158252519081900360200190f35b346100005761016f600160a060020a0360043581169060243516610857565b60408051918252519081900360200190f35b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561040c5780601f106103e15761010080835404028352916020019161040c565b820191906000526020600020905b8154815290600101906020018083116103ef57829003601f168201915b505050505081565b600160a060020a03338116600081815260056020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b6003545b90565b600160a060020a0383166000908152600460205260408120548290108015906104d65750600160a060020a0380851660009081526005602090815260408083203390941683529290522054829010155b80156104e25750600082115b1561058357600160a060020a038084166000818152600460209081526040918290208054870190558151868152915192938816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600160a060020a038084166000908152600460209081526040808320805486900390556005825280832033909416835292905220805482900390556001610587565b5060005b5b9392505050565b60025460ff1681565b60035481565b60046020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561040c5780601f106103e15761010080835404028352916020019161040c565b820191906000526020600020905b8154815290600101906020018083116103ef57829003601f168201915b505050505081565b600160a060020a0333166000908152600460205260408120548290108015906106665750600082115b156106da57600160a060020a03338116600081815260046020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3506001610479565b506000610479565b5b92915050565b33600160a060020a03818116600081815260056020908152604080832089861680855290835281842089905590517f8f4ffcb1000000000000000000000000000000000000000000000000000000008152600481019485526024810189905230958616604482015260806064820190815288516084830152885194978b979396638f4ffcb19691958c95948c94929360a49091019185019080838382156107ab575b8051825260208311156107ab57601f19909201916020918201910161078b565b505050905090810190601f1680156107d75780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b156100005760325a03f1156100005750505084600160a060020a031633600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925866040518082815260200191505060405180910390a3600191505b509392505050565b6005602090815260009283526040808420909152908252902054815600a165627a7a7230582018caa334ca9184f3b4c73cd76a679de870b22cef2039dae898114ac9bc9258c60029
Swarm Source
bzzr://18caa334ca9184f3b4c73cd76a679de870b22cef2039dae898114ac9bc9258c6
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.
Add Token to MetaMask (Web3)