I know that an Ethereum transaction addressed to '0x000..000' is creating a new contract. Now, given a transaction address to non-zero address, I want to identify whether it is a transaction to an externally owned account(non-contract address) or to a smart contract.
One approach I figured out is to look at the debug trace of the transaction and distinguish between them.
My question is:
Is there an alternative way of identifying whether the recipient of a transaction is an externally owned account or a smart contract?
Any solution using geth console or web3 API would be appreciated. Thanks