Use the getReplications
method to retrieve information about file replications across various decentralized storage networks, including IPFS, Sia, Filecoin, and Filefilego.
try {
const id = 'cid_here'; // The content identifier of the file.
const replications = await sdk.file.getReplications(id);
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.