Display Public Space Data

Display public space data in your app

Display public space data in your app.

First, call Box.listSpaces() to determine which spaces a user has. This optional method will return all spaces in a 3Box, as an array of strings:

const spaceList = await Box.listSpaces(<ethereum-address or DID>)

Next, call Box.getSpace() to get all public data stored in a space:

const spaceData = await Box.getSpace(<ethereum-address or DID>, <space-name>)