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
Problem
When retrieving a chunk by it's address from the /chunks bee API endpoint, inserting the payload with makeChunk then calculating the address() does not return the address of the chunk that I retrieved from the /chunks API endpoint.
Solution address() should return the same as that which I retrieved from the /chunks bee API endpoint.
The text was updated successfully, but these errors were encountered:
After investigating this further, there really should be an example of how to use to the bmt-js library to achieve common purposes such as using the /bytes, and /chunks API endpoints, and validating the data that is received.
For posterity's sake, /chunks returns the Chunk which with the current case, the first 8 bytes is reserved for the span. By doing a slice(0, 8) on the payload, you get the little-endian uint64 for the span value, which can be passed into the makeChunk parameter for the initial span value. The data for the makeChunk would be set to the slice(8) of the payload returned from the /chunks endpoint.
Problem
When retrieving a chunk by it's address from the
/chunks
bee API endpoint, inserting the payload withmakeChunk
then calculating theaddress()
does not return the address of the chunk that I retrieved from the/chunks
API endpoint.Solution
address()
should return the same as that which I retrieved from the/chunks
bee API endpoint.The text was updated successfully, but these errors were encountered: