useSupportedChains

Hook to get the supportedChains which returns the array passed to the supportedChains prop of the ThirdwebProvider or the default supported chains if not specified.

If activeChain is set in the ThirdwebProvider then it is also added to the supportedChains array

function useSupportedChains(): Array<Chain>;

Returns

let returnType: Array<Chain>;