Skip to content

πŸ“œ Check if address is smart contract or not

License

Notifications You must be signed in to change notification settings

0xdaebak/ifContract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ifContract

Contract Address : 0xaBE2cEFCcB2d0D4911dF3dbb3D409ad6ba67F8d0

It is a smart contract on bsc. You can check if address is smart contract or not.

Key Function

function isContract(address addr) public view returns (bool) {
  uint size;
  assembly { size := extcodesize(addr) }
  return size > 0;
}

Authors

Badges

MIT License