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

    Type Alias VanaConfigWithStorage

    Configuration interface for Vana SDK that requires storage providers.

    Use this type when you need to ensure storage is configured for operations like file uploads, permission grants without pre-stored URLs, or schema creation. Supports all three initialization modes with required storage.

    // Full configuration with wallet client and storage
    const configWithWallet: VanaConfigWithStorage = {
    walletClient: createWalletClient({
    account: privateKeyToAccount('0x...'),
    chain: moksha,
    transport: http()
    }),
    storage: {
    providers: {
    ipfs: new IPFSStorage({ gateway: 'https://gateway.pinata.cloud' })
    },
    defaultProvider: 'ipfs'
    }
    };

    // Read-only configuration with storage
    const configReadOnly: VanaConfigWithStorage = {
    publicClient: createPublicClient({
    chain: moksha,
    transport: http()
    }),
    address: '0x1234...',
    storage: {
    providers: {
    ipfs: new IPFSStorage({ gateway: 'https://gateway.pinata.cloud' })
    },
    defaultProvider: 'ipfs'
    }
    };