Skip to content

Files

Latest commit

 

History

History
104 lines (88 loc) · 1.92 KB

cli-examples.md

File metadata and controls

104 lines (88 loc) · 1.92 KB

CLI Examples

Local network config

See Our tutorial to make a local network with zombienet.

Local network examples

Relay to parachain (from Alice account)

TeleportAssets:

xcm-sdk teleportAssets \
--rpc ws://127.0.0.1:9900 \
--mnemonic //Alice \
--dest Parachain \
--destV 1000 \
--ben AccountId32 \
--benV '<statamine account>' \
--a 1000000000000

LimitedTeleportAssets:

xcm-sdk limitedTeleportAssets \
--rpc ws://127.0.0.1:9900 \
--mnemonic //Alice \
--dest Parachain \
--destV 1000 \
--ben AccountId32 \
--benV '<statamine account>' \
--a 1000000000000

Parachain to Relay (from Alice account)

LimitedTeleportAssets:

xcm-sdk limitedTeleportAssets \
--rpc ws://127.0.0.1:9910 \
--mnemonic //Alice \
--destP 1 \
--ben AccountId32 \
--benV '<relay chain account>' \
--assetP 1 \
--a 1000000000000

Statemine to trappist (from Alice account)

xcm-sdk limitedReserveTransferAssets \
--rpc ws://127.0.0.1:9910 \
--mnemonic //Alice \
--dest Parachain \
--destV 2000 \
--destP 1 \
--ben AccountId32 \
--benV '<trappist account>' \
--assetId 1 \
--a 1000000000000

Rococo examples

Rococo to rockmine

teleportAssets:

xcm-sdk teleportAssets \
--rpc wss://rococo-rpc.polkadot.io \
--mnemonic '<account mnemonic>' \
--dest Parachain \
--destV 1000 \
--ben AccountId32 \
--benV '<rococo destination account>' \
--a 1000000000000

limitedTeleportAssets

xcm-sdk limitedTeleportAssets \
--rpc wss://rococo-rpc.polkadot.io \
--mnemonic '<account mnemonic>' \
--dest Parachain \
--destV 1000 \
--ben AccountId32 \
--benV '<rockmine destination account>' \
--a 1000000000000

RockMine to Rococo

xcm-sdk limitedTeleportAssets \
--rpc wss://rococo-rockmine-rpc.polkadot.io \
--mnemonic '<account mnemonic>' \
--destP 1 \
--ben AccountId32 \
--benV '<rococo destination account>' \
--assetP 1 \
--a 1000000000000