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

    Type Alias RelayerConfig

    RelayerConfig:
        | string
        | ((request: UnifiedRelayerRequest) => Promise<UnifiedRelayerResponse>)

    Simplified relayer configuration. Can be a URL string for convenience, or a callback for full control.

    // Option 1: Simple URL (SDK handles the transport)
    const vana = Vana({
    walletClient,
    relayer: '/api/relay'
    });

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