Chain

Description

The chain object defines chains in a format supported by the Metafi SDK.

Structure

Supported Chains

Currently, we support the following chains:

Mainnets

  • Ethereum Mainnet : chains.eth

  • Polygon Matic Mainnet : chains.matic

Testnets

  • Görli (Goerli testnet) : chains.goerli

  • Mumbai testnet : chains.mumbai

We are working on supporting more chains - feel free to reach out via Discord if you require support for a different chain.

Usage

import { chains } from '@metafi/metafi-react-package';

function displaySupportedChains() {
    return (
        <>
            {
                Object.keys(chains).forEach((chainKey) => {
                    return <p> chains[chainKey].name </p>
                });
            }
        </>
    );
};

Last updated