Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    [Guide] PHP Check for valid Feathercoin address

    Guides
    2
    2
    4260
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Bushstar
      Bushstar last edited by wrapper

      I have adapted code to check for a valid Bitcoin address into a check for a valid Feathercoin address for the Market. I figured I would put it on the forum for safe keeping.

      Include the code below and then use checkAddress() to check if it is a valid address. checkAddress() returns false if the address is not valid.

      [code]//hex input must be in uppercase, with no leading 0x

      define(“ADDRESSVERSION”,“0E”); //this is a hex byte

      function decodeHex($hex)
      {
      $hex=strtoupper($hex);
      $chars=“0123456789ABCDEF”;
      $return=“0”;
      for($i=0;$i

      Donate: 6hf9DF8H67ZEoW9KmPJez6BHh4XPNQSCZz

      1 Reply Last reply Reply Quote 3
      • L
        looarn last edited by looarn

        Hi, sorry for digging up this topic, but can we have the end of the guide ?

        :) very interested in it actualy. :)

        1 Reply Last reply Reply Quote 2
        • First post
          Last post