Links

Avalanche

Supported JSON-RPC methods for Avalanche mainnet and fuji testnet.
Contract Chain (C-Chain):
The Contract Chain is the default smart contract blockchain on Avalanche and enables the creation of any Ethereum-compatible smart contracts. This blockchain is for applications that require total ordering (for faster asset transfers or any other commutative application, use the Exchange Chain). The Contract Chain implements the Snowman consensus protocol. The trailing endpoint for C-Chain calls is:
To interact with C-Chain via the JSON-RPC endpoint:
/ext/bc/C/rpc
To interact with other instances of the EVM via the JSON-RPC endpoint:
/ext/bc/blockchainID/rpc
(where "blockchainID" is the ID of the EVM chain)
Exchange Chain (X-Chain):
The X-chain is used for sending and receiving funds, however, it is not used for Defi platforms. Also, note that x-chain cannot be used with MetaMask or similar wallets. Your X-chain address is accessed from the Avalanche web wallet, and you get a new address after every deposit (note that your old addresses remain valid too). The format is different from Ethereum-style 0x addresses and begins with an "X-avax". The trailing endpoint for X-Chain calls is:
To Interact with X-Chain:
/ext/bc/X
To interact with other AVM instances, where "blockchainID" is the ID of the AVM chain:
/ext/bc/blockchainID
Platform Chain (P-Chain):
The final chain that Avalanche offers is the p-chain (for the platform). The P-chain's function allows you to stake AVAX and serve as a validator. If you are a validator or delegating to a validator, then your AVAX rewards will be received on this chain. Note that these also differ from Ethereum-style 0x addresses and begin with a "P-avax". The trailing endpoint for P-Chain calls is:
/ext/bc/P
Note that when using these addresses, it is best practice to follow case sensitivity.