Skip to main content

Overview

The getUserUploadHistory method retrieves all uploads associated with a Solana wallet address, including file metadata, expiration dates, and deletion status.

Basic Usage

Parameters

string
required
Solana wallet address (as a string)
ServerOptions
Optional server configuration

Response Structure

UploadedFile Type

Each file in the history includes:

Complete Example

With SWR (Auto-Refresh)

Use SWR for automatic refreshing:
SWR automatically handles caching, deduplication, and background revalidation.

Filtering & Searching

Filter uploads by status or search by filename:

Deletion Status

Files go through three deletion statuses:
1

active

File is within storage duration and accessible
2

warned

File will expire in 7 days or less (warning email sent)
3

deleted

File has expired and been removed from storage

Days Remaining

The daysRemaining field shows time until expiration:

Statistics

The response includes helpful statistics:

Viewing Files

Each file has a url property for accessing content:

Transaction History

View blockchain transaction:

Create Deposit

Upload new files

Renew Storage

Extend file expiration

Storage Payments

Understanding costs

Renewal Concept

When to renew