Skip to content

Commit

Permalink
Merge pull request #237 from MoralisWeb3/supported-chains-page
Browse files Browse the repository at this point in the history
Supported chains page
  • Loading branch information
JohnVersus authored Sep 3, 2023
2 parents ab8c244 + 863bd1e commit 4f49244
Show file tree
Hide file tree
Showing 44 changed files with 730 additions and 316 deletions.
7 changes: 3 additions & 4 deletions docs/01-web3-data-api/aptos/coin-api/coin-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ The Coin API is extremely flexible, meaning it can support a wide range of use c

The Coin API supports the following Aptos chains:

| Name | AptosNetwork | Type |
| :------------ | :------------------------------------- | :------ |
| Aptos Mainnet | `https://mainnet-aptos-api.moralis.io` | Mainnet |
| Aptos Testnet | `https://testnet-aptos-api.moralis.io` | Testnet |
import { AptosChainData } from '@site/src/components/SupportedChains';

<AptosChainData/>
7 changes: 3 additions & 4 deletions docs/01-web3-data-api/aptos/nft-api/nft-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ The NFT API is extremely flexible, meaning it can support a wide range of use ca

The NFT API supports the following Aptos chains:

| Name | AptosNetwork | Type |
| :------------ | :------------------------------------- | :------ |
| Aptos Mainnet | `https://mainnet-aptos-api.moralis.io` | Mainnet |
| Aptos Testnet | `https://testnet-aptos-api.moralis.io` | Testnet |
import { AptosChainData } from '@site/src/components/SupportedChains';

<AptosChainData/>
7 changes: 3 additions & 4 deletions docs/01-web3-data-api/aptos/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ The advanced feature set of our Web3 Data APIs means it can support any type of

Moralis Web3 Data APIs are continuously adding new chains and integrations. Our current supported Aptos chains include:

| Name | AptosNetwork | Type |
| :------------ | :------------------------------------- | :------ |
| Aptos Mainnet | `https://mainnet-aptos-api.moralis.io` | Mainnet |
| Aptos Testnet | `https://testnet-aptos-api.moralis.io` | Testnet |
import { AptosChainData } from '@site/src/components/SupportedChains';

<AptosChainData/>
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ The Transaction API is extremely flexible, meaning it can support a wide range o

The Transaction API supports the following Aptos chains:

| Name | AptosNetwork | Type |
| :------------ | :------------------------------------- | :------ |
| Aptos Mainnet | `https://mainnet-aptos-api.moralis.io` | Mainnet |
| Aptos Testnet | `https://testnet-aptos-api.moralis.io` | Testnet |
import { AptosChainData } from '@site/src/components/SupportedChains';

<AptosChainData/>
7 changes: 3 additions & 4 deletions docs/01-web3-data-api/aptos/wallet-api/wallet-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ The Wallet API is extremely flexible, meaning it can support a wide range of use

The Wallet API supports the following Aptos chains:

| Name | AptosNetwork | Type |
| :------------ | :------------------------------------- | :------ |
| Aptos Mainnet | `https://mainnet-aptos-api.moralis.io` | Mainnet |
| Aptos Testnet | `https://testnet-aptos-api.moralis.io` | Testnet |
import { AptosChainData } from '@site/src/components/SupportedChains';

<AptosChainData/>
20 changes: 3 additions & 17 deletions docs/01-web3-data-api/evm/01-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,6 @@ Our advanced feature set of Web3 Data APIs are best for those that are building

Moralis Web3 Data APIs are continuously adding new chains and integrations. Our current supported EVM chains include:

