How to distinguish addresses currencies apart on php

1

I need depending on the address to assign a value of the transaction. Both at the level of php distinguish btc ltc from ppc?

user2850846

Posted 2014-05-21T16:00:57.633

Reputation: 21

Question was closed 2014-06-08T07:52:15.650

Can you explain a little more what you are trying to achieve?

All use different addressing guidelines and their address;s are usually easy to tell apart, aside from that if your writing php to interact with them then you will be using the RPC interface most likely which will need a separate instance for each currency. – hafnero 2014-05-22T02:06:25.310

Answers

1

  • A Bitcoin address always start with 1 or 3.
  • A [Litecoin] address always starts with the letter L.
  • A Peercoin address starts with the letter P.

Assuming you can figure out how to check the first character in php, you can distinguish between different addresses. Then you can program whatever value you want into the transaction. Good luck!

Mathias711

Posted 2014-05-21T16:00:57.633

Reputation: 1 390