MCPcopy Index your code
hub / github.com/numbersprotocol/nit / getAssetTree

Function getAssetTree

src/nit.ts:424–428  ·  view source on GitHub ↗
(assetTreeCid)

Source from the content-addressed store, hash-verified

422}
423
424export async function getAssetTree(assetTreeCid) {
425 const assetTreeBytes = await ipfs.ipfsCat(assetTreeCid);
426 const assetTree = JSON.parse(assetTreeBytes.toString());
427 return assetTree;
428}
429
430export async function getCommitBlockNumbers(assetCid: string, blockchainInfo) {
431 const commits = await blockchainInfo.contract.getCommits(assetCid);

Callers 1

pullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected