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

    \[solved\] General FTC API help \* Feathercoin API help

    Support
    2
    5
    1618
    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.
    • M
      Markus1337 Regular Member last edited by

      Hello everyone I’m in the process of making an Android Feathercoin app and I’m using the Feathercoin API’s to pull some stats.

      I would appreciate if someone could sow me how to set up the average hash rate over last 60 blocks using this API [url=http://explorer.feathercoin.com/q/getnetworkhash]http://explorer.feathercoin.com/q/getnetworkhash[/url] as I don’t know how to set it up :(

      Also how can I set up “block until retarget / retarget block” and “expected time per block / until retarget” I don’t know if you guys use a API of some sort or manually work out the values.

      Any help would be much appreciated! If I find out everything I need then the app should be available on Android Market today 8)

      1 Reply Last reply Reply Quote 0
      • T
        thep33t Regular Member last edited by

        Format it like the following.

        http://explorer.feathercoin.com/chain/Feathercoin/q/getnetworkhash/1/-60/json

        1 Reply Last reply Reply Quote 0
        • M
          Markus1337 Regular Member last edited by

          Okay thanks, there are some lines where there is “infinity” what do I do about that? How do I work out the speed? Add them all together and divide by 60?

          Or can I just use this:
          http://explorer.feathercoin.com/chain/Feathercoin/q/getnetworkhash/60/-60/json

          1 Reply Last reply Reply Quote 0
          • T
            thep33t Regular Member last edited by

            [quote name=“Markus1337” post=“17405” timestamp=“1372092973”]
            Okay thanks, there are some lines where there is “infinity” what do I do about that? How do I work out the speed? Add them all together and divide by 60?

            Or can I just use this:
            http://explorer.feathercoin.com/chain/Feathercoin/q/getnetworkhash/60/-60/json
            [/quote]

            your command gets (from the last 60, only 1 data point).

            You will need to take the 60 from the previous one, validate that the number is a valid number), and turn that into the hashrate. I do not have my notes on that in front of me, but essentially take the average, and from that, plug it into the hashrate formula (something like H = h / t)

            1 Reply Last reply Reply Quote 0
            • M
              Markus1337 Regular Member last edited by

              [quote name=“thep33t” post=“17422” timestamp=“1372099535”]
              [quote author=Markus1337 link=topic=2191.msg17405#msg17405 date=1372092973]
              Okay thanks, there are some lines where there is “infinity” what do I do about that? How do I work out the speed? Add them all together and divide by 60?

              Or can I just use this:
              http://explorer.feathercoin.com/chain/Feathercoin/q/getnetworkhash/60/-60/json
              [/quote]

              your command gets (from the last 60, only 1 data point).

              You will need to take the 60 from the previous one, validate that the number is a valid number), and turn that into the hashrate. I do not have my notes on that in front of me, but essentially take the average, and from that, plug it into the hashrate formula (something like H = h / t)
              [/quote]

              Will look into that, thank you for your help :)

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