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

    Interface ControllerContext

    Provides shared configuration and services for all SDK controllers.

    This interface defines the foundational blockchain and storage services that all controllers require for operation. The main Vana SDK class automatically creates this context during initialization and passes it to each controller. It includes wallet clients for transaction signing, storage managers for file operations, and platform adapters for environment-specific functionality.

    interface ControllerContext {
        walletClient: {};
        publicClient: {};
        applicationClient?: {};
        relayerCallbacks?: RelayerCallbacks;
        storageManager?: StorageManager;
        subgraphUrl?: string;
        platform: VanaPlatformAdapter;
        validateStorageRequired?: () => void;
        hasStorage?: () => boolean;
        ipfsGateways?: string[];
    }
    Index

    Properties

    walletClient: {}

    Signs transactions and messages using the user's private key.

    publicClient: {}

    Queries blockchain state and smart contracts without signing.

    applicationClient?: {}

    Signs application-specific operations when different from primary wallet.

    relayerCallbacks?: RelayerCallbacks

    Handles gasless transaction submission through relayer services.

    storageManager?: StorageManager

    Manages file upload and download operations across storage providers.

    subgraphUrl?: string

    Provides subgraph endpoint for querying indexed blockchain data.

    Adapts SDK functionality to the current runtime environment.

    validateStorageRequired?: () => void

    Validates that storage is available for storage-dependent operations.

    hasStorage?: () => boolean

    Checks whether storage is configured without throwing an error.

    ipfsGateways?: string[]

    Default IPFS gateways to use for fetching files.