Expand description
账户解析工具函数
提供账户数据解析的通用工具函数
Functions§
- has_
discriminator - 检查账户是否匹配指定的 discriminator
- is_
nonce_ account - 检查账户是否是 Nonce Account
- is_
token_ program_ account - 检查账户所有者是否是 Token Program
- read_
pubkey - 从字节数组中读取 Pubkey
- read_u8
- 从字节数组中读取 u8
- read_
u16_ le - 从字节数组中读取 u16(小端序)
- read_
u64_ le - 从字节数组中读取 u64(小端序)