Send AVAX on C/P-Chain
Learn how to execute a native transfer on the C or P-Chain using the Avalanche CLI.
Prerequisites
- Install the Avalanche CLI.
- Use the CLI to create a key.
- Fund the key with AVAX. You can use the faucet with coupon code
devrel-avax-0112
to get testnet AVAX. - Optionally, you can export your private key for use in scripting or other tools.
Initiate the transfer
Command and Walk Through the Prompts
In your terminal, run the following command:
This command and all of its flags are documented here.
You will be prompted to answer the following questions:
Select the chain you want to transfer funds from:
Select the chain you want to transfer funds to:
Select the step of the transfer process you want to execute:
If you are performing a native transfer where the sender and receiver address are on the same chain, you only need to complete a "send" transaction.
If you wish to perform a cross-chain transfer (i.e. from C to P-Chain), you should abort this flow and reinitiate the command as avalanche key transfer --fund-p-chain
or avalanche key transfer --fund-x-chain
, completing both the "send" and "receive" flows with keys stored in the CLI.
You can fund your CLI-stored key with AVAX on the C-Chain using the faucet with coupon code devrel-avax-0112
.
Select the sender address:
Specify the amount to send, input the destination address:
Review the transaction details and confirm/abort:
After a successful transfer, you can check your CLI keys' balances with the command: avalanche key list
.
Last updated on