- useProvider(providerProxy?, createProviderOpts?): {
createProviderError: string;
provider: null | IProvider;
providerReactiveState: {
address: undefined | string;
chainId: undefined | ChainId;
chainType: undefined | ChainTypes;
isConnected: undefined | boolean;
providerType: undefined | Providers;
};
}
-
Parameters
-
Optional
providerProxy: ProviderProxyConstructor
-
Optional
createProviderOpts: CreateProviderOpts
Returns {
createProviderError: string;
provider: null | IProvider;
providerReactiveState: {
address: undefined | string;
chainId: undefined | ChainId;
chainType: undefined | ChainTypes;
isConnected: undefined | boolean;
providerType: undefined | Providers;
};
}
-
createProviderError: string
-
provider: null | IProvider
-
providerReactiveState: {
address: undefined | string;
chainId: undefined | ChainId;
chainType: undefined | ChainTypes;
isConnected: undefined | boolean;
providerType: undefined | Providers;
}
-
address: undefined | string
-
chainId: undefined | ChainId
-
chainType: undefined | ChainTypes
-
isConnected: undefined | boolean
-
providerType: undefined | Providers