updateChain

fun updateChain(newChainId: String, connect: PortalConnect? = null)

Updates the blockchain chain ID and emits a chain change event.

Parameters

newChainId

The new chain ID to set.

connect

An optional PortalConnect instance for emitting connection-related events.