getTransaction RPC-Methode
Gibt Transaktionsdetails für eine bestätigte Transaktion zurück
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getTransaction",> "params": [> "5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ",> {> "commitment": "confirmed",> "maxSupportedTransactionVersion": 0,> "encoding": "json"> }> ]> }> '
params
stringrequired
Transaktionssignatur als Base-58-kodierte Zeichenfolge
objectoptional
Konfigurationsobjekt mit den folgenden Feldern:
result
Response
{"jsonrpc": "2.0","result": {"blockTime": 1746479684,}
object | null
Gibt null
zurück, wenn die Transaktion nicht gefunden oder nicht bestätigt
wurde, andernfalls wird ein Objekt zurückgegeben, das Folgendes enthält:
Is this page helpful?