Hello!
(I'm new to Solana blockchain)
I have a problem with finding schema for base64 encoded data field. I use websocket connection and subscribe to base vault address using accountSubscribe method. This vault account is owned by Raydium Authority V4.
Response looks like:
{
"jsonrpc": "2.0",
"method": "accountNotification",
"params": {
"result": {
"context": {
"slot": 298423747
},
"value": {
"data": [
"ykGKaepGFLQHCirRxFiYQFSme+FyzCJg4Yt5R8zsSARBV7BYDzHF/ORKYlgtvPnXjudZQ6CEo5OzUDaNIomTCGAvdCo8RQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"base64"
],
"owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"rentEpoch": 18446744073709551615,
"lamports": 2039280,
"executable": false,
"space": 165
}
},
"subscription": 16127
}
}
I have tried to find any schema in github Raydium repositories, but nothing found, however found raydiym-idl, but I don't know how to use it in order to deserialize the bytes that I get after decoding data. I need an example how to do it in Rust.
Thanks