Skip to content
Verified contractExactMIT

RealEstateToken

Address0xf2eb76c8a622e748cdf22c24c44a820cb4360ff2
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.31

 

Same code

1 more contract

 

Details

Compiler
solc 0.8.31+commit.fd3a2265
Language
solidity
Optimization
No
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
24,651,346
Creation transaction
0xfb1a20721c…20f6c184a3
Main copy (most transactions)
0xc9b5debb…275e25b6

RealEstateToken.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

contract RealEstateToken {

    string public name = "Real Estate Token";
    string public symbol = "RET";
    uint8 public decimals = 18;
    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    event Transfer(address indexed from, address indexed to, uint256 value);

    constructor() {
        totalSupply = 100000 * 10 ** uint256(decimals);
        balanceOf[msg.sender] = totalSupply;
    }

    function transfer(address to, uint256 value) public returns (bool) {

        require(balanceOf[msg.sender] >= value, "Insufficient balance");

        balanceOf[msg.sender] -= value;
        balanceOf[to] += value;

        emit Transfer(msg.sender, to, value);

        return true;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.