Switch to the target chain.
use script on polkadot.js with code
const metadata = await api.runtimeMetadata.asCallsOnly.toHex();
console.log( 'Metadata: ' + metadata);
use chain -> getBlockHash(0x0)
from https://polkadot.js.org/apps/#/toolbox to get the genesisHash
Full Geneis Config could be refer here from Polkadot repo.
connected to wss://dev-node.substrate.dev
The identiconFn supplied needs to meet the same format as https://github.com/polkadot-js/ui/blob/f2f36e2db07f5faec14ee43cf4295f5e8a6f3cfa/packages/reactnative-identicon/src/icons/Polkadot.tsx#L37