Overview ERC20
PRICE
n/a

ON-CHAIN MARKET CAP n/a

Total Supply:
500,000.00 SPC

Holders:
8
Profile Summary
Blockchain:
Sepolia (11155111)


Decimals:
18
Contract Source Code Verified (Partial Match)
Contract Name:
SpaceCoin

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Created At:
Thu, 09 Mar 2023 22:17:00 GMT
SpaceCoin.sol
contracts
SpaceCoin.sol


Contract ABI
[
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_owner",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "_treasury",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "_ico",
        "type": "address"
      }
    ],
    "stateMutability": "nonpayable",
    "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": false,
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "name": "TaxToggled",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": false,
        "internalType": "address",
        "name": "",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "name": "TokenTransferred",
    "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"
  },
  {
    "inputs": [],
    "name": "INITIAL_SUPPLY",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "MAX_TOTAL_SUPPLY",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "OWNER",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "TAX_RATE",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "TREASURY",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "owner",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "spender",
        "type": "address"
      }
    ],
    "name": "allowance",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "spender",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "approve",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "account",
        "type": "address"
      }
    ],
    "name": "balanceOf",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "decimals",
    "outputs": [
      {
        "internalType": "uint8",
        "name": "",
        "type": "uint8"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "spender",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "subtractedValue",
        "type": "uint256"
      }
    ],
    "name": "decreaseAllowance",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "spender",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "addedValue",
        "type": "uint256"
      }
    ],
    "name": "increaseAllowance",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "name",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "symbol",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "taxEnabled",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "toggleTax",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "totalSupply",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "transfer",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "from",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "transferFrom",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  }
]


