Articles → BLOCKCHAIN → Address Datatype In Solidity
Address Datatype In Solidity
Purpose
Example
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;
contract ExampleAddress {
address public someAddress;
function setSomeAddress(address _someAddress) public {
someAddress = _someAddress;
}
function getAddressBalance() public view returns(uint) {
return someAddress.balance;
}
}
Output