I'm trying to decode the account data buffer that is provided when calling methods such as getAccountInfo or getProgramAccounts with web3.js. The account in question is the account whose address is a Raydium ammid. Here is an example of such a buffer:
The accounts is owned by Raydium Liquidity Pool V4 which doesn't have an IDL that I can use. I also have not been able to find a valid schema for the account data to deserialize with Borsh. Calling the "parsed" version of the web3 methods above doesn't deserialize the data either. I was wondering if anyone knows how to decode the data buffer in order to extract things such as token addresses associated with the ammid etc.
Thanks