# solana中关键的数据结构

By [daguoyuan](https://paragraph.com/@daguoyuan) · 2024-10-19

---

*   Account
    

![](https://storage.googleapis.com/papyrus_images/e3590efe25e67946fa95f8b2678e557e437dec05ae03d99e9de6d73b3ac66673.png)

1.  owner: 指明当前account为哪个program所拥有。
    
2.  lamport: account所拥有的代币数量。
    
3.  executable:指明当前账户是否为可执行账户。
    
4.  data: 如果account为可执行账户，data中存放的就是program codes。如果是非可执行账户，data中存放的就是account的state data。
    

*   Transaction
    

![](https://storage.googleapis.com/papyrus_images/ed95522cf9b4a8ecef829cc80694b992545941d4db262bee00b8013f8d210f26.png)

1.  instructions: 指令列表。
    
2.  signatures: 签名集合。
    

*   Instruction
    

![](https://storage.googleapis.com/papyrus_images/18b61c76d3b16efad97bdaaf173bcdfea67f201440fbde945bd6bbb79db1077b.png)

1.  program id: 执行该instruction需要哪个program执行
    
2.  accounts: 该instruction所涉及的所有account
    
3.  data：包含函数识别码，指令参数等。
    

*   AccountMeta
    

![](https://storage.googleapis.com/papyrus_images/feed0f28bd8241b58b9a87dfe6d852731f17509e38184a18001cac0200191bf1.png)

---

*Originally published on [daguoyuan](https://paragraph.com/@daguoyuan/solana)*