| Name | Chain id | EvmChain | Type |
| :------------------------------ | :---------- | :------------------------ | :------ |
| Ethereum Mainnet | 1 | `EvmChain.ETHEREUM` | Mainnet |
| Ethereum Ropsten* (deprecated)* | 3 | `EvmChain.ROPSTEN` | Testnet |
| Ethereum Rinkeby* (deprecated)* | 4 | `EvmChain.RINKEBY` | Testnet |
| Ethereum Görli | 5 | `EvmChain.GOERLI` | Testnet |
| Ethereum Kovan* (deprecated)* | 42 | `EvmChain.KOVAN` | Testnet |
| Ethereum Sepolia | 11155111 | `EvmChain.SEPOLIA` | Testnet |
| Polygon Mainnet | 137 | `EvmChain.POLYGON` | Mainnet |
| Polygon Mumbai | 80001 | `EvmChain.MUMBAI` | Testnet |
| Binance Smart Chain Mainnet | 56 | `EvmChain.BSC` | Mainnet |
| Binance Smart Chain Testnet | 97 | `EvmChain.BSC_TESTNET` | Testnet |
| Avalanche C-Chain | 43114 | `EvmChain.AVALANCHE` | Mainnet |
| Fantom | 250 | `EvmChain.FANTOM` | Mainnet |
| Cronos Mainnet | 25 | `EvmChain.CRONOS` | Mainnet |
| Palm | 11297108109 | `EvmChain.PALM` | Mainnet |
| Arbitrum | 42161 | `EvmChain.ARBITRUM` | Mainnet |
import { EVMChainData } from '@site/src/components/SupportedChains';

<EVMChainData/>
17 changes: 3 additions & 14 deletions docs/01-web3-data-api/evm/blockchain-api/blockchain-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@ The Blockchain API is extremely flexible, meaning it can support a wide range of

The Blockchain API supports multiple EVM chains:

| Chain Name | Chain Id (HEX) | Chain Id (INT) |
| ----------------- | -------------- | -------------- |
| eth | 0x1 | 1 |
| goerli | 0x5 | 5 |
| sepolia | 0xaa36a7 | 11155111 |
| polygon | 0x89 | 137 |
| mumbai | 0x13881 | 80001 |
| bsc | 0x38 | 56 |
| bsc testnet | 0x61 | 97 |
| avalanche | 0xa86a | 43114 |
| fantom | 0xfa | 250 |
| cronos | 0x19 | 25 |
| palm | 0x2a15c308d | 11297108109 |
| arbitrum | 0xa4b1 | 42161 |
import { EVMChainData } from '@site/src/components/SupportedChains';

