Skip to content
On this page

setRpcUrl

Sets the backend RPC URL.

Import

ts
import { setRpcUrl } from 'viem/test'

Usage

ts
import { setRpcUrl } from 'viem/test'
import { testClient } from '.'
 
await setRpcUrl(testClient, 'https://eth-mainnet.alchemyapi.io/v2') 

Released under the MIT License.