Skip to main content
type ProviderState = {
  chainId: number;
  setChainId: (chainId: number) => void;
  chains: readonly [Chain, ...Chain[]];
  user:   | User
     | null;
  setUser: (user: 
     | User
    | null) => void;
};
The attributes/methods representing the state of the provider

Properties

PropertyType
chainIdnumber
setChainId(chainId: number) => void
chainsreadonly [Chain, ...Chain[]]
user| User | null
setUser(user: | User | null) => void