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

    Interface UploadResult

    Result of the high-level upload operation.

    Returned by the vana.data.upload() method after successful upload and blockchain registration.

    interface UploadResult {
        fileId: number;
        url: string;
        transactionHash: `0x${string}`;
        size: number;
        isValid?: boolean;
        validationErrors?: string[];
        permissionIds?: bigint[];
    }
    Index

    Properties

    fileId: number

    The file ID assigned by the DataRegistry contract.

    url: string

    The storage URL where the file is hosted.

    transactionHash: `0x${string}`

    The transaction hash of the blockchain registration.

    size: number

    The actual file size in bytes.

    isValid?: boolean

    Whether the data passed schema validation (if applicable).

    validationErrors?: string[]

    Validation errors if schema validation failed.

    permissionIds?: bigint[]

    Permission IDs if permissions were granted during upload.