Skip to main content

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
0 votes
0 answers
9 views

Is NoPriceForMessageDelivery unsafe?

I've seen many instances of cumulus_pallet_xcmp_queue configuring : type PriceForSiblingDelivery = NoPriceForMessageDelivery<ParaId>; or type PriceForSiblingDelivery = (); I've also seen this ...
Purple_Turtle's user avatar
1 vote
0 answers
24 views

What should be the proper XCM format?

I'm not sure if these are the right questions to ask, as I'm pretty new to the world of Cross-Consensus Messaging (XCM), but I'm really curious about how to properly create XCM instructions or an XCM ...
Noah's user avatar
  • 25
1 vote
1 answer
37 views

XCM: messageQueue.Processed

I'm new to the world of Cross-Consensus Messaging (XCM). I'm trying to send an XCM message from Rococo AssetHub to Trappist to transfer funds from an asset that I've created on both chains, but I ...
Noah's user avatar
  • 25
0 votes
0 answers
13 views

Unfortunately error when submitting transactions in polkadot

In my project when I submit the transaction I'm getting [error: polkadotxcm.filtered]
Preethi M's user avatar
1 vote
0 answers
67 views

Error TooExpensive when transferring fungible assets between parachains

I'm trying to transfer fungible assets between two parachains. I'm using Westend relay chain, Westmint as first para and custom parachain as second para. I launched my setup with zombienet and opened ...
Artem Levchuk's user avatar
0 votes
0 answers
19 views

xcmpQueue.Fail - NoPermission when I try to execute an XCM extrinsic via proxy

I'm interacting with a smart contract on Astar via XCM message from another chain and through a proxy account with proxy type = "Any". The XCM message arrives at the smart contract chain but ...
Pablo Corrado's user avatar
0 votes
1 answer
31 views

How to compose XCM call, which sends xcm message from a normal account on relay to a normal account on parachain(1000), and executes encoded call?

I am attempting to compose an XCM call that sends a message from the relay chain to AssetHub, from one normal account (on Rococo) to the same normal account (on AH), and then executes a call. Once it ...
Ramsey - Decentration's user avatar
2 votes
0 answers
17 views

What's the state of XCMP, and how does it compare to AWM

I'm trying to read about XCMP but documentation is a bit confusing as, 1. It doesn't exist yet, 2. development is hard to follow. I was mainly curious as to how it compares to AWM, as both seem to (in ...
Gonzalo Etse's user avatar
1 vote
1 answer
43 views

Using ensure_sibling_para results in Origin error

Using the following line results in the error 'Bad Origin' in Runtime call. let para = ensure_sibling_para(<T as Config>::RuntimeOrigin::from(origin.clone()))?; I am building a pallet that ...
Dudo's user avatar
  • 33
1 vote
0 answers
29 views

How to implement XCM into Mock.rs for tests in Pallet?

How to implement XCM into Morck.rs for tests in Pallet? I use XCM in my Lib.rs calls. I have to implement the following: type XcmSender = XcmRouter; type RuntimeOrigin = RuntimeOrigin; type ...
Dudo's user avatar
  • 33
0 votes
1 answer
35 views

How to construct XCM message that transfers custom encoded call

Suppose we have a message that transfers encoded call that looks as follows: call = Self::MintNickname.encode().into() How do we transfer it to another parachain via XCM in Rust snippet? Another chain ...
Dudo's user avatar
  • 33
1 vote
0 answers
42 views

Writing XCM in lib.rs results in many errors

I am trying to send an XCM message encoding my own pallet call to another chain. I am struggling to write it in a universal way into lib.rs and I am receiving ton of errors. These are the packages I ...
Dudo's user avatar
  • 33
1 vote
1 answer
55 views

UnexpectedReponse in XCM when using ReportTransactStatus

I'm having issues when using the ReportTransactStatus in my XCM message as it gives me a UnexpectedResponse in my origin Parachain. How can I register the matching query in the origin, so when the ...
Alexandre Ribeiro's user avatar
0 votes
1 answer
41 views

XcmError::TooExpensive When trasfering fungible assets between statemine & trappist parachains with rococo relay chain (limitedReservedTransferAssets)

I'm trying to test transfer of fungible assets from Statemine to Trappist with Rococo relay chain to integrate assets to my custom parachain. First of all, I tried to repeat the steps shown in the ...
Artem Levchuk's user avatar
1 vote
2 answers
93 views

How to fix the `FailedToTransactAsset("InsufficientBalance")` error?

I already read this post XCM cross-chain transfer error FailedToTransactAsset("InsufficientBalance")? , but nothing helped. I get the following XCM logs (originates from Parachain 2001): ...
Chralt's user avatar
  • 543
0 votes
0 answers
16 views

When will the xcm-executor implement something on the instr `HrmpNewChannelOpenRequest`?

I want to have some automatic handling for channel opening requests. I can do this by executing some logic when the relay sends an HrmpNewChannelOpenRequest instruction, but the default xcm-executor ...
Juan Ignacio Rios's user avatar
2 votes
1 answer
55 views

How to calculate fee xcm message at source chain and destination chain?

I am looking for a way to charge for xcm message. (I know this topic has been discussed a lot, but I still haven't found my own answer, and haven't written a script to test, so I want to open this ...
Dung Nguyen's user avatar
2 votes
2 answers
49 views

Where can I find documentation on XCM channels ( HRMP, VMPs). How they actually work?

Although I can read the code and try to bring the pieces together but If I can find the documentation or specification implementation doc on XCM channels, how they are implemented, how it ensures the ...
Mrisho Lukamba's user avatar
2 votes
2 answers
88 views

XcmError "UntrustedReservedLocation" & "TooExpensive" while transfer assets between two parachains (limitedReservedTransferAssets)

I'm trying to integrate stablecoin into parachain. First of all, I tried to repeat the steps shown in the video (https://www.youtube.com/watch?v=UfxU3hUprKo&t=1182s) with standard settings: ...
Artem Levchuk's user avatar
2 votes
1 answer
37 views

How does XCMP Queue work?

Is cumulus_pallet_xcmp_queue just an implementation for HRMP (relayed messages b/w sibling parachain) or is it the actual implementation of XCMP (Direct p2p messages b/w sibling parachains) ?
b0zero's user avatar
  • 533
1 vote
1 answer
52 views

Can we modify storages using Cross Chain Message Passing(XCM)?

I am currently working on transferring NFTs from one chain to another using XCM. To accomplish this, I need to remove the NFTs from the storage of the source chain and add them to the storage of ...
Ipsa Gupta's user avatar
5 votes
2 answers
67 views

XCM and block finalisation/revert

What happens if an XCM is sent from blockchain A to blockchain B before finalisation, and then the block on blockchain A is reverted? Is blockchain's B block also reverted? Is it safe to assume that ...
Antonio Antonino's user avatar
8 votes
1 answer
200 views

How to verify that the XCM message went through successfully?

I am currently bridging the tokens from one Parachain to another, and I am examining two events to ensure the successful completion of the transaction. The first event is xcmpQueue.Success, which ...
Matus's user avatar
  • 81
6 votes
1 answer
83 views

What prevents a replay attack in XCM?

I've been looking into Cumulus SDK's parachain and XCM handling functions in XcmpQueue to handle XCM protocol functions such as send_xcm(). It seems by default, messages are not signed when sent. If ...
Maxwell's user avatar
  • 91
3 votes
1 answer
49 views

What prevents a malicious user to spam large XCM messages?

I've been looking into Cumulus SDK's parachain and XCM handling functions in XcmpQueue to handle XCM protocol functions such as sending an XCM message with send_xcm(). I noticed that there's a message ...
Maxwell's user avatar
  • 91
3 votes
0 answers
33 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 ...
Antonio Antonino's user avatar
2 votes
1 answer
55 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?
Josh's user avatar
  • 425
-1 votes
1 answer
77 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 ...
Arunjot Singh's user avatar
0 votes
2 answers
80 views

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

Whenever i send 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 --source-...
Arunjot Singh's user avatar
1 vote
1 answer
81 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 ...
waahaha's user avatar
  • 11
3 votes
2 answers
145 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, ...
gatsey's user avatar
  • 183
4 votes
2 answers
340 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 ...
Rohitas_atr894's user avatar
0 votes
0 answers
71 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 ...
gatsey's user avatar
  • 183
0 votes
1 answer
134 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 ...
jgreen's user avatar
  • 21
3 votes
1 answer
117 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, ...
ZKT's user avatar
  • 113
5 votes
0 answers
61 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, ...
apopiak's user avatar
  • 418
3 votes
1 answer
72 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 transfer to parachain A (1000) (or it could at least be clearer). In my case ...
Ramsey - Decentration's user avatar
1 vote
1 answer
33 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-...
Georgi Zlatarev's user avatar
5 votes
2 answers
181 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/), ...
Ramsey - Decentration's user avatar
2 votes
2 answers
125 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, ...
Ramsey - Decentration's user avatar
0 votes
1 answer
89 views

whats the difference between the two different sovereign account addresses?

There are different sovereign account addresses here, what are the differences?
Ramsey - Decentration's user avatar
0 votes
1 answer
78 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 ...
Ramsey - Decentration's user avatar
1 vote
3 answers
101 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&...
TinyDev's user avatar
  • 57
0 votes
2 answers
90 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.
rust.dev's user avatar
  • 519
1 vote
1 answer
183 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 ...
TinyDev's user avatar
  • 57
0 votes
2 answers
144 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/...
Dzmitry Lahoda's user avatar
6 votes
1 answer
208 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 ...
Juan Ignacio Rios's user avatar
0 votes
1 answer
37 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/...
hahaming's user avatar
2 votes
1 answer
143 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 ...
Juan Ignacio Rios's user avatar
1 vote
1 answer
129 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.
rust.dev's user avatar
  • 519