Vana SDK - v0.1.0
    Preparing search index...

    Interface UserFile

    Represents a registered data file in the Vana network with complete blockchain metadata.

    This interface describes files that have been uploaded to storage and registered on the Vana blockchain, including their storage location, ownership, and blockchain tracking information. Each file receives a unique ID and is linked to the owner's address for permission management. Used throughout the SDK for file operations and access control workflows.

    interface UserFile {
        id: number;
        url: string;
        ownerAddress: `0x${string}`;
        addedAtBlock: bigint;
        schemaId?: number;
        addedAtTimestamp?: bigint;
        transactionHash?: `0x${string}`;
        metadata?: FileMetadata;
    }
    Index

    Properties

    id: number

    Unique identifier assigned by the Data Registry contract.

    url: string

    Storage URL where the encrypted file content is hosted.

    ownerAddress: `0x${string}`

    Wallet address of the user who owns this file.

    addedAtBlock: bigint

    Block number when this file was registered on-chain.

    schemaId?: number

    Schema identifier for data validation and structure definition.

    addedAtTimestamp?: bigint

    Unix timestamp when the file was registered on-chain.

    transactionHash?: `0x${string}`

    Transaction hash of the on-chain file registration.

    metadata?: FileMetadata

    Additional file properties and custom application data.