loadManifest
@totemsdk/pear / loadManifest
Function: loadManifest()
loadManifest(
pearTopicKey,adapter?,options?):Promise<SignedManifest>
Load and parse manifest.json from a remote Hyperdrive identified by
its 64-hex pearTopicKey.
- Joins Hyperswarm to locate peers for the given topic key.
- Reads
/manifest.jsonfrom the replicated drive. - If
@totemsdk/app-manifestis installed itsdecodeManifestis used for schema validation; otherwise the raw JSON is returned.
Pass a pre-opened adapter to skip the network join (useful in tests).
Parameters
pearTopicKey
string
adapter?
options?
Returns
Promise<SignedManifest>