---
title: "從 Sim 遷移至 Alchemy 的 Data APIs"
description: "Dune 將於 2026 年 8 月 1 日終止 Sim API 服務。Alchemy 的 Data APIs 涵蓋了 EVM 鏈與 Solana 上最常見的 Sim 遷移路徑。"
---

# 從 Sim 遷移至 Alchemy 的 Data APIs

<ImageBlock
  src="https://media.alchemy.com/blog/sim-migration-guide-2026-06.png"
  alt="Sim API 遷移至 Alchemy Data API 指南橫幅"
  width={5760}
  height={2700}
  priority
/>

[Dune 將於 2026 年 8 月 1 日終止 Sim API](https://dune.com/blog/sunsetting-sim)。如果你的應用程式使用 Sim 來取得錢包餘額、交易紀錄、代幣資料或 DeFi 部位，你需要在期限前找到替代方案。

大多數餘額、NFT、代幣與活動相關的工作流程，都能對應到[Alchemy 的 Data APIs](https://www.alchemy.com/docs/data)。少數項目沒有直接對應的產品化端點，這些會在下方標註出來，方便你在搬移正式環境流量前先評估範圍。

## Alchemy 涵蓋的範圍

下方表格將最常用的 Sim 端點對應到最接近的 Alchemy 端點。標註「No equivalent」的列沒有直接對應的產品化端點，這類工作流程請在切換正式環境流量前先與 Alchemy 團隊溝通。

### 代幣與餘額

<EmbeddedTable
  table={{
    columns: [
      {
        key: "simEndpoint",
        width: 220,
        title: "Sim endpoint",
        dataType: "object",
      },
      {
        key: "alchemyEquivalent",
        width: 260,
        title: "Alchemy endpoint",
        dataType: "object",
      },
      { key: "notes", width: 360, title: "Notes", dataType: "object" },
    ],
    data: [
      {
        id: 0,
        simEndpoint: {
          title: "<p><code>GET /evm/balances/{address}</code></p>",
          tooltip: "",
          icon: "",
        },
        alchemyEquivalent: {
          title:
            "<p><code>POST /data/v1/{apiKey}/assets/tokens/by-address</code></p>",
          tooltip: "",
          icon: "",
        },
        notes: {
          title:
            '<p>多鏈餘額，並包含即時美元價格。同樣適用於 SVM 位址。<a href="https://www.alchemy.com/docs/data/portfolio-apis/portfolio-api-endpoints/portfolio-api-endpoints/get-tokens-by-address">查看文件。</a></p>',
          tooltip: "",
          icon: "",
        },
      },
      {
        id: 1,
        simEndpoint: {
          title: "<p><code>GET /evm/stablecoins/{address}</code></p>",
          tooltip: "",
          icon: "",
        },
        alchemyEquivalent: {
          title:
            "<p><code>POST /data/v1/{apiKey}/assets/tokens/by-address</code></p>",
          tooltip: "",
          icon: "",
        },
        notes: {
          title:
            '<p>穩定幣本質上是已內含價格的 ERC-20 代幣，請在用戶端自行篩選。<a href="https://www.alchemy.com/docs/data/portfolio-apis/portfolio-api-endpoints/portfolio-api-endpoints/get-tokens-by-address">查看文件。</a></p>',
          tooltip: "",
          icon: "",
        },
      },
      {
        id: 2,
        simEndpoint: {
          title: "<p><code>GET /evm/token-info/{chain}/{token}</code></p>",
          tooltip: "",
          icon: "",
        },
        alchemyEquivalent: {
          title:
            "<p><code>alchemy_getTokenMetadata</code></p><p><code>POST /prices/v1/{apiKey}/tokens/by-address</code></p>",
          tooltip: "",
          icon: "",
        },
        notes: {
          title:
            '<p>任意查詢需使用兩次呼叫。Tokens By Wallet 已內建處理錢包情境。請參閱 <a href="https://www.alchemy.com/docs/data/token-api/token-api-endpoints/alchemy-get-token-metadata">getTokenMetadata 文件</a>與 <a href="https://www.alchemy.com/docs/data/prices-api/prices-api-endpoints/prices-api-endpoints/get-token-prices-by-address">Token Prices 文件</a>。</p>',
          tooltip: "",
          icon: "",
        },
      },
      {
        id: 3,
        simEndpoint: {
          title: "<p><code>GET /evm/collectibles/{address}</code></p>",
          tooltip: "",
          icon: "",
        },
        alchemyEquivalent: {
          title:
            "<p><code>POST /data/v1/{apiKey}/assets/nfts/by-address</code></p>",
          tooltip: "",
          icon: "",
        },
        notes: {
          title:
            '<p>包含垃圾內容過濾、合約中繼資料、OpenSea 中繼資料與媒體 URL。<a href="https://www.alchemy.com/docs/data/portfolio-apis/portfolio-api-endpoints/portfolio-api-endpoints/get-nfts-by-address">查看文件。</a></p>',
          tooltip: "",
          icon: "",
        },
      },
    ],
  }}
/>

### 活動與交易

<EmbeddedTable
  table={{
    columns: [
      {
        key: "simEndpoint",
        width: 220,
        title: "Sim endpoint",
        dataType: "object",
      },
      {
        key: "alchemyEquivalent",
        width: 260,
        title: "Alchemy endpoint",
        dataType: "object",
      },
      { key: "notes", width: 360, title: "Notes", dataType: "object" },
    ],
    data: [
      {
        id: 0,
        simEndpoint: {
          title: "<p><code>GET /evm/activity/{address}</code></p>",
          tooltip: "",
          icon: "",
        },
        alchemyEquivalent: {
          title: "<p><code>alchemy_getAssetTransfers</code></p>",
          tooltip: "",
          icon: "",
        },
        notes: {
          title:
            '<p>完整解碼後的轉帳紀錄，涵蓋外部轉帳、內部轉帳、ERC-20、ERC-721 與 ERC-1155 轉帳。<a href="https://www.alchemy.com/docs/data/transfers-api/transfers-endpoints/alchemy-get-asset-transfers">查看文件。</a></p>',
          tooltip: "",
          icon: "",
        },
      },
      {
        id: 1,
        simEndpoint: {
          title: "<p><code>GET /evm/transactions/{address}</code></p>",
          tooltip: "",
          icon: "",
        },
        alchemyEquivalent: {
          title:
            "<p><code>alchemy_getAssetTransfers</code></p><p><code>alchemy_getTransactionReceipts</code></p>",
          tooltip: "",
          icon: "",
        },
        notes: {
          title:
            '<p>外部轉帳類別涵蓋 EOA 對 EOA 及合約發起的原生代幣轉帳。請參閱 <a href="https://www.alchemy.com/docs/data/transfers-api/transfers-endpoints/alchemy-get-asset-transfers">getAssetTransfers 文件</a>與 <a href="https://www.alchemy.com/docs/data/utility-apis/transactions-receipts-endpoints/alchemy-get-transaction-receipts">Receipts 文件</a>。</p>',
          tooltip: "",
          icon: "",
        },
      },
    ],
  }}
/>

### DeFi

<EmbeddedTable
  table={{
    columns: [
      {
        key: "simEndpoint",
        width: 260,
        title: "Sim endpoint",
        dataType: "object",
      },
      {
        key: "alchemyEquivalent",
        width: 220,
        title: "Alchemy endpoint",
        dataType: "object",
      },
      { key: "notes", width: 360, title: "Notes", dataType: "object" },
    ],
    data: [
      {
        id: 0,
        simEndpoint: {
          title: "<p><code>GET /evm/defi-positions/{address}</code></p>",
          tooltip: "",
          icon: "",
        },
        alchemyEquivalent: {
          title: "<p>No equivalent</p>",
          tooltip: "",
          icon: "",
        },
        notes: {
          title: "<p>請聯繫我們取得協助。</p>",
          tooltip: "",
          icon: "",
        },
      },
      {
        id: 1,
        simEndpoint: {
          title: "<p><code>GET /evm/defi/supported-protocols</code></p>",
          tooltip: "",
          icon: "",
        },
        alchemyEquivalent: {
          title: "<p>No equivalent</p>",
          tooltip: "",
          icon: "",
        },
        notes: {
          title: "<p>請聯繫我們取得協助。</p>",
          tooltip: "",
          icon: "",
        },
      },
    ],
  }}
/>

### Solana 與 SVM

<EmbeddedTable
  table={{
    columns: [
      {
        key: "simEndpoint",
        width: 220,
        title: "Sim endpoint",
        dataType: "object",
      },
      {
        key: "alchemyEquivalent",
        width: 260,
        title: "Alchemy endpoint",
        dataType: "object",
      },
      { key: "notes", width: 360, title: "Notes", dataType: "object" },
    ],
    data: [
      {
        id: 0,
        simEndpoint: {
          title: "<p><code>GET /svm/balances/{address}</code></p>",
          tooltip: "",
          icon: "",
        },
        alchemyEquivalent: {
          title:
            "<p><code>POST /data/v1/{apiKey}/assets/tokens/by-address</code></p>",
          tooltip: "",
          icon: "",
        },
        notes: {
          title:
            '<p>同一個端點也處理 SVM 餘額，並包含即時美元價格。<a href="https://www.alchemy.com/docs/data/portfolio-apis/portfolio-api-endpoints/portfolio-api-endpoints/get-tokens-by-address">查看文件。</a></p>',
          tooltip: "",
          icon: "",
        },
      },
      {
        id: 1,
        simEndpoint: {
          title: "<p>No direct Sim endpoint</p>",
          tooltip: "",
          icon: "",
        },
        alchemyEquivalent: {
          title: "<p><code>getAssetsByOwner</code></p>",
          tooltip: "",
          icon: "",
        },
        notes: {
          title:
            '<p>對應 NFTs By Wallet 的 Solana 版本。<a href="https://www.alchemy.com/docs/reference/alchemy-das-apis-for-solana/solana-das-api-endpoints/get-assets-by-owner">查看文件。</a></p>',
          tooltip: "",
          icon: "",
        },
      },
      {
        id: 2,
        simEndpoint: {
          title: "<p><code>GET /svm/transactions/{address}</code></p>",
          tooltip: "",
          icon: "",
        },
        alchemyEquivalent: {
          title: "<p><code>getTransactionsForAddress</code></p>",
          tooltip: "",
          icon: "",
        },
        notes: {
          title:
            '<p>使用 Solana Node API 取得 Solana 位址的交易紀錄。<a href="https://www.alchemy.com/docs/chains/solana/solana-api-endpoints/get-transactions-for-address">查看文件。</a></p>',
          tooltip: "",
          icon: "",
        },
      },
    ],
  }}
/>

## 四步驟完成搬遷

### 1. 取得你的 Alchemy API key

[在 Alchemy Dashboard 建立應用程式](https://dashboard.alchemy.com/)並複製你的 API key。每個端點的確切請求 URL 不盡相同，請依照各對應列的文件連結，取得目前的路徑與請求格式。

### 2. 更新驗證方式與請求格式

Sim 使用 `X-Sim-Api-Key` 標頭，並在其中內嵌 chain ID。Alchemy 則以 API key 進行驗證，且請求與回應格式依產品而異。

搬遷前，Sim 的請求大致如下：

<CodeSnippet
  language="bash"
  code={`curl https://api.sim.dune.com/v1/evm/balances/0xYOUR_ADDRESS \\
  -H "X-Sim-Api-Key: YOUR_SIM_KEY"`}
/>

搬遷時，請依各 Alchemy 端點的文件取得該產品確切的請求主體、驗證方式與回應欄位。

### 3. 更新 chain 識別碼

Sim 使用數字形式的 chain ID。Alchemy 使用字串形式的 network slug，若同一請求要查詢多條鏈，則以陣列傳入。

<EmbeddedTable
  table={{
    columns: [
      { key: "chain", width: 180, title: "Chain", dataType: "object" },
      {
        key: "simChainId",
        width: 180,
        title: "Sim chain ID",
        dataType: "object",
      },
      {
        key: "alchemyNetwork",
        width: 220,
        title: "Alchemy network",
        dataType: "object",
      },
    ],
    data: [
      {
        id: 0,
        chain: { title: "<p>Ethereum</p>", tooltip: "", icon: "" },
        simChainId: { title: "<p>1</p>", tooltip: "", icon: "" },
        alchemyNetwork: {
          title: "<p><code>eth-mainnet</code></p>",
          tooltip: "",
          icon: "",
        },
      },
      {
        id: 1,
        chain: { title: "<p>Base</p>", tooltip: "", icon: "" },
        simChainId: { title: "<p>8453</p>", tooltip: "", icon: "" },
        alchemyNetwork: {
          title: "<p><code>base-mainnet</code></p>",
          tooltip: "",
          icon: "",
        },
      },
      {
        id: 2,
        chain: { title: "<p>Arbitrum</p>", tooltip: "", icon: "" },
        simChainId: { title: "<p>42161</p>", tooltip: "", icon: "" },
        alchemyNetwork: {
          title: "<p><code>arb-mainnet</code></p>",
          tooltip: "",
          icon: "",
        },
      },
      {
        id: 3,
        chain: { title: "<p>Polygon</p>", tooltip: "", icon: "" },
        simChainId: { title: "<p>137</p>", tooltip: "", icon: "" },
        alchemyNetwork: {
          title: "<p><code>polygon-mainnet</code></p>",
          tooltip: "",
          icon: "",
        },
      },
      {
        id: 4,
        chain: { title: "<p>Solana</p>", tooltip: "", icon: "" },
        simChainId: {
          title: "<p><code>solana</code></p>",
          tooltip: "",
          icon: "",
        },
        alchemyNetwork: {
          title: "<p><code>solana-mainnet</code></p>",
          tooltip: "",
          icon: "",
        },
      },
    ],
  }}
/>

每個產品支援的鏈不盡相同。搬遷各端點前，請先查看 [Alchemy 鏈支援頁面](https://dashboard.alchemy.com/chains)。

### 4. 更新分頁方式

Sim 使用 offset 式分頁。Alchemy 使用 cursor 式分頁：你需要將前一次回應中的 token 傳回。確切的參數名稱依端點而異，請查閱你要搬遷的產品文件。

<CodeSnippet
  language="bash"
  code={`# Sim
?limit=100&offset=YOUR_NEXT_OFFSET`}
/>

## 為什麼選擇 Alchemy

從 Sim 搬遷，也能讓你把更多技術堆疊整合到單一平台上。

- **單一平台：** Data APIs、Node APIs、Wallet APIs 與 Transaction Simulation 都在同一把 key 底下，讓你在擴充資料功能之外，不必再拼湊更多供應商。
- **Solana 支援：** 原生 Solana RPC、支援 SPL 餘額的 Portfolio，以及支援更豐富 Solana 查詢的 DAS API。
- **交易模擬：** 在交易上鏈前預測資產變化、解碼 trace，並模擬 bundle。
- **企業級支援：** 企業團隊在關鍵搬遷期間可獲得專屬支援與正式環境穩定性保障。
- **針對 Sim 客戶的特別定價：** 在 Sim 逐步退場期間，從 Sim 搬遷的團隊可享 Alchemy 優惠定價。[聯繫我們](https://www.alchemy.com/contact-sales)並告知你的 Sim 帳號。

## 開始使用

Sim 將於 2026 年 8 月 1 日關閉。請現在就開始，讓你有足夠時間在期限前並行運作兩套整合，並驗證回應是否一致。

- [閱讀 Alchemy Data API 文件](https://www.alchemy.com/docs/data)
- [建立 Alchemy API key](https://dashboard.alchemy.com/)
- [聯繫我們](https://www.alchemy.com/contact-sales)，告訴我們你目前的 Sim 呼叫模式，我們會協助你規劃搬遷路徑。
