https://github.com/0xdaebak/ifcontract
📜 Check if address is smart contract or not
https://github.com/0xdaebak/ifcontract
binance-smart-chain bnb bnb-chain bsc bsc-project bscscan smart-contracts solidity yul
Last synced: about 1 year ago
JSON representation
📜 Check if address is smart contract or not
- Host: GitHub
- URL: https://github.com/0xdaebak/ifcontract
- Owner: 0xdaebak
- License: mit
- Created: 2022-09-16T05:35:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-16T05:57:35.000Z (over 3 years ago)
- Last Synced: 2025-01-22T23:41:17.938Z (over 1 year ago)
- Topics: binance-smart-chain, bnb, bnb-chain, bsc, bsc-project, bscscan, smart-contracts, solidity, yul
- Language: Solidity
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ifContract
Contract Address : 0xaBE2cEFCcB2d0D4911dF3dbb3D409ad6ba67F8d0
It is a smart contract on bsc. You can check if address is smart contract or not.
## Key Function
```javascript
function isContract(address addr) public view returns (bool) {
uint size;
assembly { size := extcodesize(addr) }
return size > 0;
}
```
## Authors
- [@0xdaebak](https://www.github.com/0xdaebak)
## Badges
[](https://choosealicense.com/licenses/mit/)