// 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();
}
});
Simplified relayer configuration. Can be a URL string for convenience, or a callback for full control.