14: Add getProgramAccounts(...) with memcmp filter support

This commit is contained in:
2026-06-25 19:33:25 +02:00
parent 9cda922162
commit 393a3a38b3
@@ -0,0 +1,17 @@
package com.r35157.libs.solana;
/**
* Filter used when fetching accounts owned by a Solana program.
*
* <p>The initial supported filter type is {@code memcmp}, which asks the
* Solana RPC node to only return accounts where the account data at a specific
* byte offset matches a base58 encoded value.</p>
*
* @param offset the byte offset in the account data where comparison starts
* @param bytes the base58 encoded bytes to match
*/
public record SolanaProgramAccountMemcmpFilter(
int offset,
String bytes
) {
}