The details method retrieves details of a specific retrieval request based on the provided DSN and file ID.

try {
  const retrievalRequestDetails = await sdk.retrievalRequests.details({
    dsn: 'dsn_here', // The DSN identifier.
    fileId: 'file_id_here', // The identifier of the file for which retrieval request details are requested.
  });

  console.log(retrievalRequestDetails); // Details of the retrieval request
} catch (error) {
  console.error(error.message);
}

Params

  • dsn (string): The Decentralized Storage Network (DSN) identifier.
  • fileId (string): The identifier of the file for which the retrieval request is created..

Required API Key Permission

  • Read Directory