Post
Topic
Board Announcements (Altcoins)
Re: Factom Entry Credits
by
BrianDeery
on 22/11/2016, 04:26:44 UTC
Is there anyone who use Factom Entry Credits or how to use them.
I'm busy with a project and want to use Factom.
I’m using PHP so I use the curl function.
It seems there is some decoding that I’m not sure of.

Like:
'http://localhost:8088/v1/factoid-balance/f6e117ea838cb652e9cfc3b29552d5887800a7ba614df0bd8c13e171eddc5897' - is working

 and

'http://localhost:8088/v1/factoid-balance/FA2oMzWrkwspnRriJmDvjjiFVfLBzbjUQ28sxgtwvSb3NCytAMnP'  - does not work.
Is there any  example on how to
hash a string
put it in the factom blockchain
retrieve the hash from the factom blockchain.



also, the V1 API takes the hex version of the keys, rather than the base58 version.  the V2 only deals with the base58 encoded type, so this will go away.  as a workaround for now, you can use this website:

http://gobittest.appspot.com/PrivateKey

paste the address in WIF checksum checking
FA2oMzWrkwspnRriJmDvjjiFVfLBzbjUQ28sxgtwvSb3NCytAMnP will give

5FB16DA21F1F8898E705C267365929BD3ACDE6B8F73682DDED30BBC9A90C1A324183
in box 3

strip the 5FB1 from the front giving

6DA21F1F8898E705C267365929BD3ACDE6B8F73682DDED30BBC9A90C1A324183

http://localhost:8088/v1/factoid-balance/6DA21F1F8898E705C267365929BD3ACDE6B8F73682DDED30BBC9A90C1A324183 gives a balance

This is all getting better, but slowly.