getSupportedNetworks Method
This method is used to get all whitelisted networks on your API Key.
Parameters
None
getSupportedNetworks: () => Promise<NetworkData>;
Example
import { useOkto, type OktoContextType} from 'okto-sdk-react';
const { getSupportedNetworks } = useOkto() as OktoContextType;
getSupportedNetworks()
.then((result) => {
console.log(result)
})
.catch((error) => {
console.error(`error:`, error);
});