Retrieves chain data for a given chain.
const chain = defineChain({ id: 1 });const chainData = await getChainMetadata(chain);console.log(chainData);
function getChainMetadata( chain: Readonly<ChainOptions & { rpc: string }>,): Promise<ChainMetadata>;
The chain object containing the chain ID.
let chain: Readonly<ChainOptions & { rpc: string }>;
let returnType: Promise<ChainMetadata>;
A Promise that resolves to the chain data.