-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
hi , there
i follow this document, https://docs.old-faithful.net/usage-and-installation build the app
now , i can use getTransaction get transaction details, but jsonParsed not work
with jsonParsed
curl -X POST http://localhost:8899 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getTransaction",
"params": ["5tS1UZksLdZ3Lvrprh7hGrajmCSyjHqEYAmwkwPijmBuYD4Dn66rqdPbczX3oVu7Tiq4R792ve4b9d2KyKTVYz3u", { "encoding": "jsonParsed" , "maxSupportedTransactionVersion": 0}]
}'
return data
{
"id": 1,
"result": {
"meta": {
"err": null,
"status": {
"Ok": null
},
"fee": 5000,
"preBalances": [
138422166839,
0,
1,
1
],
"postBalances": [
138420265959,
1895880,
1,
1
],
"innerInstructions": [],
"logMessages": [
"Program ComputeBudget111111111111111111111111111111 invoke [1]",
"Program ComputeBudget111111111111111111111111111111 success",
"Program 11111111111111111111111111111111 invoke [1]",
"Program 11111111111111111111111111111111 success"
],
"preTokenBalances": [],
"postTokenBalances": [],
"rewards": [],
"loadedAddresses": {
"writable": [],
"readonly": []
},
"computeUnitsConsumed": 300
},
"transaction": {
"signatures": [
"5tS1UZksLdZ3Lvrprh7hGrajmCSyjHqEYAmwkwPijmBuYD4Dn66rqdPbczX3oVu7Tiq4R792ve4b9d2KyKTVYz3u"
],
"message": {
"accountKeys": [
"Hcgy7CssWvYwnngvyz9CUCdgTWHtj2Q5huLw63kc5A1P",
"DVWZCMnsZzBw1QCQu7N2Va4mYMrFerd3qAoNZ3LqFvSv",
"11111111111111111111111111111111",
"ComputeBudget111111111111111111111111111111"
],
"header": {
"numRequiredSignatures": 1,
"numReadonlySignedAccounts": 0,
"numReadonlyUnsignedAccounts": 2
},
"recentBlockhash": "3YgRmwgY7FYnYv9PosGHqTptseNFsKfhJyeQ75uFvcSz",
"instructions": [
{
"programIdIndex": 3,
"accounts": [],
"data": "3BTBj18XicQw"
},
{
"programIdIndex": 2,
"accounts": [
0,
1
],
"data": "3Bxs4aTtw5yvqyUs"
}
]
}
},
"version": "legacy",
"slot": 351648002,
"blockTime": 1751863310,
"position": 5
},
"jsonrpc": "2.0"
}
without jsonParsed
curl -X POST http://localhost:8899 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getTransaction",
"params": ["5tS1UZksLdZ3Lvrprh7hGrajmCSyjHqEYAmwkwPijmBuYD4Dn66rqdPbczX3oVu7Tiq4R792ve4b9d2KyKTVYz3u", { "maxSupportedTransactionVersion": 0}]
}'
return data
{
"id": 1,
"result": {
"meta": {
"err": null,
"status": {
"Ok": null
},
"fee": 5000,
"preBalances": [
138422166839,
0,
1,
1
],
"postBalances": [
138420265959,
1895880,
1,
1
],
"innerInstructions": [],
"logMessages": [
"Program ComputeBudget111111111111111111111111111111 invoke [1]",
"Program ComputeBudget111111111111111111111111111111 success",
"Program 11111111111111111111111111111111 invoke [1]",
"Program 11111111111111111111111111111111 success"
],
"preTokenBalances": [],
"postTokenBalances": [],
"rewards": [],
"loadedAddresses": {
"writable": [],
"readonly": []
},
"computeUnitsConsumed": 300
},
"transaction": {
"message": {
"accountKeys": [
"Hcgy7CssWvYwnngvyz9CUCdgTWHtj2Q5huLw63kc5A1P",
"DVWZCMnsZzBw1QCQu7N2Va4mYMrFerd3qAoNZ3LqFvSv",
"11111111111111111111111111111111",
"ComputeBudget111111111111111111111111111111"
],
"header": {
"numRequiredSignatures": 1,
"numReadonlySignedAccounts": 0,
"numReadonlyUnsignedAccounts": 2
},
"instructions": [
{
"programIdIndex": 3,
"accounts": [],
"data": "3BTBj18XicQw",
"stackHeight": null
},
{
"programIdIndex": 2,
"accounts": [
0,
1
],
"data": "3Bxs4aTtw5yvqyUs",
"stackHeight": null
}
],
"recentBlockhash": "3YgRmwgY7FYnYv9PosGHqTptseNFsKfhJyeQ75uFvcSz"
},
"signatures": [
"5tS1UZksLdZ3Lvrprh7hGrajmCSyjHqEYAmwkwPijmBuYD4Dn66rqdPbczX3oVu7Tiq4R792ve4b9d2KyKTVYz3u"
]
},
"version": "legacy",
"slot": 351648002,
"blockTime": 1751863310,
"position": 5
},
"jsonrpc": "2.0"
}
Metadata
Metadata
Assignees
Labels
No labels