How to Transfer CHER between Relay Chain and Parachains

Users can transfer their CHER tokens to Cherry Network Parachains and vice versa. This is possible using pallet_xcm that handles transfers from the Cherry Network Relay Chain to any Parachain and pallet_xtokens that handles transfers from any Parachain back to the Relay Chain

The native coin to Cherry Network Parachains is parachain-CHER or pCHER, which is exchangeable 1:1 for CHER on the Relay Chain (1 CHER = 1 pCHER). This tutorial will describe how users can interface with these pallets and transfer CHER from the Cherry Network Relay Chain to its Parachains and back.

CHER to pCHER: Transfer from Relay Chain to Parachain

Use the blockchain interface https://cherry.place to transfer your CHER tokens from the relay chain to your parachain account. There, navigate to the Developer tab and click on Extrinsics. From the dropdown menu (the leftmost one), select the xcmPallet and then select the reserverTransferAssets function. Then you have to select the options shown below:

dest : V0
V0 : X1
X1 : Parachain
Parachain : 2000

beneficiary : V0
V0 : X1
X1 : AccountId32
network : Any
id : **the AccountId of your parachain substrate account**

assets : V0
0 : ConcreteFungible
id : Null
amount : **the amount of CHER you want to transfer (18 decimals)**

Remember CHER has 18 significant digits so the amount field must include all of CHER’s decimals. E.g. if you want to send 100 tokens, the amount you need to input is 100000000000000000000 (100 followed by 18 0s).

pCHER to CHER: transfer pCHER from a Parachain back to the Relay Chain

You can use the blockchain interface https://cherry.place to transfer your pCHER from your Parachain account back to the Relay Chain. Navigate to the Developer tab and click on the Extrinsics. From the dropdown menu, select the xTokens and then select the Transfer function. Then you have to select the options shown below:

currencyId : Token
Token : CHER
amount : **amount of tokens you want to send (with 18 decimals)**
dest : V1
parents : 1
interior : X1
X1 : AccountId32
network : Any
id : **the AccountId of your cherry relay account**