Learn how to subscribe to account updates and efficiently track on-chain state changes using Laserstream.
BKMHWYLAX4un3HUbR7a3u9jPmzCiLNa4mSj1RiX11eWF
.
This account has:
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
(this is the SPL Token program)5C9Hr5nG2j8eQz6inxPmfyjbYdmXddzUDyR1iQgEnjYQ3RNvuP4Zzc8t1enLNy7Rk8KNCtQPEQztENYWxkt9GaVD
showing which specific transaction caused this account to changeAccount
struct defines exactly 165 bytes:
datasize
filter with a memcmp
filter to target the exact mint address:
bs58.encode()
function to convert binary Buffer objects to readable strings.
owner
, datasize
, and memcmp
filters we’ve used, account subscriptions support additional filtering options to further narrow your results:
owner
- “Give me all accounts managed by this program”datasize
- “But only accounts of this specific type”memcmp
- “And only those containing this specific information”account
- “Or just watch these exact accounts I care about”