我用下面的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}
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"
]
}
'