Skip to content

Commit

Permalink
Merge pull request #322 from MoralisWeb3/redirects
Browse files Browse the repository at this point in the history
Update Redirects
  • Loading branch information
Nazeim authored Dec 6, 2023
2 parents 9b7b453 + cb600b9 commit 5c60aee
Show file tree
Hide file tree
Showing 20 changed files with 48 additions and 49 deletions.
48 changes: 24 additions & 24 deletions api/data/redirects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export const redirects = [
},
{
source: "/docs/nft-api",
destination: "/web3-data-api/nft-api",
destination: "/web3-data-api/evm/nft-api",
permanent: true,
},
{
Expand Down Expand Up @@ -264,7 +264,7 @@ export const redirects = [
},
{
source: "/docs/token-api",
destination: "/web3-data-api/token-api",
destination: "/web3-data-api/evm/token-api",
permanent: true,
},
{
Expand Down Expand Up @@ -339,7 +339,7 @@ export const redirects = [
},
{
source: "/docs/transaction-api",
destination: "/web3-data-api/blockchain-api",
destination: "/web3-data-api/evm/blockchain-api",
permanent: true,
},
{
Expand All @@ -360,12 +360,12 @@ export const redirects = [
},
{
source: "/docs/events-api",
destination: "/web3-data-api/blockchain-api",
destination: "/web3-data-api/evm/blockchain-api",
permanent: true,
},
{
source: "/docs/block-api",
destination: "/web3-data-api/blockchain-api",
destination: "/web3-data-api/evm/blockchain-api",
permanent: true,
},
{
Expand All @@ -390,7 +390,7 @@ export const redirects = [
},
{
source: "/docs/defi-api",
destination: "/web3-data-api/blockchain-api",
destination: "/web3-data-api/evm/blockchain-api",
permanent: true,
},
{
Expand Down Expand Up @@ -2147,7 +2147,7 @@ export const redirects = [
},
{
source: "/reference/supported-chains-for-nft-api",
destination: "/web3-data-api/nft-api",
destination: "/web3-data-api/evm/nft-api",
permanent: true,
},
{
Expand Down Expand Up @@ -2648,7 +2648,7 @@ export const redirects = [
},
{
source: "/reference/token",
destination: "/web3-data-api/token-api",
destination: "/web3-data-api/evm/token-api",
permanent: true,
},
{
Expand Down Expand Up @@ -2737,7 +2737,7 @@ export const redirects = [
},
{
source: "/reference/token-4",
destination: "/web3-data-api/token-api",
destination: "/web3-data-api/evm/token-api",
permanent: true,
},
{
Expand Down Expand Up @@ -2808,7 +2808,7 @@ export const redirects = [
},
{
source: "/moralis-sdk/historical-transactions",
destination: "/web3-data-api/blockchain-api",
destination: "/web3-data-api/evm/blockchain-api",
permanent: true,
},
{
Expand Down Expand Up @@ -3116,7 +3116,7 @@ export const redirects = [
},
{
source: "/reference/token-1",
destination: "/web3-data-api/token-api",
destination: "/web3-data-api/evm/token-api",
permanent: true,
},
{
Expand Down Expand Up @@ -3625,7 +3625,7 @@ export const redirects = [
},
{
source: "/moralis-server/web3-sdk/defi-new",
destination: "/web3-data-api/blockchain-api",
destination: "/web3-data-api/evm/blockchain-api",
permanent: true,
},
{
Expand Down Expand Up @@ -3677,7 +3677,7 @@ export const redirects = [
},
{
source: "/reference/nft-api",
destination: "/web3-data-api/nft-api",
destination: "/web3-data-api/evm/nft-api",
permanent: false,
},
{
Expand Down Expand Up @@ -3968,7 +3968,7 @@ export const redirects = [
},
{
source: "/moralis-web3-rest/nft-api",
destination: "/web3-data-api/nft-api",
destination: "/web3-data-api/evm/nft-api",
permanent: true,
},
{
Expand Down Expand Up @@ -4215,7 +4215,7 @@ export const redirects = [
},
{
source: "/moralis-dapp/web3-api/token",
destination: "/web3-data-api/token-api",
destination: "/web3-data-api/evm/token-api",
permanent: true,
},
{
Expand Down Expand Up @@ -4861,7 +4861,7 @@ export const redirects = [
},
{
source: "/moralis-dapp/web3-api/nft-api",
destination: "/web3-data-api/nft-api",
destination: "/web3-data-api/evm/nft-api",
permanent: true,
},
{
Expand Down Expand Up @@ -4911,7 +4911,7 @@ export const redirects = [
},
{
source: "/moralis-dapp/web3-sdk/token",
destination: "/web3-data-api/token-api",
destination: "/web3-data-api/evm/token-api",
permanent: true,
},
{
Expand Down Expand Up @@ -5254,7 +5254,7 @@ export const redirects = [
},
{
source: "/moralis-dapp/web3-api/defi-new",
destination: "/web3-data-api/blockchain-api",
destination: "/web3-data-api/evm/blockchain-api",
permanent: true,
},
{
Expand Down Expand Up @@ -5478,8 +5478,8 @@ export const redirects = [
permanent: true,
},
{
source: "/web3-data-api/nft-api",
destination: "/web3-data-api/nft-api",
source: "/web3-data-api/evm/nft-api",
destination: "/web3-data-api/evm/nft-api",
permanent: true,
},
{
Expand Down Expand Up @@ -6547,22 +6547,22 @@ export const redirects = [
permanent: true,
},
{
source: "/web3-data-api/token-api/erc20-spam-detection",
source: "/web3-data-api/evm/token-api/erc20-spam-detection",
destination: "/web3-data-api/evm/erc20-spam-detection",
permanent: true,
},
{
source: "/web3-data-api/token-api/report-erc20-spam",
source: "/web3-data-api/evm/token-api/report-erc20-spam",
destination: "/web3-data-api/evm/report-erc20-spam",
permanent: true,
},
{
source: "/web3-data-api/nft-api/nft-spam-detection",
source: "/web3-data-api/evm/nft-api/nft-spam-detection",
destination: "/web3-data-api/evm/nft-spam-detection",
permanent: true,
},
{
source: "/web3-data-api/nft-api/report-nft-spam",
source: "/web3-data-api/evm/nft-api/report-nft-spam",
destination: "/web3-data-api/evm/report-nft-spam",
permanent: true,
},
Expand Down
2 changes: 1 addition & 1 deletion docs/01-web3-data-api/aptos/coin-api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Coin"
slug: "../coin-api"
slug: "/web3-data-api/aptos/coin-api"
description: "The Coin API is a tool that allows Web3 developers to easily access coin data from Aptos blockchains."
sidebar_position: 4
sidebar_class_name: "sidebar-token-api"
Expand Down
2 changes: 1 addition & 1 deletion docs/01-web3-data-api/aptos/nft-api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "NFT"
slug: "../nft-api"
slug: "/web3-data-api/aptos/nft-api"
description: "The NFT API is a tool that allows Web3 developers to easily access NFT data from Aptos blockchains."
sidebar_position: 3
sidebar_class_name: "sidebar-nft-api"
Expand Down
2 changes: 1 addition & 1 deletion docs/01-web3-data-api/aptos/transactions-api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Transactions"
slug: "../transactions-api"
slug: "/web3-data-api/aptos/transactions-api"
description: "The Transaction API is a tool that allows Web3 developers to easily access transaction data from Aptos blockchains."
sidebar_position: 6
sidebar_class_name: "sidebar-transaction-api"
Expand Down
2 changes: 1 addition & 1 deletion docs/01-web3-data-api/aptos/wallet-api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Wallet"
slug: "../wallet-api"
slug: "/web3-data-api/aptos/wallet-api"
description: "The Wallet API is a tool that allows Web3 developers to easily access wallet activity data from Aptos blockchains."
sidebar_position: 5
sidebar_class_name: "sidebar-balance-api"
Expand Down
1 change: 0 additions & 1 deletion docs/01-web3-data-api/evm/blockchain-api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: "Guides to Blockchain API"
slug: "../blockchain-api"
description: "The Block API is a tool that allows Web3 developers to easily access data from specific blocks across various blockchains. It offers functionality like fetching block contents by block hash and finding the closest block by date."
sidebar_position: 7
sidebar_class_name: "sidebar-block-api"
Expand Down
2 changes: 1 addition & 1 deletion docs/01-web3-data-api/evm/developer-tools.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Developer tools"
sidebar_position: 8
slug: "../../developer-tools"
slug: "../developer-tools"
sidebar_class_name: "sidebar-developer-tools"
---

Expand Down
2 changes: 1 addition & 1 deletion docs/01-web3-data-api/evm/nft-api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Overview"
slug: "../nft-api"
slug: "/web3-data-api/evm/nft-api"
description: "Fetch real-time NFT metadata, ownership data, transfer data, NFT prices, and much more with the most popular cross-chain NFT API in Web3."
sidebar_position: 1
sidebar_class_name: "sidebar-nft-api"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ApiBanner from "@site/src/components/ApiBanner/ApiBanner.tsx";

<ApiBanner />

Through our [NFT APIs](/web3-data-api/nft-api), you have the option to receive either a [normalized or non-normalized NFT metadata](/web3-data-api/evm/normalized-vs-non-normalized-metadata).
Through our [NFT APIs](/web3-data-api/evm/nft-api), you have the option to receive either a [normalized or non-normalized NFT metadata](/web3-data-api/evm/normalized-vs-non-normalized-metadata).

To use this feature, simply set `normalizeMetadata` parameter to `true`.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Market Data API"
sidebar_label: "Market Data API"
slug: "../market-data--api"
slug: "../market-data-api"
sidebar_class_name: "sidebar-market-data-api"
sidebar_position: 4
---
Expand Down
2 changes: 1 addition & 1 deletion docs/01-web3-data-api/evm/token-api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Overview"
slug: "../token-api"
slug: "/web3-data-api/evm/token-api"
description: "Fetch real-time ERC20 token data into your applications with Moralis’s powerful cross-chain Token API, providing seamless access to price, ownership and transfer data."
sidebar_position: 1
sidebar_class_name: "sidebar-token-api"
Expand Down
4 changes: 2 additions & 2 deletions docs/01-web3-data-api/evm/token-api/supported-dexs.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ sidebar_label: "Supported DEXs"
sidebar_position: 5
---

The [Moralis Token API](/web3-data-api/token-api) seamlessly integrates with leading decentralized exchanges (DEXs) across multiple EVM blockchains, providing comprehensive support for token-related data.
The [Moralis Token API](/web3-data-api/evm/token-api) seamlessly integrates with leading decentralized exchanges (DEXs) across multiple EVM blockchains, providing comprehensive support for token-related data.

## DEX Support by Chain

The following tables show you how to find a list of supported chains on the [Moralis Token API](/web3-data-api/token-api), along with the corresponding decentralized exchanges (DEXs) available on each chain.
The following tables show you how to find a list of supported chains on the [Moralis Token API](/web3-data-api/evm/token-api), along with the corresponding decentralized exchanges (DEXs) available on each chain.

Simply click on a chain's name to jump to its respective section for more details:

Expand Down
2 changes: 1 addition & 1 deletion docs/01-web3-data-api/solana/balance-api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Balance"
slug: "../balance-api"
slug: "/web3-data-api/solana/balance-api"
sidebar_position: 5
sidebar_class_name: "sidebar-balance-api"
---
Expand Down
2 changes: 1 addition & 1 deletion docs/01-web3-data-api/solana/nft-api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "NFT"
slug: "../nft-api"
slug: "/web3-data-api/solana/nft-api"
sidebar_position: 3
sidebar_class_name: "sidebar-nft-api"
---
Expand Down
2 changes: 1 addition & 1 deletion docs/01-web3-data-api/solana/token-api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Token"
slug: "../token-api"
slug: "/web3-data-api/solana/token-api"
sidebar_position: 4
sidebar_class_name: "sidebar-token-api"
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Security"
title: "Webhook Security"
slug: "../webhook-security"
sidebar_position: 5
description: "Keep your webhook requests secure with our implementation that signs every request with the web3api key. The signature is included in the request headers and can be easily verified by using our provided JavaScript function or adapting it for your preferred programming language."
Expand Down
10 changes: 5 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,39 +88,39 @@ description: "Integrate Web3 into any tech stack. Follow Moralis’ documentatio
</div>
<div className="col col--4">
<div className="col-demo margin-bottom--lg">
<a className="card padding--lg card--homepage" href="/web3-data-api/nft-api">
<a className="card padding--lg card--homepage" href="/web3-data-api/evm/reference/market-data-api">
<h3><svg id="Layer_24" xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 23.78 23.78"><line className="cls-1" x1="1.68" y1="21.66" x2="21.87" y2="21.66" fill="#6fc276"/><rect className="cls-4" x="3.59" y="17.65" width="2.58" height="3.99" fill="#6fc276"/><rect className="cls-4" x="10.53" y="15.76" width="2.58" height="5.88" fill="#6fc276"/><rect className="cls-4" x="17.48" y="12.68" width="2.58" height="8.96" fill="#6fc276"/><polyline className="cls-3" points="2.55 12.45 9.07 6.01 13.2 10.14 20.62 2.72" fill="#6fc276"/><polyline className="cls-2" points="16.42 2.01 21.75 2.01 21.75 7.05" fill="#6fc276"/></svg>&nbsp;&nbsp;<span>Market Data API</span></h3>
<p>Explore the latest market trends for ERC20 tokens and NFTs.</p>
</a>
</div>
</div>
<div className="col col--4">
<div className="col-demo margin-bottom--lg">
<a className="card padding--lg card--homepage" href="/web3-data-api/nft-api">
<a className="card padding--lg card--homepage" href="/web3-data-api/evm/reference/nft-api">
<h3><svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" fill="none"><g clipPath="url(#a)"><path stroke="#BC68FF" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2.6" d="m23.258 6.528 6.312-3.876c1.612-.995 3.687.171 3.687 2.058v18.129M12.899 6.528 6.57 2.652c-1.612-.995-3.687.171-3.687 2.058v18.129"/><path stroke="#9B22FF" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2.8" d="M21.543 33.608h-6.929c-6.483 0-11.731-5.248-11.731-11.73v-1.081c0-8.353 8.13-15.18 15.178-15.18 7.05 0 15.18 6.827 15.18 15.18v1.08c0 6.483-5.25 11.732-11.732 11.732h.034Z"/><path fill="#9B22FF" d="m16.518 23.37 1.56.789 1.544-.79"/><path stroke="#BC68FF" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2.6" d="m16.518 23.37 1.56.789 1.544-.79M18.079 24.468v2.109"/><circle cx="12.105" cy="17.95" r="2.084" fill="#9B22FF"/><circle cx="24.035" cy="17.95" r="2.084" fill="#9B22FF"/></g><defs><clipPath id="a"><path fill="#fff" d="M1.476.885h33.187v34.13H1.476z"/></clipPath></defs></svg>&nbsp;&nbsp;<span>NFT API</span></h3>
<p>Summon all NFT transfers, prices, and metadata in realtime.</p>
</a>
</div>
</div>
<div className="col col--4">
<div className="col-demo margin-bottom--lg">
<a className="card padding--lg card--homepage" href="/web3-data-api/token-api">
<a className="card padding--lg card--homepage" href="/web3-data-api/evm/reference/token-api">
<h3><svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" fill="none"><g strokeLinejoin="round" strokeWidth="2.8" clipPath="url(#a)"><path stroke="#F0C800" d="M5.261 10.055 19.124 2.05l13.863 8.004v16.007l-13.863 8.004L5.26 26.062V10.055Z"/><path stroke="#D69700" d="m19.124 10.412 4.588 7.646-4.588 7.646-4.587-7.646 4.587-7.646Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h36v36H0z"/></clipPath></defs></svg>&nbsp;&nbsp;<span>Token API</span></h3>
<p>Access all the information you need for any ERC20 tokens.</p>
</a>
</div>
</div>
<div className="col col--4">
<div className="col-demo margin-bottom--lg">
<a className="card padding--lg card--homepage" href="/web3-data-api/evm/wallet-api">
<a className="card padding--lg card--homepage" href="/web3-data-api/evm/reference/wallet-api">
<h3><svg xmlns="http://www.w3.org/2000/svg" width="33" height="32" viewBox="0 0 33 32" fill="none"><g clip-path="url(#clip0_9467_365051)"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.86492 7.21751C5.96092 7.21751 5.22808 7.94751 5.22808 8.84801V23.152C5.22808 24.0525 5.96092 24.7825 6.86492 24.7825H24.1882C25.0922 24.7825 25.8251 24.0525 25.8251 23.152V20.8112C25.8251 20.0608 26.4358 19.4525 27.1891 19.4525C27.9424 19.4525 28.5531 20.0608 28.5531 20.8112V23.152C28.5531 25.5533 26.5989 27.5 24.1882 27.5H6.86492C4.45424 27.5 2.5 25.5533 2.5 23.152V8.84801C2.5 6.44667 4.45424 4.5 6.86492 4.5H24.1882C26.5989 4.5 28.5531 6.44667 28.5531 8.84801V11.1888C28.5531 11.9392 27.9424 12.5475 27.1891 12.5475C26.4358 12.5475 25.8251 11.9392 25.8251 11.1888V8.84801C25.8251 7.94751 25.0922 7.21751 24.1882 7.21751H6.86492Z" fill="#57A5FF"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M19.724 13.7146C19.6076 13.7146 19.5132 13.8086 19.5132 13.9246V18.0626C19.5132 18.1786 19.6076 18.2726 19.724 18.2726H27.5735C27.6899 18.2726 27.7843 18.1786 27.7843 18.0626V13.9246C27.7843 13.8086 27.6899 13.7146 27.5735 13.7146H19.724ZM16.7852 13.9246C16.7852 12.3078 18.1009 10.9971 19.724 10.9971H27.5735C29.1966 10.9971 30.5123 12.3078 30.5123 13.9246V18.0626C30.5123 19.6794 29.1966 20.9901 27.5735 20.9901H19.724C18.1009 20.9901 16.7852 19.6794 16.7852 18.0626V13.9246Z" fill="#57A5FF"></path><path d="M22.6874 15.9999C22.6874 15.4336 22.2266 14.9746 21.6581 14.9746C21.0897 14.9746 20.6289 15.4336 20.6289 15.9999C20.6289 16.5661 21.0897 17.0251 21.6581 17.0251C22.2266 17.0251 22.6874 16.5661 22.6874 15.9999Z" fill="#57A5FF"></path></g><defs><clipPath id="clip0_9467_365051"><rect width="28" height="23" fill="white" transform="translate(2.5 4.5)"></rect></clipPath></defs></svg>&nbsp;&nbsp;Wallet API</h3>
<p>Get all the balances and transactions for a specific wallet address.</p>
</a>
</div>
</div>
<div className="col col--4">
<div className="col-demo margin-bottom--lg">
<a className="card padding--lg card--homepage" href="/web3-data-api/blockchain-api">
<a className="card padding--lg card--homepage" href="/web3-data-api/evm/reference/blockchain-api">
<h3><svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" fill="none"><g stroke-linecap="round" stroke-linejoin="round" stroke-width="2.6" clip-path="url(#a)"><path stroke="#279B4F" d="M30.6 23.584v-11.2c0-.994-.532-1.918-1.4-2.422l-9.8-5.6a2.782 2.782 0 0 0-2.8 0l-9.8 5.6a2.804 2.804 0 0 0-1.4 2.422v11.2c0 .994.532 1.918 1.4 2.422l9.8 5.6a2.782 2.782 0 0 0 2.8 0l9.8-5.6a2.804 2.804 0 0 0 1.4-2.422Z"></path><path stroke="#279B4F" d="M5.777 10.928 18 17.998l12.222-7.07M18 32.096V17.984"></path><path stroke="#6DE983" d="m9.026 23.332 5.32-3.08M21.445 20.252l5.32 3.08"></path></g><defs><clipPath id="a"><path fill="#fff" d="M4 2.584h28v30.912H4z"></path></clipPath></defs></svg>&nbsp;&nbsp;Blockchain API</h3>
<p>Get the Blocks, Transactions and logs data of a blockchain.</p>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "When working with NFT Metadata, you have the option to receive eit
sidebar_position: 0
---

Through our [NFT APIs](/web3-data-api/nft-api), you have the option to receive either a [normalized or non-normalized NFT metadata](/web3-data-api/evm/normalized-vs-non-normalized-metadata).
Through our [NFT APIs](/web3-data-api/evm/nft-api), you have the option to receive either a [normalized or non-normalized NFT metadata](/web3-data-api/evm/normalized-vs-non-normalized-metadata).

To use this feature, simply set `normalizeMetadata` parameter to `true`.

Expand Down
Loading

1 comment on commit 5c60aee

@vercel
Copy link

@vercel vercel bot commented on 5c60aee Dec 6, 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.