<EVMChainData/>
29 changes: 6 additions & 23 deletions docs/01-web3-data-api/evm/developer-tools/cross-chain-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,9 @@ Moralis.EvmApi.block.getBlock({

## Supported EVM Chains

| Name | Chain id | EvmChain | Type |
| :------------------------------------ | :---------- | :------------------------ | :------ |
| Ethereum Mainnet | 1 | `EvmChain.ETHEREUM` | Mainnet |
| Ethereum Ropsten _(deprecated)_ | 3 | `EvmChain.ROPSTEN` | Testnet |
| Ethereum Rinkeby _(deprecated)_ | 4 | `EvmChain.RINKEBY` | Testnet |
| Ethereum Görli | 5 | `EvmChain.GOERLI` | Testnet |
| Ethereum Kovan _(deprecated)_ | 42 | `EvmChain.KOVAN` | Testnet |
| Ethereum Sepolia | 11155111 | `EvmChain.SEPOLIA` | Testnet |
| Polygon Mainnet | 137 | `EvmChain.POLYGON` | Mainnet |
| Polygon Mumbai | 80001 | `EvmChain.MUMBAI` | Testnet |
| BNB Mainnet | 56 | `EvmChain.BSC` | Mainnet |
| BNB Chain Testnet | 97 | `EvmChain.BSC_TESTNET` | Testnet |
| Avalanche C-Chain | 43114 | `EvmChain.AVALANCHE` | Mainnet |
| Avalanche Fuji Testnet _(deprecated)_ | 43113 | `EvmChain.FUJI` | Testnet |
| Fantom | 250 | `EvmChain.FANTOM` | Mainnet |
| Cronos Mainnet | 25 | `EvmChain.CRONOS` | Mainnet |
| Cronos Testnet _(deprecated)_ | 338 | `EvmChain.CRONOS_TESTNET` | Testnet |
| Palm Mainnet | 11297108109 | `EvmChain.PALM` | Mainnet |
| Arbitrum Mainnet | 42161 | `EvmChain.ARBITRUM` | Mainnet |
import { EVMChainData } from '@site/src/components/SupportedChains';

<EVMChainData/>

## Solana

Expand All @@ -81,7 +65,6 @@ Moralis.SolApi.account.getBalance({

### Supported Solana Networks

| Name | SolNetwork |
| :------------- | :------------------- |
| Solana mainnet | `SolNetwork.MAINNET` |
| Solana devnet | `SolNetwork.DEVNET` |
import { SolanaChainData } from '@site/src/components/SupportedChains';

<SolanaChainData/>
19 changes: 3 additions & 16 deletions docs/01-web3-data-api/evm/nft-api/nft-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,6 @@ The use cases for our NFT API are truly endless! Some popular use cases include:

## Supported chains

The NFT API supports multiple EVM chains:

| Chain Name | Chain Id (HEX) | Chain Id (INT) |
| ----------------- | -------------- | -------------- |
| eth | 0x1 | 1 |
| goerli | 0x5 | 5 |
| sepolia | 0xaa36a7 | 11155111 |
| polygon | 0x89 | 137 |
| mumbai | 0x13881 | 80001 |
| bsc | 0x38 | 56 |
| bsc testnet | 0x61 | 97 |
| avalanche | 0xa86a | 43114 |
| fantom | 0xfa | 250 |
| cronos | 0x19 | 25 |
| palm | 0x2a15c308d | 11297108109 |
| arbitrum | 0xa4b1 | 42161 |
import { EVMChainData } from '@site/src/components/SupportedChains';

<EVMChainData/>
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@ The DeFi API provides the following functionality out of the box to power the da

The DeFi API supports multiple EVM chains:

| Chain Name | Chain Id (HEX) | Chain Id (INT) |
| ----------------- | -------------- | -------------- |
| eth | 0x1 | 1 |
| goerli | 0x5 | 5 |
| sepolia | 0xaa36a7 | 11155111 |
| polygon | 0x89 | 137 |
| mumbai | 0x13881 | 80001 |
| bsc | 0x38 | 56 |
| bsc testnet | 0x61 | 97 |
| avalanche | 0xa86a | 43114 |
| fantom | 0xfa | 250 |
| cronos | 0x19 | 25 |
| palm | 0x2a15c308d | 11297108109 |
| arbitrum | 0xa4b1 | 42161 |
import { EVMChainData } from '@site/src/components/SupportedChains';

<EVMChainData/>
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,6 @@ The Token API is extremely flexible, meaning it can support a wide range of use

## Supported chains

The Token API supports multiple EVM chains:

| Chain Name | Chain Id (HEX) | Chain Id (INT) |
| ----------------- | -------------- | -------------- |
| eth | 0x1 | 1 |
| goerli | 0x5 | 5 |
| sepolia | 0xaa36a7 | 11155111 |
| polygon | 0x89 | 137 |
| mumbai | 0x13881 | 80001 |
| bsc | 0x38 | 56 |
| bsc testnet | 0x61 | 97 |
| avalanche | 0xa86a | 43114 |
| fantom | 0xfa | 250 |
| cronos | 0x19 | 25 |
| palm | 0x2a15c308d | 11297108109 |
| arbitrum | 0xa4b1 | 42161 |
import { EVMChainData } from '@site/src/components/SupportedChains';

<EVMChainData/>
17 changes: 3 additions & 14 deletions docs/01-web3-data-api/evm/wallet-api/wallet-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,6 @@ As well as Web3 Analytics tools, DAOs, Web3 gaming plus many more!

The Wallet API supports multiple EVM chains:

| Chain Name | Chain Id (HEX) | Chain Id (INT) |
| ----------------- | -------------- | -------------- |
| eth | 0x1 | 1 |
| goerli | 0x5 | 5 |
| sepolia | 0xaa36a7 | 11155111 |
| polygon | 0x89 | 137 |
| mumbai | 0x13881 | 80001 |
| bsc | 0x38 | 56 |
| bsc testnet | 0x61 | 97 |
| avalanche | 0xa86a | 43114 |
| fantom | 0xfa | 250 |
| cronos | 0x19 | 25 |
| palm | 0x2a15c308d | 11297108109 |
| arbitrum | 0xa4b1 | 42161 |
import { EVMChainData } from '@site/src/components/SupportedChains';

<EVMChainData/>
7 changes: 3 additions & 4 deletions docs/01-web3-data-api/solana/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ The advanced feature set of our Web3 Data APIs means it can support any type of

Moralis Web3 Data APIs are continuously adding new networks and integrations. Our current supported Solana networks include:

| Name | SolNetwork | Type |
| :------------- | :------------------- | :------ |
| Solana mainnet | `SolNetwork.MAINNET` | Mainnet |
| Solana devnet | `SolNetwork.DEVNET` | Testnet |
import { SolanaChainData } from '@site/src/components/SupportedChains';

<SolanaChainData/>
7 changes: 3 additions & 4 deletions docs/02-streams-api/aptos/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@ Webhooks allow you to receive real-time notifications for events that are happen

## Supported chains

| Chain | Chain Id (HEX) | Internal Transaction Supported | Note | Blocks until confirmed |
| :------------ | :------------- | :----------------------------- | :----- | :--------------------- |
| APTOS MAINNET | mainnet | Not Applicable | 🔥 NEW | Not Applicable |
| APTOS TESTNET | testnet | Not Applicable | 🔥 NEW | Not Applicable |
import { AptosStreamsChainData } from '@site/src/components/SupportedChains';

<AptosStreamsChainData/>

:::info Reorgnization Before Confirmation
Until a block is confirmed, it is possible that a re-organization of the chain may occur, invalidating some information. If a re-organization does occur before a block is confirmed, the information associated with the block is deleted and the updated block is inserted in its place.
Expand Down
23 changes: 3 additions & 20 deletions docs/02-streams-api/evm/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,9 @@ Webhooks allow you to receive real-time notifications for events that are happen

## Supported chains

| Chain | Chain Id (HEX) | Internal Transaction Supported | Note | Blocks until confirmed |
| :------------------------- | :------------- | :----------------------------- | :-------------------------------------- | :--------------------- |
| ETH | 0x1 | ✅ YES | | 12 |
| GOERLI | 0x5 | ✅ YES | | 12 |
| SEPOLIA | 0xaa36a7 | ✅ YES | | 18 |
| BNB | 0x38 | ✅ YES | | 18 |
| BNB TEST | 0x61 | ✅ YES | | 18 |
| POLYGON | 0x89 | ✅ YES | | 100 |
| MUMBAI | 0x13881 | ✅ YES | | 100 |
| FANTOM TEST | 0xfa2 | ✅ YES | | 100 |
| FANTOM | 0xfa | ✅ YES | | 100 |
| AVAX | 0xa86a | ✅ YES | | 100 |
| AVAX TEST _(deprecated)_ | 0xa869 | ✅ YES | | 100 |
| CRONOS | 0x19 | ❌ Very soon | Planned support within a couple of days | 100 |
| CRONOS TEST _(deprecated)_ | 0x152 | ❌ NO | | 100 |
| RONIN | 0x7e4 | ✅ YES | 🔥 NEW | 100 |
| ARBITRUM | 0xa4b1 | ✅ YES | 🔥 NEW | 100 |
| ARBITRUM TEST | 0x66eed | ✅ YES | 🔥 NEW | 100 |
| OPTIMISM | 0xa | | 🔥 NEW | 100 |
| PALM | 0x2a15c308d | | 🔥 |
import { EVMStreamChainData } from '@site/src/components/SupportedChains';

<EVMStreamChainData/>

:::info Reorgnization Before Confirmation
Until a block is confirmed, it is possible that a re-organization of the chain may occur, invalidating some information. If a re-organization does occur before a block is confirmed, the information associated with the block is deleted and the updated block is inserted in its place.
Expand Down
76 changes: 76 additions & 0 deletions docs/05-supported-chains/overview.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
title: "Supported Chains"
slug: "/supported-chains"
sidebar_position: 1
hide_sidebar: true
hide_table_of_contents: true
---

import { EVMChainData, EVMStreamChainData, EVMAuthChainData } from '@site/src/components/SupportedChains';
import { SolanaChainData, SolanaStreamChainData, SolanaAuthChainData } from '@site/src/components/SupportedChains';
import { AptosChainData, AptosStreamsChainData, AptosAuthChainData } from '@site/src/components/SupportedChains';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import styles from '@site/src/components/SupportedChains/tabsStyles.module.css';

# Supported Chains Overview

<Tabs groupId="list" queryString>
<TabItem value="evm" label="EVM" attributes={{className: styles.parentTab}}>

<Tabs groupId="api">
<TabItem value="web3" label="Web3 Data API" attributes={{className: styles.childTab}} default>

<EVMChainData />
</TabItem>

<TabItem value="streams" label="Streams API" attributes={{className: styles.childTab}}>
<EVMStreamChainData/>
</TabItem>

<TabItem value="auth" label="Auth API" attributes={{className: styles.childTab}}>
<EVMAuthChainData/>
</TabItem>
</Tabs>

</TabItem>

<TabItem value="solana" label="Solana" attributes={{className: styles.parentTab}}>

<Tabs groupId="api">
<TabItem value="web3" label="Web3 Data API" attributes={{className: styles.childTab}} default>

<SolanaChainData />
</TabItem>

<TabItem value="streams" label="Streams API" attributes={{className: styles.childTab}}>
<SolanaStreamChainData/>
</TabItem>

<TabItem value="auth" label="Auth API" attributes={{className: styles.childTab}}>
<SolanaAuthChainData/>
</TabItem>
</Tabs>

</TabItem>

<TabItem value="aptos" label="Aptos" attributes={{className: styles.parentTab}}>

<Tabs groupId="api">
<TabItem value="web3" label="Web3 Data API" attributes={{className: styles.childTab}} default>

<AptosChainData />
</TabItem>

<TabItem value="streams" label="Streams API" attributes={{className: styles.childTab}}>
<AptosStreamsChainData/>
</TabItem>

<TabItem value="auth" label="Auth API" attributes={{className: styles.childTab}}>
<AptosAuthChainData/>
</TabItem>
</Tabs>

</TabItem>
</Tabs>

6 changes: 6 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,12 @@ const config = {
className: "navbar__item--linebreak",
value: "<hr>",
},
{
type: "doc",
docId: "supported-chains/overview",
position: "right",
label: "Supported Chains",
},
{
type: "doc",
docId: "guides/overview",
Expand Down
23 changes: 23 additions & 0 deletions src/components/SupportedChains/Aptos/authAPI/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from "react";
import Table from "../../Utils/index";

const AptosAuthChainData = () => {
const headers = ["Name", "AptosNetwork", "Type"] as const;

const data: Record<(typeof headers)[number], string>[] = [
{
Name: "Aptos Mainnet",
AptosNetwork: "https://mainnet-aptos-api.moralis.io",
Type: "Mainnet",
},
{
Name: "Aptos Testnet",
AptosNetwork: "https://testnet-aptos-api.moralis.io",
Type: "Testnet",
},
];

return <Table headers={headers} data={data} />;
};

export default AptosAuthChainData;
Loading

1 comment on commit 4f49244

@vercel
Copy link

@vercel vercel bot commented on 4f49244 Sep 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.