Skip to content

Commit

Permalink
Merge pull request #543 from MoralisWeb3/docs-updates
Browse files Browse the repository at this point in the history
Docs updates
  • Loading branch information
bharathbabu-moralis authored Jan 7, 2025
2 parents 41038b9 + ab4bdc2 commit 0f55653
Show file tree
Hide file tree
Showing 19 changed files with 81 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ description: Get historical OHLCV data for token pairs on EVM chains. Analyze pr
import ApiReference from "@site/src/components/ApiReference";
import config from "../../../../../configs/api-reference/configs.json";
import SolanaApiBanner from "@site/src/components/SolBanner/SolApiBanner.tsx";
import { MainnetBadge } from '@site/src/components/MainnetBadge/MainnetBadge.js';

# Get OHLCV by Pair Address
# Get OHLCV by Pair Address <MainnetBadge />

import ChartWidgetBanner from "@site/src/components/ChartWidgetBanner/ChartWidgetBanner.tsx";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ description: Get historical OHLCV data for token pairs on EVM chains. Analyze pr
import ApiReference from "@site/src/components/ApiReference";
import SolanaApiBanner from "@site/src/components/SolBanner/SolApiBanner.tsx";
import config from "../../../../../configs/api-reference/configs.json";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get OHLCV by Pair Address
# Get OHLCV by Pair Address <MainnetBadge />

import ChartWidgetBanner from "@site/src/components/ChartWidgetBanner/ChartWidgetBanner.tsx";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
sidebar_position: 0
sidebar_label: Get Swaps by Pair Address
slug: /web3-data-api/evm/reference/get-swaps-by-pair-address
title: Get Swaps by Pair Address for EVM
description: Retrieve swap transaction data for a specific token pair address on EVM chains.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "../../../../../configs/api-reference/configs.json";
import Admonition from "@theme/Admonition";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

import SolanaApiBanner from "@site/src/components/SolBanner/SolApiBanner.tsx";

# Get Swaps by Pair Address
# Get Swaps by Pair Address <MainnetBadge />

<SolanaApiBanner
customTitle="Looking for swaps by pair address on Solana?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
sidebar_position: 1
sidebar_label: Get Swaps by Token Address
slug: /web3-data-api/evm/reference/get-swaps-by-token-address
title: Get Swaps by Token Address for EVM
description: Retrieve swap transaction data for a specific token address on EVM chains.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "../../../../../configs/api-reference/configs.json";
import Admonition from "@theme/Admonition";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

import SolanaApiBanner from "@site/src/components/SolBanner/SolApiBanner.tsx";

# Get Swaps by Token Address
# Get Swaps by Token Address <MainnetBadge />

<SolanaApiBanner
customTitle="Looking for swaps by token address on Solana?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
sidebar_position: 2
sidebar_label: Get Swaps by Wallet Address
slug: /web3-data-api/evm/reference/get-swaps-by-wallet-address
title: Get Swaps by Wallet Address for EVM
description: Retrieve swap transaction data for a specific wallet address on EVM chains.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "../../../../../configs/api-reference/configs.json";
import Admonition from "@theme/Admonition";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

import SolanaApiBanner from "@site/src/components/SolBanner/SolApiBanner.tsx";

# Get Swaps by Wallet Address
# Get Swaps by Wallet Address <MainnetBadge />

<SolanaApiBanner
customTitle="Looking for swaps by wallet address on Solana?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
sidebar_position: 2
sidebar_label: Get Aggregated Token Pair Stats
slug: /web3-data-api/evm/reference/get-aggregated-token-pair-stats
title: Get Aggregated Token Pair Stats for EVM
description: Retrieve aggregated statistics for token pairs on EVM chains, including trading volumes and liquidity metrics.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "@site/docs/configs/api-reference/configs.json";
import SolanaApiBanner from "@site/src/components/SolBanner/SolApiBanner.tsx";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get Aggregated Token Pair Stats
# Get Aggregated Token Pair Stats <MainnetBadge />

