Skip to main content

XCMP Transfer

XCMP only limit to Patract own Westend relaychain and Jupiter parachain, current xcmp function include:

  • Relaychain Westend transfer WND(Relaychain native currency) to Parachain Jupiter
  • Parachain Jupiter transferWND(Relaychain native currency) to Relaychain Westend

XCMP has two transfer model: teleport、reserver transfer, current we suggest use reserve transfer model.

Relaychain transfer to Parachain#

In Patract own Westend, issue an extrinsic as follows:

relay-to-para

Note: we did't support facet for Patract own Westend for now, we'll add this soon.

After extrinsic success, check the balance of relaychain account is withdraw, and the balance of parachain account is deposit. for example, relaychain transfer 1000 WND to parachain, so the relaychain account decrease 1000 WND, and parachain account increase nealy 1000 WND.

para-amount

Parachain transfer to Relaychain#

We use orml_xtokens to simplify transfer from parachain to relaychain.

In Jupiter parachain, issue an extrinsic as follows:

relay-to-para

After extrinsic success, check the the balance of relaychain account is deposit, and the balance of parachain account is withdraw.