Skip to content

Commit 2c6e85e

Browse files
docs: add tables of networks supported by data api
1 parent 11c09dc commit 2c6e85e

File tree

6 files changed

+188
-239
lines changed

6 files changed

+188
-239
lines changed

fern/api-reference/data/nft-api/nft-api-overview.mdx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,42 @@ Rather than searching, indexing, and storing data yourself - you can now make on
1313

1414
* All NFTs owned by an address
1515
* Metadata and attributes for a specific NFT token
16+
17+
## Supported Networks
18+
19+
Use the network slug in the request URL: `https://{network}.g.alchemy.com/nft/v3/{apiKey}/...`
20+
21+
**Mainnets:**
22+
23+
| Network Slug | | |
24+
|--------------|--------------|--------------|
25+
| `abstract-mainnet` | `alchemy-internal` | `anime-mainnet` |
26+
| `apechain-mainnet` | `arb-mainnet` | `arbnova-mainnet` |
27+
| `avax-mainnet` | `base-mainnet` | `berachain-mainnet` |
28+
| `blast-mainnet` | `bnb-mainnet` | `celo-mainnet` |
29+
| `eth-mainnet` | `gnosis-mainnet` | `lens-mainnet` |
30+
| `linea-mainnet` | `mythos-mainnet` | `opt-mainnet` |
31+
| `polygon-mainnet` | `ronin-mainnet` | `rootstock-mainnet` |
32+
| `scroll-mainnet` | `settlus-mainnet` | `shape-mainnet` |
33+
| `soneium-mainnet` | `starknet-mainnet` | `story-mainnet` |
34+
| `unichain-mainnet` | `worldchain-mainnet` | `zetachain-mainnet` |
35+
| `zksync-mainnet` | `zora-mainnet` | |
36+
37+
**Testnets:**
38+
39+
| Network Slug | | |
40+
|--------------|--------------|--------------|
41+
| `abstract-testnet` | `alchemy-sepolia` | `anime-sepolia` |
42+
| `apechain-curtis` | `arb-sepolia` | `avax-fuji` |
43+
| `base-sepolia` | `blast-sepolia` | `celo-sepolia` |
44+
| `eth-sepolia` | `gnosis-chiado` | `lens-sepolia` |
45+
| `linea-sepolia` | `monad-testnet` | `opt-sepolia` |
46+
| `polygon-amoy` | `ronin-saigon` | `rootstock-testnet` |
47+
| `scroll-sepolia` | `settlus-septestnet` | `shape-sepolia` |
48+
| `soneium-minato` | `starknet-sepolia` | `story-aeneid` |
49+
| `unichain-sepolia` | `worldchain-sepolia` | `zetachain-testnet` |
50+
| `zksync-sepolia` | `zora-sepolia` | |
51+
52+
<Info>
53+
Check the [Chains](https://dashboard.alchemy.com/chains) page for the most up-to-date product and chain support!
54+
</Info>

fern/api-reference/data/portfolio-apis/portfolio-apis.mdx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,48 @@ Portfolio APIs include *everything* you need to build a view of a user's assets:
1515
* 🪨 **Long Term Partners**: We have 7+ years of experience supporting the largest customers that are onchain and will be around to support you for the long term.
1616
* ⛰️**Scalable**: These APIs power some of the biggest Wallets in the space - rest easy knowing that we can scale with you.
1717

18+
## Supported Networks
19+
20+
Pass network slugs in the `networks` query parameter to fetch data across multiple chains in a single request.
21+
22+
**Mainnets:**
23+
24+
| Network Slug | | |
25+
|--------------|--------------|--------------|
26+
| `abstract-mainnet` | `alchemy-internal` | `anime-mainnet` |
27+
| `apechain-mainnet` | `arb-mainnet` | `arbnova-mainnet` |
28+
| `avax-mainnet` | `base-mainnet` | `berachain-mainnet` |
29+
| `blast-mainnet` | `bnb-mainnet` | `celo-mainnet` |
30+
| `eth-mainnet` | `gnosis-mainnet` | `hyperliquid-mainnet` |
31+
| `ink-mainnet` | `lens-mainnet` | `linea-mainnet` |
32+
| `mythos-mainnet` | `opt-mainnet` | `polygon-mainnet` |
33+
| `ronin-mainnet` | `rootstock-mainnet` | `scroll-mainnet` |
34+
| `settlus-mainnet` | `shape-mainnet` | `soneium-mainnet` |
35+
| `story-mainnet` | `unichain-mainnet` | `worldchain-mainnet` |
36+
| `zetachain-mainnet` | `zksync-mainnet` | `zora-mainnet` |
37+
38+
**Testnets:**
39+
40+
| Network Slug | | |
41+
|--------------|--------------|--------------|
42+
| `abstract-testnet` | `alchemy-sepolia` | `anime-sepolia` |
43+
| `apechain-curtis` | `arb-sepolia` | `avax-fuji` |
44+
| `base-sepolia` | `blast-sepolia` | `bnb-testnet` |
45+
| `celo-sepolia` | `eth-sepolia` | `gensyn-testnet` |
46+
| `gnosis-chiado` | `ink-sepolia` | `lens-sepolia` |
47+
| `linea-sepolia` | `monad-testnet` | `opt-sepolia` |
48+
| `polygon-amoy` | `ronin-saigon` | `rootstock-testnet` |
49+
| `scroll-sepolia` | `settlus-septestnet` | `shape-sepolia` |
50+
| `soneium-minato` | `sonic-blaze` | `story-aeneid` |
51+
| `tea-sepolia` | `unichain-sepolia` | `worldchain-sepolia` |
52+
| `zetachain-testnet` | `zksync-sepolia` | `zora-sepolia` |
53+
54+
<Info>
55+
Check the [Chains](https://dashboard.alchemy.com/chains) page for the most up-to-date product and chain support!
56+
</Info>
57+
58+
## Endpoints
59+
1860
| [**Get Tokens By Wallet**](/reference/get-tokens-by-address) | [**NFTs By Wallet**](/reference/get-nfts-by-address) | [Transaction History](/reference/get-transaction-history-by-address) |
1961
| ----------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
2062
| ![Image 1](https://alchemyapi-res.cloudinary.com/image/upload/v1764179965/docs/api-reference/data/cc619a4df5351c534c2c0f6c718d26336600c07275d076dd15fe80e1964aaee5-Screenshot_2025-02-24_at_4.22.57_PM.png) | ![Image 2](https://alchemyapi-res.cloudinary.com/image/upload/v1764179966/docs/api-reference/data/b6a2d47e1d0a755c480ec042ebfd011dcb7403c4338ded3c1a8e0edf106bc848-Screenshot_2025-02-24_at_4.22.10_PM.png) | ![Image 3](https://alchemyapi-res.cloudinary.com/image/upload/v1764179967/docs/api-reference/data/4b35a354494bf54afdd84697b1cabf8e199c9863394f50066727892e497111f1-Screenshot_2025-02-24_at_4.23.35_PM.png) |

fern/api-reference/data/prices-api/prices-api-quickstart.mdx

Lines changed: 22 additions & 146 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,28 @@ The Prices API includes the following REST endpoints:
2525

2626
***
2727

28+
# Supported Networks
29+
30+
For Token Prices By Address and Historical Prices endpoints, pass the network slug in the `network` field of your request body.
31+
32+
**Mainnets:**
33+
34+
| Network Slug | | |
35+
|--------------|--------------|--------------|
36+
| `apechain-mainnet` | `arb-mainnet` | `arbnova-mainnet` |
37+
| `avax-mainnet` | `base-mainnet` | `blast-mainnet` |
38+
| `bnb-mainnet` | `eth-mainnet` | `fantom-mainnet` |
39+
| `gnosis-mainnet` | `linea-mainnet` | `metis-mainnet` |
40+
| `opbnb-mainnet` | `opt-mainnet` | `polygon-mainnet` |
41+
| `polygonzkevm-mainnet` | `scroll-mainnet` | `solana-mainnet` |
42+
| `worldchain-mainnet` | `zetachain-mainnet` | `zksync-mainnet` |
43+
44+
<Info>
45+
Check the [Chains](https://dashboard.alchemy.com/chains) page for the most up-to-date product and chain support!
46+
</Info>
47+
48+
***
49+
2850
# Getting Started
2951

3052
## Via HTTP Requests
@@ -174,149 +196,3 @@ Execute the script from your command line:
174196
```
175197
</CodeGroup>
176198

177-
## Via Node Fetch
178-
179-
`node-fetch` is a lightweight option for making HTTP requests with Javascript.
180-
181-
### Installation
182-
183-
Install the `node-fetch` package using `npm` or `yarn`:
184-
185-
<CodeGroup>
186-
```shell npm
187-
npm install node-fetch
188-
```
189-
190-
```shell yarn
191-
yarn add node-fetch
192-
```
193-
</CodeGroup>
194-
195-
### Usage
196-
197-
Create a new JavaScript file (e.g., `prices-fetch-script.js`) and add the following code.
198-
199-
<CodeGroup>
200-
```js By Symbol
201-
// prices-fetch-script.js
202-
203-
204-
// Replace with your Alchemy API key:
205-
const apiKey = "YOUR_ALCHEMY_API_KEY";
206-
const fetchURL = `https://api.g.alchemy.com/prices/v1/${apiKey}/tokens/by-symbol`;
207-
208-
// Define the symbols you want to fetch prices for.
209-
const symbols = ["ETH", "BTC", "USDT"];
210-
211-
const params = new URLSearchParams();
212-
symbols.forEach(symbol => params.append('symbols', symbol));
213-
214-
const urlWithParams = `${fetchURL}?${params.toString()}`;
215-
216-
const requestOptions = {
217-
method: 'GET',
218-
headers: {
219-
'Content-Type': 'application/json',
220-
},
221-
};
222-
223-
fetch(urlWithParams, requestOptions)
224-
.then(response => response.json())
225-
.then(data => {
226-
console.log("Token Prices By Symbol:");
227-
console.log(JSON.stringify(data, null, 2));
228-
})
229-
.catch(error => console.error('Error:', error));
230-
```
231-
232-
```js By Address
233-
// prices-fetch-script.js
234-
235-
236-
// Replace with your Alchemy API key:
237-
const apiKey = "YOUR_ALCHEMY_API_KEY";
238-
const fetchURL = `https://api.g.alchemy.com/prices/v1/${apiKey}/tokens/by-address`;
239-
240-
// Define the network and contract addresses you want to fetch prices for.
241-
const requestBody = {
242-
addresses: [
243-
{
244-
network: "eth-mainnet",
245-
address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" // USDC
246-
},
247-
{
248-
network: "eth-mainnet",
249-
address: "0xdac17f958d2ee523a2206206994597c13d831ec7" // USDT
250-
}
251-
]
252-
};
253-
254-
const requestOptions = {
255-
method: 'POST',
256-
headers: {
257-
'Content-Type': 'application/json',
258-
'Authorization': `Bearer ${apiKey}`,
259-
},
260-
body: JSON.stringify(requestBody),
261-
};
262-
263-
fetch(fetchURL, requestOptions)
264-
.then(response => response.json())
265-
.then(data => {
266-
console.log("Token Prices By Address:");
267-
console.log(JSON.stringify(data, null, 2));
268-
})
269-
.catch(error => console.error('Error:', error));
270-
```
271-
</CodeGroup>
272-
273-
### Running the Script
274-
275-
Execute the script from your command line:
276-
277-
<CodeGroup>
278-
```bash bash
279-
node prices-fetch-script.js
280-
```
281-
</CodeGroup>
282-
283-
**Expected Output:**
284-
285-
<CodeGroup>
286-
```json json
287-
{
288-
"data": [
289-
{
290-
"symbol": "ETH",
291-
"prices": [
292-
{
293-
"currency": "USD",
294-
"value": "3000.00",
295-
"lastUpdatedAt": "2024-04-27T12:34:56Z"
296-
}
297-
],
298-
"error": null},
299-
{
300-
"symbol": "BTC",
301-
"prices": [
302-
{
303-
"currency": "USD",
304-
"value": "45000.00",
305-
"lastUpdatedAt": "2024-04-27T12:34:56Z"
306-
}
307-
],
308-
"error": null},
309-
{
310-
"symbol": "USDT",
311-
"prices": [
312-
{
313-
"currency": "USD",
314-
"value": "1.00",
315-
"lastUpdatedAt": "2024-04-27T12:34:56Z"
316-
}
317-
],
318-
"error": null}
319-
]
320-
}
321-
```
322-
</CodeGroup>

fern/api-reference/data/token-api/token-api-overview.mdx

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,52 @@ slug: reference/token-api-overview
1515

1616
With the Token API, you can retrieve token balances, metadata, and more. Easily request information on specific tokens such as **metadata** or **balances**.
1717

18+
## Supported Networks
19+
20+
Use the network slug in the request URL: `https://{network}.g.alchemy.com/v2/{apiKey}`
21+
22+
**Mainnets:**
23+
24+
| Network Slug | | |
25+
|--------------|--------------|--------------|
26+
| `abstract-mainnet` | `anime-mainnet` | `apechain-mainnet` |
27+
| `arb-mainnet` | `arbnova-mainnet` | `avax-mainnet` |
28+
| `base-mainnet` | `berachain-mainnet` | `blast-mainnet` |
29+
| `bnb-mainnet` | `celo-mainnet` | `eth-mainnet` |
30+
| `eth-mainnetbeacon` | `gensyn-mainnet` | `gnosis-mainnet` |
31+
| `hyperliquid-mainnet` | `ink-mainnet` | `lens-mainnet` |
32+
| `linea-mainnet` | `monad-mainnet` | `mythos-mainnet` |
33+
| `opt-mainnet` | `polygon-mainnet` | `ronin-mainnet` |
34+
| `rootstock-mainnet` | `scroll-mainnet` | `settlus-mainnet` |
35+
| `shape-mainnet` | `soneium-mainnet` | `story-mainnet` |
36+
| `unichain-mainnet` | `worldchain-mainnet` | `zetachain-mainnet` |
37+
| `zksync-mainnet` | `zora-mainnet` | |
38+
39+
**Testnets:**
40+
41+
| Network Slug | | |
42+
|--------------|--------------|--------------|
43+
| `abstract-testnet` | `anime-sepolia` | `apechain-curtis` |
44+
| `arb-sepolia` | `avax-fuji` | `base-sepolia` |
45+
| `berachain-artio` | `berachain-bartio` | `berachain-bepolia` |
46+
| `blast-sepolia` | `bnb-testnet` | `celo-alfajores` |
47+
| `celo-sepolia` | `eth-holesky` | `eth-holeskybeacon` |
48+
| `eth-hoodi` | `eth-hoodibeacon` | `eth-sepolia` |
49+
| `eth-sepoliabeacon` | `gensyn-testnet` | `gnosis-chiado` |
50+
| `hyperliquid-testnet` | `ink-sepolia` | `lens-sepolia` |
51+
| `linea-sepolia` | `monad-testnet` | `opt-sepolia` |
52+
| `polygon-amoy` | `ronin-saigon` | `rootstock-testnet` |
53+
| `scroll-sepolia` | `settlus-septestnet` | `shape-sepolia` |
54+
| `soneium-minato` | `story-aeneid` | `tea-sepolia` |
55+
| `unichain-sepolia` | `worldchain-sepolia` | `zetachain-testnet` |
56+
| `zksync-sepolia` | `zora-sepolia` | |
57+
58+
<Info>
59+
Check the [Chains](https://dashboard.alchemy.com/chains) page for the most up-to-date product and chain support!
60+
</Info>
61+
62+
## Endpoints
63+
1864
Alchemy currently supports the following [Token API Endpoints](/reference/token-api):
1965

2066
* [`alchemy_getTokenAllowance`](/reference/alchemy-gettokenallowance): Returns the amount which the sender is allowed to withdraw from the owner.

0 commit comments

Comments
 (0)