Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functions to get anchors from factomd anchors API #125

Closed
ilzheev opened this issue Oct 21, 2019 · 3 comments
Closed

Add functions to get anchors from factomd anchors API #125

ilzheev opened this issue Oct 21, 2019 · 3 comments

Comments

@ilzheev
Copy link

ilzheev commented Oct 21, 2019

In factomd:v6.4.3 new API call appeared:
https://docs.factom.com/api#anchors

Retrieve information about the directory block anchors that have been confirmed on Bitcoin and Ethereum.

Parameter options: - "height" - the directory block height (integer) to request anchors for - "hash" - the object’s hash (hex string) to request anchors for (e.g. entry hash, entry block keymr, factoid block keymr, admin block lookup hash, entry credit block header hash, or directory block keymr)

I suggest to add 2 functions into factom lib:
GetAnchors(hash string) and GetAnchorsByHeight(height int64)

@ilzheev
Copy link
Author

ilzheev commented Oct 23, 2019

@Emyrk @stackdump @WhoSoup bump ^^^

@WhoSoup
Copy link
Member

WhoSoup commented Oct 23, 2019

@Emyrk @stackdump @WhoSoup bump ^^^

i'm swamped with other work atm so if anyone else would like to take a stab at it please do. feel free to ping me again if it hasn't gotten done by end of next week

@PaulBernier
Copy link
Contributor

Has been merged, will be available in release 0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants