ArDrive Core JSCore Concepts
Entity IDs
Use the type-safe entity ID constructors:
import { EID, DriveID, FolderID, FileID } from 'ardrive-core-js';
// Generic entity ID
const entityId = EID('10108b54a-eb5e-4134-8ae2-a3946a428ec7');
// Specific entity IDs
const driveId = new DriveID('12345674a-eb5e-4134-8ae2-a3946a428ec7');
const folderId = new FolderID('47162534a-eb5e-4134-8ae2-a3946a428ec7');
const fileId = new FileID('98765432a-eb5e-4134-8ae2-a3946a428ec7');
How is this guide?