I am currently trying to figure out how to decode data from a transaction instruction, but whatever i try it doesn't work.
Example data base58:
2K7nL28PxCW8ejnyCeuMpbWSTLdurgKFpsogNMAfkxaivrGSbx5pnrFeWkZY5EUDZL26WSoMa5kTRAuZiW7s3HifSXN9sWnRp1XnD71rTSxG3GNXxguzpgsXeDQfJx7A5TCPx9t7r5B3KcWsvbxXAivnaY6i82epDwEiCiZ7T2oLg3QsrcZqFjun6QF1
What i should be getting as values in an object:
{
"mint": {
"type": "publicKey",
"data": "6Y6uxUWa2AtijqprubRwx2amJnZkXiK2FM7kJ6E6pump"
},
"solAmount": {
"type": "u64",
"data": "43099058"
},
"tokenAmount": {
"type": "u64",
"data": "1219512195121"
},
"isBuy": {
"type": "bool",
"data": true
},
"user": {
"type": "publicKey",
"data": "Bzen1deTMBZXh7etJheznKZtDF9KWfgacGSwWV6DPPZ2"
},
"timestamp": {
"type": "i64",
"data": "1718285628"
},
"virtualSolReserves": {
"type": "u64",
"data": "33750388325"
},
"virtualTokenReserves": {
"type": "u64",
"data": "953766803940863"
}
}
Does anyone have an idea how to decode it?