You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
That hash is the IPFS address of that update (called an entry Entry). It contains pointers from that update to all previous Entries that your instance of this OrbitDB database knows about.
Orbit DB stores each Entry in an IPFS object. This is a lower level than the usual IPFS commands operate at. To read it, you'll want to do an ipfs object get YOURHASH, then get the data field and parse it as json.
We cover this pretty extensively now in the new OrbitDB Field Manual. Check out the Tutorial section, particularly Chapter 2 which covers reading and writing data.
At the documentation there's the following:
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.
The text was updated successfully, but these errors were encountered: