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

    [Solved] Feathercoin API - Issues with Get Feathercoin Address Balance

    Support
    2
    5
    1432
    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.
    • W
      wolffhaven last edited by wrapper

      Hi Guys,

      I have an issue with the [url=https://api.feathercoin.com/]https://api.feathercoin.com/[/url] api, (possibly user error :-[) when I submit the query to the api to get the balance of my wallet I get a different amount then what is shown in my Feathercoin QT client wallet. The value is out by quite a fair bit. Is anyone else seeing the same sort of thing?

      I’m using the following query:

      [code]https://api.feathercoin.com/?output=balance&address=&json=1[/code]

      Cheers,
      wolffhaven

      1 Reply Last reply Reply Quote 0
      • K
        Kevlar Spammer last edited by

        Perfectly normal.

        Your wallet consists of multiple addresses. Your QT balance is the sum of all those addresses. Some of those addresses may not even show up in your list of receive addresses if they were change addresses that got used for a change spend.

        The API can’t possibly know all the addresses your QT wallet knows of, so it’s only going to be able to tell you how much is at the one address.

        Now, if you’re seeing an amount reported by the API that’s GREATER than your QT wallet, then that might be another issue. But I suspect that’s not the case.

        1 Reply Last reply Reply Quote 0
        • W
          wolffhaven last edited by

          Thanks for your reply Kevlar. That makes perfect sense. The api is showing less than what is in my QT client. I was a little worried I might an issue with my wallet.

          Out of interest, to get around that could I simply send the balance of my QT client to one of my receive addresses and then query that receive address? Just to make sure that all the funds in my qt wallet are on that one receive address?

          Cheers,

          wolffhaven

          1 Reply Last reply Reply Quote 0
          • K
            Kevlar Spammer last edited by

            Indeed, you can!

            Just watch out for miner’s fees.

            1 Reply Last reply Reply Quote 0
            • W
              wolffhaven last edited by

              Thanks for your help that’s worked. :)

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