5 solana的getTransaction问题

我用下面的rpc地址提交数据,返回结果是出错的,请问这是怎么回事了!

RPC地址:https://api.mainnet-beta.solana.com

提交数据

            "jsonrpc": "2.0",
            "id": 1,
            "method": "getTransaction",
            "params": [
                "4M2rqmiAixGJv5mkE5k2NvBufMxoVGNnfXaJRtfmp5nSXgNVS3o1unxVWNwg2N3xAut37ySFFuqGkKnc5PnT3frD",
                "jsonParsed"
            ]
        }

返回结果

{"jsonrpc":"2.0","error":{"code":-32015,"message":"Transaction version (0) is not supported by the requesting client. Please try the request again with the following configuration parameter: \"maxSupportedTransactionVersion\": 0"},"id":1}
请先 登录 后评论

最佳答案 2024-03-28 14:38


curl https://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/json" -d '
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getTransaction",
    "params": [
      "4JzA7Bw38NNCUKnFRKNeAxHfBxTbKrxKtmrJFocTDR2Aym8TFX2Uiqs9bhep8bSyRh6zf4HUMxtT9yQM91KE4d2u",
      "json"
    ]
  }
'

官方链接: https://solana.com/docs/rpc/http/gettransaction

请先 登录 后评论

其它 0 个回答

  • 1 关注
  • 0 收藏,310 浏览
  • 月亮也有光 提出于 2024-03-22 13:17

相似问题