I'm parsing some information regarding transactions from JSON RPC API. However, I'm confused concerning innerInstructions
and instructions
(in transactions
) fields.
Basically, I just want to know the type of transfer, the amount and from/to.
For example, if you look at this transaction signature in solscan.io in Transaction Actions
field:
5Duc8t3dVWKBz48TwdSyJXaUSpeLQQPeDorEsxqokSAbvb3tdyoDPL8fp81udu8DgDMJSjvFPgUvwigbkYaxnuwk
From JSON RPC API, all information required are inside innerInstructions
field. But in transactions
field which contain instructions
field I'm getting only the following:
instructions: [
{
accounts: [],
data: LLMtf9,
programId: ComputeBudget111111111111111111111111111111,
stackHeight: None
},
{
accounts: [...],
data: 88nNHV4ezjuwf94ruuMVS,
programId: GaaxVrdMh69Dhce9u4uSpdXD8L9J51SZ4x8vQywR6d7s,
stackHeight:
None
}
],
recentBlockhash: 5teZ8Af9VfDakJh8aQMzL7axv799ThAnRa38JnvAR2RF},
[...]
- So does all transactions request provide the relevant information in
innerTransactions
only andinstructions
field fromtransactions
can be ignored ? Is there any specific case ?