---
title: "為 Agave 2.0 升級做準備"
description: "快速參考 Solana Agave v2.0 版本中即將棄用的 RPC 端點，以及現在應該遷移到的替代呼叫方式。"
---

# 為 Agave 2.0 升級做準備

<ImageBlock
  src="https://media.alchemy.com/1729711573-solana.png"
  alt="Solana Agave v2.0 升級及其 RPC 端點淘汰"
  width={3200}
  height={1800}
  caption="Agave v2.0 轉換"
  priority
/>

## 為 Solana 的 agave v2.0 做準備

Solana 計劃於 2024 年第四季在 mainnet-beta 上推出[重大版本更新](https://github.com/anza-xyz/agave/wiki/Agave-v2.0-Transition-Guide)，稱為 Agave v2.0。此版本將為 Solana 網路帶來多項變更，包括對 [Solana RPC](https://www.alchemy.com/dapps/list-of/rpc-node-providers-on-solana) APIs 與 SDK 元素的修改。這些變更已在 Devnet 與 Testnet 上線。

為避免應用程式出現問題，我們建議儘早更新您的程式碼庫，改用下方列出的替代呼叫。

在本指南中，我們將整理最新版本推出後將不再支援的方法，以及如何為這些變更做準備。

<CalloutBlock>

**向後相容性**

所有變更皆向後相容，並可於 Solana mainnet 的舊版本上使用，讓您可以無縫升級應用程式。

</CalloutBlock>

## RPC 端點與 SDK 元素的變更
多個 RPC 端點在 Agave v2.0 中已被棄用並不再支援。請使用下方列出的替代呼叫。

<EmbeddedTable
  table={{
    columns: [
      { key: "1", width: 300, title: "Deprecated v1 API Call", dataType: "object" },
      { key: "2", width: 300, title: "v2 Replacement Call", dataType: "object" },
    ],
    data: [
      {
        "1": { title: "<p>confirmTransaction</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getSignatureStatuses</p>", tooltip: "", icon: "" },
        id: 0,
      },
      {
        "1": { title: "<p>getSignatureStatus</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getSignatureStatuses</p>", tooltip: "", icon: "" },
        id: 1,
      },
      {
        "1": { title: "<p>getSignatureConfirmation</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getSignatureStatuses</p>", tooltip: "", icon: "" },
        id: 2,
      },
      {
        "1": { title: "<p>getConfirmedSignaturesForAddress</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getSignaturesForAddress</p>", tooltip: "", icon: "" },
        id: 3,
      },
      {
        "1": { title: "<p>getConfirmedBlock</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getBlock</p>", tooltip: "", icon: "" },
        id: 4,
      },
      {
        "1": { title: "<p>getConfirmedBlocks</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getBlocks</p>", tooltip: "", icon: "" },
        id: 5,
      },
      {
        "1": { title: "<p>getConfirmedBlocksWithLimit</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getBlocksWithLimit</p>", tooltip: "", icon: "" },
        id: 6,
      },
      {
        "1": { title: "<p>getConfirmedTransaction</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getTransaction</p>", tooltip: "", icon: "" },
        id: 7,
      },
      {
        "1": { title: "<p>getConfirmedSignaturesForAddress2</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getSignaturesForAddress</p>", tooltip: "", icon: "" },
        id: 8,
      },
      {
        "1": { title: "<p>getRecentBlockhash</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getLatestBlockhash</p>", tooltip: "", icon: "" },
        id: 9,
      },
      {
        "1": { title: "<p>getFees</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getFeeForMessage</p>", tooltip: "", icon: "" },
        id: 10,
      },
      {
        "1": { title: "<p>getFeeCalculatorForBlockhash</p>", tooltip: "", icon: "" },
        "2": { title: "<p>isBlockhashValid or getFeeForMessage</p>", tooltip: "", icon: "" },
        id: 11,
      },
      {
        "1": { title: "<p>getFeeRateGovernor</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getFeeForMessage</p>", tooltip: "", icon: "" },
        id: 12,
      },
      {
        "1": { title: "<p>getSnapshotSlot</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getHighestSnapshotSlot</p>", tooltip: "", icon: "" },
        id: 13,
      },
      {
        "1": { title: "<p>getStakeActivation</p>", tooltip: "", icon: "" },
        "2": { title: "<p>getAccountInfo</p>", tooltip: "", icon: "" },
        id: 14,
      },
      {
        "1": { title: "<p>getTotalSupply</p>", tooltip: "", icon: "" },
        "2": { title: "<p>This call will be deprecated</p>", tooltip: "", icon: "" },
        id: 15,
      },
    ],
  }}
/>

## 使用 Alchemy 開發 Solana
Alchemy 的 RPC 端點與最新版本的 Solana 網路保持同步。Alchemy 透過其先進的 Solana 基礎設施提供競爭優勢：

- 🌎 **高交易成功率**：我們的全球網路與尖端硬體確保您的交易能可靠地送達 Solana 的 Mainnet、Devnet 或 Testnet。
- 🚀 **專有的 Hyperscaling 技術**：我們的客製化解決方案效能優於標準 Solana 客戶端，提供更優異的可擴展性、效能與延遲表現。
- 🛠️ **持續改進**：我們不斷強化基礎設施：
  - 擴展全球節點網路以滿足日益成長的需求
  - 在新的地區部署，並採用多元的基礎設施供應商
  - 實作 [Priority Fee API](https://marketplace.quicknode.com/add-on/solana-priority-fee)，在網路壅塞時提供最佳的交易處理
  - 投資次世代硬體，並取得額外伺服器的安全優先存取權
  - 精進我們的 hyperscaling 技術，以改善交易路由並支援新興方法

立即[在此](https://auth.alchemy.com/signup)註冊免費帳戶，建立您的 Solana 端點！
