Use the getReplicationsmethod to retrieve information about file replications across various decentralized storage networks, including IPFS, Sia, Filecoin, and Filefilego.

try {
  const cid = 'cid_here'; // The content identifier of the file.
  
  const replications = await sdk.file.getReplications(cid);
  console.log('File Replications:', replications);
} catch (error) {
  console.error(error.message);
}

Params

  • cid (string): The content identifier of the file for which you want replication information.