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

    Interface ChainConfigWithStorage

    Configuration with chain and account details that requires storage

    interface ChainConfigWithStorage {
        relayerCallbacks?: RelayerCallbacks;
        storage: StorageConfig;
        subgraphUrl?: string;
        ipfsGateways?: string[];
        chainId: VanaChainId;
        rpcUrl?: string;
        account?: Account;
    }

    Hierarchy (View Summary)

    Index

    Properties

    relayerCallbacks?: RelayerCallbacks

    Optional relayer callback functions for handling gasless transactions. Provides flexible relay mechanism - can use HTTP, WebSocket, or any custom implementation.

    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']
    
    chainId: VanaChainId

    The chain ID for Vana network

    rpcUrl?: string

    RPC URL for the chain (optional, will use default for the chain if not provided)

    account?: Account

    Optional account for signing transactions