@boostxyz/sdk
BoostCore
and BoostRegistry
contracts across different chains. You can specify which chain you want to target by including a chainId
in the params object of your method calls.
chainId
for a network where the protocol isn’t deployed could result in degraded UX if, in the browser, the SDK attempts to switch chains to its default network and there’s no supporting chain configuration in your Wagmi/Viem
client.chainId
in the params, you ensure that the SDK targets the correct contracts for the specific network you are targetting.
The SDK uses the following process to determine which chain to interact with:
chainId
passed in the params.