import ApiBanner from "@site/src/components/ApiBanner/ApiBanner.tsx";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
sidebar_position: 1
sidebar_label: Get Token Pair Stats
slug: /web3-data-api/evm/reference/get-token-pair-stats
title: Get Pair Stats for EVM
description: Retrieve statistics for token pairs on EVM chains, including volume and liquidity data.
---

import ApiReference from "@site/src/components/ApiReference";
import SolanaApiBanner from "@site/src/components/SolBanner/SolApiBanner.tsx";
import config from "@site/docs/configs/api-reference/configs.json";
import Admonition from "@theme/Admonition";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get Token Pair Stats
# Get Token Pair Stats <MainnetBadge />

import ApiBanner from "@site/src/components/ApiBanner/ApiBanner.tsx";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
sidebar_position: 0
sidebar_label: Get Token Pairs by Address
slug: /web3-data-api/evm/reference/get-token-pairs
title: Get Token Pairs by Address for EVM
description: Retrieve all token pairs for a given address across all supported DEXes on EVM chains.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "@site/docs/configs/api-reference/configs.json";
import SolanaApiBanner from "@site/src/components/SolBanner/SolApiBanner.tsx";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get Token Pairs by Address
# Get Token Pairs by Address <MainnetBadge />

import ApiBanner from "@site/src/components/ApiBanner/ApiBanner.tsx";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
sidebar_position: 0
sidebar_label: Get Swaps by Wallet Address
slug: /web3-data-api/evm/reference/wallet-api/get-swaps-by-wallet-address
title: Get Swaps by Wallet Address for EVM
description: Retrieve swap transaction data for a specific wallet address on EVM chains.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "../../../../../configs/api-reference/configs.json";

import SolanaApiBanner from "@site/src/components/SolBanner/SolApiBanner.tsx";
import Admonition from "@theme/Admonition";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get Swaps by Wallet Address
# Get Swaps by Wallet Address <MainnetBadge />

<SolanaApiBanner
customTitle="Looking for swaps by wallet address on Solana?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import config from "@site/docs/configs/api-reference/configs.json";
import EthereumApiBanner from "@site/src/components/EthBanner/EthApiBanner.tsx";

import ChartWidgetBanner from "@site/src/components/ChartWidgetBanner/ChartWidgetBanner.tsx";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get OHLCV by Pair Address
# Get OHLCV by Pair Address <MainnetBadge />

<div
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
sidebar_position: 1
sidebar_label: Get Swaps by Pair Address
slug: /web3-data-api/solana/reference/get-swaps-by-pair-address
title: Get Swaps by Pair Address for Solana
description: Retrieve swap transaction data for a specific token pair address on Solana.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "@site/docs/configs/api-reference/configs.json";
import EthereumApiBanner from "@site/src/components/EthBanner/EthApiBanner.tsx";
import Admonition from "@theme/Admonition";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get Swaps by Pair Address
# Get Swaps by Pair Address <MainnetBadge />

<EthereumApiBanner
customTitle="Looking for swaps by pair address on EVM?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
sidebar_position: 1
sidebar_label: Get Swaps by Token Address
slug: /web3-data-api/solana/reference/get-swaps-by-token-address
title: Get Swaps by Token Address for Solana
description: Retrieve swap transaction data for a specific token address on Solana.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "@site/docs/configs/api-reference/configs.json";
import EthereumApiBanner from "@site/src/components/EthBanner/EthApiBanner.tsx";
import Admonition from "@theme/Admonition";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get Swaps by Token Address
# Get Swaps by Token Address <MainnetBadge />

