Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Etherscan is a search engine that allows Ethereum blockchain users to look up, confirm and validate transactions that have taken place on the blockchain.
1
vote
Accepted
Telling contracts from EOAs using ethers.js
(No, this was not intended as a self-answered question. I facepalmed pretty hard.)
The solution is: If the contract's tx count is larger than zero and it does not have code, it must be an EOA because …
1
vote
1
answer
642
views
Telling contracts from EOAs using ethers.js
I'm trying to figure out whether a given address is:
a contract
an EOA
unknown
I know that only contracts can have code. Therefore, provider.getCode(address) returning anything but 0x tells me unamb …