# Platform Chain (P-Chain) API
關於 p-chain
> The primary function of this is for staking AVAX and serving as a validator. If you’re a validator (or delegating to a validator), then your AVAX rewards will be received on this chain. It’s also possible to receive transfers from the other two Avalanche chains (X and C). If you have no interest in staking AVAX, then you don’t need to worry about this one at all!
>
感覺就是 for staking reward 用
關於 c-chain
- EVM compatible
- used for smart contract
關於 x-chain
- send and receive funds
---
首先要先創錢包還有 createUser,後面 api 的參數都需要帶 username 跟 password
1. 創錢包,創完就回有 x, c, p chain 的 address
2. createUser ,左下角按下去會叫你填 username, password 
(In test net: https://docs.avax.network/quickstart/fund-a-local-test-network#create-a-user)
**如何產生 P chain 地址(map 到 C chain 地址)**
-> https://docs.avax.network/apis/avalanchego/apis/p-chain#platformcreateaddress
**如何在 P chain 上轉帳**
-> https://docs.avax.network/apis/avalanchego/apis/p-chain#platformexportavax
只能轉 avax 到 X-Chain or C-Chain 的 address
**如何查詢 P chain 地址餘額**
**如何監聽 P chain 地址**
-> https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetbalance