Get Supported Peanut Chains

The SDK holds a JSON object which has all chains that are supported by Peanut Protocol.

const chainDetails: IChainDetail[] = peanut.CHAIN_DETAILS

This JSON has the following type:

interface IChainDetail {
  name: string;
  chain: string;
  icon: {
    url: string;
    format: string;
  };
  rpc: string[];
  features: {
    name: string;
  }[];
  faucets: any[];
  nativeCurrency: {
    name: string;
    symbol: string;
    decimals: number;
  };
  infoURL: string;
  shortName: string;
  chainId: string;
  networkId: number;
  slip44: number;
  explorers: {
    name: string;
    url: string;
    standard: string;
    icon?: string;
  }[];
  mainnet: boolean;
}

Last updated