// Mode 1: Full configuration with wallet client
const configWithWallet: VanaConfig = {
walletClient: createWalletClient({
account: privateKeyToAccount('0x...'),
chain: moksha,
transport: http()
}),
publicClient: createPublicClient({
chain: moksha,
transport: http()
})
};
// Mode 2: Read-only with public client and address
const configReadOnly: VanaConfig = {
publicClient: createPublicClient({
chain: moksha,
transport: http()
}),
address: '0x1234...'
};
// Mode 3: Minimal with just address
const configMinimal: VanaConfig = {
address: '0x1234...',
chain: moksha // optional
};
Main configuration interface for initializing the Vana SDK.
The SDK supports three initialization modes: