Questions tagged [xcmp]

XCMP (Cross-Chain Message Passing) is a communication format that allows the parachains to exchange messages with other parachains on the same Relay Chain.

Filter by
Sorted by
Tagged with
1 vote
0 answers
10 views

Charge a user on both sender and receiver chain of an XCM `Transact` with `OriginKind::Native`

Use case: Alice submits an extrinsic on chain A which, among other things, sends an XCM message including a Transact operation to chain B. On chain A, Alice pays for the extrinsic execution. What I am ...
1 vote
1 answer
13 views

How can we bridge our Solochain with other chains within the Polkadot Ecosystem? Should it be a parathread or parachain migration?

How can we bridge our Substrate-based Solochain with other parachains within the Polkadot Ecosystem? Should it be a parathread or parachain migration?
  • 233
0 votes
0 answers
15 views

How to find a GeneralKey or pallet-instance used for in MultiLocation for XCM?

I've been working on the substrate-bridges. I need to transfer the token from one chain to another chain but i'm not able to do that because the bridges that Global-Censensus to transfer the tokens. I ...
4 votes
0 answers
30 views

I'm getting XcmPallet.Unreachable error in parity-bridges-common

I'm transferring assets from one chain to another through XCM , it is showing Unreachable. But when i transferring through script in the terminal then also my account balance on one chain is debited ...
5 votes
1 answer
31 views

How can i give instruction through XCM(Send message) function to send a message through parity-bridges-common?

Whenever i sending one custom message provided by parity through this command ./target/debug/substrate-relay send-message millau-to-rialto --source-host localhost --source-port $MILLAU_PORT --...
0 votes
1 answer
37 views

What is the purpose of Sovereign account? How is the balance of Soverign for a Parachain decided or calculated?

I think that balance of Sovereign account on Relay chain should be total token supply for that parachain? Basically what's the relation between soverign account balance and parachain? How does it ...
3 votes
2 answers
103 views

How does the XCVM architecture ensure the absoluteness principle described

Very early on in this specification it says that "XCM is designed around four 'A's:" One if which is "Absolute: XCM messages are guaranteed to be delivered and interpreted accurately, ...
  • 79
6 votes
1 answer
88 views

I want to enable Teleport Asset functionality in XCM between two parachains. How should I do it? Also, how do I teleport asset from Para1 to Para2?

My aim is to teleport an asset on parachain1 to parachain2. But I saw in parachain code, that teleport is disable. How do I enable it? I am confused about Teleport in XCM. Basically, how do I make it ...
0 votes
0 answers
60 views

How long should it take for an xcm message to reach its destination

Given normal conditions, how long would should each of the XCM protocols [HMP, DMP, UMP] take for a message to reach its destination. For example if i was a parachain and wanted to call a smart ...
  • 79
0 votes
1 answer
101 views

XCM: How to send assets from the local chain to another via democracy?

I am looking into XCMv2 and given the standard XcmOriginToCallOrigin configs on both chains: and environment: HydraDX runtime & Acala runtime. I was able to construct a polkadotXcm.send call to ...
  • 21
1 vote
1 answer
66 views

I want to send Transact XCM Message with TransferReserveAsset XCM Message from Relay Chain to Parachain

I want to send some extra information ("Call") with the TransferReserveAsset Message. As it has an extra field called xcm:- TransferReserveAsset { assets: MultiAssets, dest: MultiLocation, ...
  • 53
3 votes
0 answers
34 views

How to configure XCMP queue drop threshold?

The XCMP queue drops messages if they exceed the limit: if (count as u32) < drop_threshold { status[i].message_metadata.push((sent_at, format)); } else { debug_assert!( false, ...
  • 378
1 vote
0 answers
39 views

Clarification needed in substrate xcm docs

I am trying to send funds from parachain B (1001) to parachain A, but the substrate docs do not show completely how to send to transfer to parachain A (1000) (or it could at least be clearer). In my ...
  • 1,036
1 vote
1 answer
27 views

Does unused weight from `ReservedXcmpWeight ` flow-over to extrinsics execution

We saw that the Cumulus pallet xcmp-queue has a configuration for ReservedXcmpWeight https://github.com/paritytech/cumulus/blob/polkadot-v0.9.26/pallets/parachain-system/src/lib.rs#L174-L175 The xcmp-...
4 votes
2 answers
123 views

Where to learn about XCM (docs)?

I am trying to learn about LocalAssetTransactor, but can't find much about xcm in general. I know there is a thorough blog post (https://polkadot.network/blog/xcm-the-cross-consensus-message-format/), ...
  • 1,036
1 vote
2 answers
64 views

What is GeneralKey used for in MultiLocation for XCM?

Could you explain what is GeneralKey is for in MultiLocation ? For example: Asset Name: Karura Native Token Asset Symbol: KAR Decimals: 12 existentialDeposit: 0.1 Multiloaction: { parents: 1, ...
  • 1,036
0 votes
1 answer
42 views

whats the difference between the two different sovereign account addresses?

There are different sovereign account addresses here, what are the differences?
  • 1,036
0 votes
1 answer
37 views

FailedToTransactAsset when trying to establish HRMP when using XCM

Getting error: FailedToTransactAsset Sender: 2113 Receiver: 2000 Sovereign account of 2113: 5Dt6dpkWPwLaH4BBCKJwjiWrFVAGyYk3tLUabvyn4v7KtESG (contains ~5 ROC) This is the call made to make the HRMP ...
  • 1,036
0 votes
3 answers
80 views

I can't open a HRMP channel between the parachains

I am testing XCM between parachain 2000 and parachain 2001 while referencing this link, How to open HRMP channels between parachains?. But I couldn't open a new HRMP channel, I faced the "Barrier&...
  • 37
0 votes
2 answers
72 views

XTransfer fail with error

I am trying to move relay native currency back to relay chain. But I got the error and can't figure out what is the problem? Hey is my call, xcm configuration setting and error.
1 vote
1 answer
128 views

XCM between multiple parachains

I am gonna transfer the customized message which is actually the string in JSON format for representing some information from one parachain to another one. But I can't find the right functions or ...
  • 37
0 votes
2 answers
106 views

Is teleport of ROC from Rockmine to my parachain should be used instead of reserve transfer?

I am trying to polkadotXcm.reserveTransferAssets of ROC on from Rockmine to Dali https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo-rockmine-rpc.polkadot.io#/extrinsics/decode/...
4 votes
1 answer
136 views

How to avoid impersonation when using DescendOrigin XCM

I'm using Transact to execute an extrinsic from one parachain to another. This extrinsic requires the origin to be a signed account which I'm verifying with ensure_signed. The way I'm getting a signed ...
0 votes
1 answer
28 views

What is the execution order of the ump message?

I'm working on UMP message development recently, but I'm confused about the order of execution of multiple ump messages within 1 block, For example the following transactions https://kusama.subscan.io/...
2 votes
1 answer
123 views

Invalid Incoming XCMP message data

Link to repo I'm trying to do a reserve-backed transfer from statemint to my own parachain of a token minted with the pallet_assets. I've been using the xcm-emulator that lets me plug in my own ...
1 vote
1 answer
88 views

Is there anywhere simple parachain runtime example with XCM reserved transfer functionality from relay chain to parachain and back?

I wonder if there is some example of (parachain)runtime with xcm-pallet and orml-xtokens configuration for education purpose.
0 votes
2 answers
69 views

How to open HRMP with Rococo chain?

hrmp.hrmpInitOpenChannel( recipient: 3000 //the other parachain you want to open the channel with proposedMaxCapacity: 1000 // specifies how many messages can be in ...
3 votes
3 answers
242 views

Can I access storage of relay chain pallet from my parachain?

For eg: I want to get the balance of an account in Polkadot before I can execute the extrinsic in my parachain. Is it possible to do so?
  • 135
1 vote
1 answer
61 views

XCMPallet send transact: error WeightNotComputable

I get the WeightNotComputable error when I try to send this XCM transaction. What am I doing wrong? In the documentation I've read: WeightNotComputable The weight of an XCM message is not computable ...
2 votes
1 answer
47 views

Is direct XCMP possible ? If yes, how?

I'm very interested to use XCMP using with the direct method, but documentation and examples are very hard to find at the current state of polkadot/substrate. Can someone explain me how I could send ...
3 votes
1 answer
270 views

XCM: Reserve transfer MultiLocation mapping

When trying to transfer a parachain's native token to an asset on Statemint, i am having issues in figuring out the conversion of the asset's MultiLocation = (Here, 1_000_000_000).into() into the ...
  • 31
2 votes
0 answers
59 views

How to write super simple custom relay chain

EDIT #2: TLDR Is it possible to write a bare bones version of polkadot relay chain that only has cross chain communication (HRMP) + consensus (BABE+Grandpa) but doesn't have anything else (no ...
2 votes
1 answer
50 views

paraId to chain name mappings?

I would like to associate paraIds with particular parachains as is done in polkadot-js parachains tab. I notice that they hardcode all the paraIds. I can get a list of parachain ids from the relay ...
  • 3,417
3 votes
1 answer
57 views

How can I query the deposit in DOT to create an HRMP channel?

I'm looking in the Developers>Storage>hrmp tab but I can't find the option to check the current minimum to create an HRMP channel. Thanks
1 vote
1 answer
53 views

How do I see what channels are set up between parachains?

How do I see what xcmp channels are set up between parachains on kusama and polkadot?
  • 3,417
7 votes
1 answer
134 views

What is the difference between XCM and XCMP?

Are there any differences between XCM and XCMP? I hear these words being thrown around and I thought they meant the same concept, but in some contexts, they appear to be different.
  • 1,842
5 votes
1 answer
226 views

How to enable cross-chain asset transfers to a parachain?

This is a question about XCM. Do I just need to add orml_xtokens dependency to a parachain to allow transferring assets to another chain?
  • 603
15 votes
2 answers
224 views

What is the XCM format on Polkadot?

What is the XCM format on Polkadot? Could anyone please explain? Thank you so much!
  • 253