Vana SDK - v2.2.2
    Preparing search index...

    Interface VanaConfigAddressOnlyWithStorage

    Configuration for minimal read-only operations with just an address that requires storage

    interface VanaConfigAddressOnlyWithStorage {
        relayer?: RelayerConfig;
        downloadRelayer?: DownloadRelayerCallbacks;
        storage: StorageConfig;
        subgraphUrl?: string;
        ipfsGateways?: string[];
        defaultPersonalServerUrl?: string;
        operationStore?: IOperationStore | IRelayerStateStore;
        address: `0x${string}`;
        chain?: Chain;
    }

    Hierarchy (View Summary)

    Index

    Properties

    relayer?: RelayerConfig

    Optional relayer configuration for handling gasless transactions. Can be a URL string for convenience, or a callback for full control.

    // Simple URL (SDK handles transport)
    relayer: '/api/relay'

    // Full control with callback
    relayer: async (request) => {
    const response = await fetch('/api/relay', {
    method: 'POST',
    body: JSON.stringify(request)
    });
    return response.json();
    }
    downloadRelayer?: DownloadRelayerCallbacks

    Optional download relayer for proxying CORS-restricted downloads. Provides a proxy mechanism for files stored on servers with CORS restrictions.

    storage: StorageConfig

    Required storage providers configuration for file upload/download

    subgraphUrl?: string

    Optional subgraph URL for querying user files and permissions. If not provided, defaults to the built-in subgraph URL for the current chain. Can be overridden per method call if needed.

    ipfsGateways?: string[]

    Optional default IPFS gateways to use for fetching files. These gateways will be used by default in fetchFromIPFS unless overridden per-call. If not provided, the SDK will use public gateways.

    ['https://gateway.pinata.cloud', 'https://ipfs.io']
    
    defaultPersonalServerUrl?: string

    Default personal server base URL for server operations. Required for ServerController methods like getIdentity(), createOperation(), etc.

    'https://my-personal-server.example.com'
    

    Optional operation store for tracking async relayed transactions. When provided with a relayer, enables resilient transaction management with polling support for pending operations.

    address: `0x${string}`

    The user's address for read operations

    chain?: Chain

    Optional chain configuration (will use default if not provided)