Contract Creation Code
6101206040526207a12060c052620249f060e0526002610100523480156200002657600080fd5b506040516200101a3803806200101a8339810160408190526200004991620001fe565b6040518060400160405280600981526020016829b830b1b2a1b7b4b760b91b8152506040518060400160405280600381526020016253504360e81b8152508160039081620000989190620002ec565b506004620000a78282620002ec565b5050506001600160a01b03808316608052831660a05260e05160c051620000f0918491620000d69190620003ce565b620000ea90670de0b6b3a7640000620003ea565b62000116565b6200010d8160e051670de0b6b3a7640000620000ea9190620003ea565b5050506200041a565b6001600160a01b038216620001715760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b806002600082825462000185919062000404565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b80516001600160a01b0381168114620001f957600080fd5b919050565b6000806000606084860312156200021457600080fd5b6200021f84620001e1565b92506200022f60208501620001e1565b91506200023f60408501620001e1565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200027357607f821691505b6020821081036200029457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001dc57600081815260208120601f850160051c81016020861015620002c35750805b601f850160051c820191505b81811015620002e457828155600101620002cf565b505050505050565b81516001600160401b0381111562000308576200030862000248565b62000320816200031984546200025e565b846200029a565b602080601f8311600181146200035857600084156200033f5750858301515b600019600386901b1c1916600185901b178555620002e4565b600085815260208120601f198616915b82811015620003895788860151825594840194600190910190840162000368565b5085821015620003a85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b81810381811115620003e457620003e4620003b8565b92915050565b8082028115828204841417620003e457620003e4620003b8565b80820180821115620003e457620003e4620003b8565b60805160a05160c05160e05161010051610ba6620004746000396000818161028f0152610732015260006101f60152600061022c01526000818161016b01526103b60152600081816101cf01526107750152610ba66000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806333039d3d116100a2578063870bd30b11610071578063870bd30b146102b157806395d89b41146102be578063a457c2d7146102c6578063a9059cbb146102d9578063dd62ed3e146102ec57600080fd5b806333039d3d14610227578063395093511461024e57806370a082311461026157806383f170be1461028a57600080fd5b806318160ddd116100e957806318160ddd146101a557806323b872dd146101b75780632d2c5565146101ca5780632ff2e9dc146101f1578063313ce5671461021857600080fd5b806306fdde031461011b578063095ea7b31461013957806310bf60291461015c578063117803e314610166575b600080fd5b6101236102ff565b604051610130919061099c565b60405180910390f35b61014c610147366004610a06565b610391565b6040519015158152602001610130565b6101646103ab565b005b61018d7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610130565b6002545b604051908152602001610130565b61014c6101c5366004610a30565b610475565b61018d7f000000000000000000000000000000000000000000000000000000000000000081565b6101a97f000000000000000000000000000000000000000000000000000000000000000081565b60405160128152602001610130565b6101a97f000000000000000000000000000000000000000000000000000000000000000081565b61014c61025c366004610a06565b610499565b6101a961026f366004610a6c565b6001600160a01b031660009081526020819052604090205490565b6101a97f000000000000000000000000000000000000000000000000000000000000000081565b60055461014c9060ff1681565b6101236104bb565b61014c6102d4366004610a06565b6104ca565b61014c6102e7366004610a06565b610545565b6101a96102fa366004610a8e565b610553565b60606003805461030e90610ac1565b80601f016020809104026020016040519081016040528092919081815260200182805461033a90610ac1565b80156103875780601f1061035c57610100808354040283529160200191610387565b820191906000526020600020905b81548152906001019060200180831161036a57829003601f168201915b5050505050905090565b60003361039f81858561057e565b60019150505b92915050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104285760405162461bcd60e51b815260206004820152601960248201527f4f6e6c7920746865206f776e657220697320616c6c6f7765640000000000000060448201526064015b60405180910390fd5b6005805460ff8082161560ff1990921682179092556040519116151581527f6ca1ba8a157ffe308e5b186e91402d973f9a8ebc03723a37423137f74173b5c79060200160405180910390a1565b6000336104838582856106a2565b61048e85858561071c565b506001949350505050565b60003361039f8185856104ac8383610553565b6104b69190610b11565b61057e565b60606004805461030e90610ac1565b600033816104d88286610553565b9050838110156105385760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161041f565b61048e828686840361057e565b60003361039f81858561071c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166105e05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161041f565b6001600160a01b0382166106415760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161041f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006106ae8484610553565b9050600019811461071657818110156107095760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161041f565b610716848484840361057e565b50505050565b600554819060ff161561079c57600060646107577f000000000000000000000000000000000000000000000000000000000000000085610b24565b6107619190610b3b565b905061076d8183610b5d565b915061079a857f0000000000000000000000000000000000000000000000000000000000000000836107f8565b505b6107a78484836107f8565b604080516001600160a01b038087168252851660208201529081018290527f9c8515990fd8c61431c4ac8db9b81475f90c292a1dda77731e56c22e64fc76439060600160405180910390a150505050565b6001600160a01b03831661085c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161041f565b6001600160a01b0382166108be5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161041f565b6001600160a01b038316600090815260208190526040902054818110156109365760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161041f565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610716565b600060208083528351808285015260005b818110156109c9578581018301518582016040015282016109ad565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610a0157600080fd5b919050565b60008060408385031215610a1957600080fd5b610a22836109ea565b946020939093013593505050565b600080600060608486031215610a4557600080fd5b610a4e846109ea565b9250610a5c602085016109ea565b9150604084013590509250925092565b600060208284031215610a7e57600080fd5b610a87826109ea565b9392505050565b60008060408385031215610aa157600080fd5b610aaa836109ea565b9150610ab8602084016109ea565b90509250929050565b600181811c90821680610ad557607f821691505b602082108103610af557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156103a5576103a5610afb565b80820281158282048414176103a5576103a5610afb565b600082610b5857634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156103a5576103a5610afb56fea2646970667358221220ac2f48e578042461ad40a645e638ad7ddfa2656b2b457ed69efe289062ead23a64736f6c6343000811003300000000000000000000000008b08b3b5e39b9735816490674f6bb17aff8bd93000000000000000000000000b451728178341a0a7053b162c9525731877a3655000000000000000000000000dbaf8739133b5c7d429d14c190fdbf15d7be93e4