5

I know all ethereum addresses start with 0x, but is there a common letter/number after the 0x to represent an address? Because I get confused on how to tell if its an Eth address or if its a transaction id.

1
  • 0x is not part of the address, it is a formatting identifier which means the address is in HEX format.
    – Nulik
    Aug 23, 2018 at 19:38

1 Answer 1

4

Addresses have length of 40 hexadecimal characters in Ethereum, tx ids have a length of 64 hexadecimal characters. Further, usually addresses are encoded to contain a checksum (https://github.com/ethereum/EIPs/blob/master/EIPS/eip-55.md) which you can spot most times by the fact that they can contain the characters A-F in lowercase and in uppercase, which is not the case for tx ids.

edit

I forgot to answer your question. Other than the patterns given above plus the fact that they most times are presented with the prefix "0x" (as tx ids are as well), there is no pattern by which you can identify an ethereum address.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.