getChainMetadata

Retrieves chain data for a given chain.

Example

const chain = defineChain({ id: 1 });
const chainData = await getChainMetadata(chain);
console.log(chainData);

Parameters

Returns

A Promise that resolves to the chain data.