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

What can I do with the hash returned by put #481

Closed
marciok opened this issue Oct 22, 2018 · 2 comments
Closed

What can I do with the hash returned by put #481

marciok opened this issue Oct 22, 2018 · 2 comments

Comments

@marciok
Copy link

marciok commented Oct 22, 2018

At the documentation there's the following:

const hash = await db.put({ _id: 'QmAwesomeIpfsHash', name: 'shamb0t', followers: 500 })

So a hash is returned when I insert a new document, let's say if I want to find the inserted documented by its hash how could I do it? When I try to find it using cat nothing is returned.

I want that to store that hash on ethereum and be able to access it

Thanks is advance.

@aphelionz
Copy link
Member

Hi @marciok. I'm not sure of the timing, but we'v e recently switched to IPLD so if you try the ipfs.dag.get command, you might have better luck.

@marciok
Copy link
Author

marciok commented Apr 17, 2019

@aphelionz Thanks for the reply, I'll try later..

Best

@marciok marciok closed this as completed Apr 17, 2019
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

2 participants