<EthereumApiBanner
customTitle="Looking for swaps by token address on EVM?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
sidebar_position: 2
sidebar_label: Get Swaps by Wallet Address
slug: /web3-data-api/solana/reference/get-swaps-by-wallet-address
title: Get Swaps by Wallet Address for Solana
description: Retrieve swap transaction data for a specific wallet address on Solana.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "@site/docs/configs/api-reference/configs.json";
import EthereumApiBanner from "@site/src/components/EthBanner/EthApiBanner.tsx";
import Admonition from "@theme/Admonition";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get Swaps by Wallet Address
# Get Swaps by Wallet Address <MainnetBadge />

<EthereumApiBanner
customTitle="Looking for swaps by wallet address on EVM?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
sidebar_position: 5
sidebar_label: Get Aggregated Token Pair Stats
slug: /web3-data-api/solana/reference/get-aggregated-token-pair-stats
title: Get Aggregated Pair Stats for Solana
description: Retrieve aggregated statistics for token pairs on Solana, including trading volumes and liquidity metrics.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "@site/docs/configs/api-reference/configs.json";
import EthereumApiBanner from "@site/src/components/EthBanner/EthApiBanner.tsx";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get Aggregated Token Pair Stats
# Get Aggregated Token Pair Stats <MainnetBadge />

<EthereumApiBanner
customTitle="Looking for aggregated token pair stats on EVM?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
sidebar_position: 4
sidebar_label: Get Token Pair Stats
slug: /web3-data-api/solana/reference/get-token-pair-stats
title: Get Pair Stats for Solana
description: Retrieve statistics for token pairs on Solana, including volume and liquidity data.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "@site/docs/configs/api-reference/configs.json";
import EthereumApiBanner from "@site/src/components/EthBanner/EthApiBanner.tsx";

import Admonition from "@theme/Admonition";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get Token Pair Stats
# Get Token Pair Stats <MainnetBadge />

<ApiReference {...config.solana.getPairStats} >
<EthereumApiBanner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
sidebar_position: 3
sidebar_label: Get Token Pairs by Address
slug: /web3-data-api/solana/reference/get-token-pairs-by-address
title: Get Token Pairs for Solana
description: Retrieve a list of token pairs on Solana, including their addresses and metadata.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "@site/docs/configs/api-reference/configs.json";
import EthereumApiBanner from "@site/src/components/EthBanner/EthApiBanner.tsx";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get Token Pairs by Address
# Get Token Pairs by Address <MainnetBadge />

<EthereumApiBanner
customTitle="Looking for token pairs by address on EVM?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import config from "@site/docs/configs/api-reference/configs.json";

import ChartWidgetBanner from "@site/src/components/ChartWidgetBanner/ChartWidgetBanner.tsx";
import EthereumApiBanner from "@site/src/components/EthBanner/EthApiBanner.tsx";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get OHLCV by Pair Address
# Get OHLCV by Pair Address <MainnetBadge />

<div
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
sidebar_position: 4
sidebar_label: Get Wallet Token Swaps
slug: /web3-data-api/solana/reference/get-wallet-swap-txs
title: Get Swaps by Wallet Address for Solana
description: Retrieve swap transaction data for a specific wallet address on Solana.
---

import ApiReference from "@site/src/components/ApiReference";
import config from "@site/docs/configs/api-reference/configs.json";
import EthereumApiBanner from "@site/src/components/EthBanner/EthApiBanner.tsx";
import Admonition from "@theme/Admonition";
import { MainnetBadge } from "@site/src/components/MainnetBadge/MainnetBadge.js";

# Get Swaps by Wallet Address
# Get Swaps by Wallet Address <MainnetBadge />

<EthereumApiBanner
customTitle="Looking for swaps by wallet address on EVM?"
Expand Down
17 changes: 17 additions & 0 deletions src/components/MainnetBadge/MainnetBadge.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";

export const MainnetBadge = () => (
<span
style={{
padding: "4px 8px",
fontSize: "12px",
fontWeight: "bold",
color: "#fff",
backgroundColor: "#f39c12",
borderRadius: "4px",
marginLeft: "8px",
}}
>
Mainnet Only
</span>
);

0 comments on commit 0f55653

Please sign in to comment.