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
1 answer
48 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
29 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
0 votes
2 answers
65 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
  • 503
0 votes
0 answers
15 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
34 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
41 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
1 vote
2 answers
62 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
27 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
  • 501
1 vote
1 answer
50 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
60 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
152 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
82 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
46 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
47 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
  • 415
-1 votes
1 answer
73 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
70 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
66 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
131 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
291 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
70 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
115 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
2 votes
1 answer
99 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
  • 93
5 votes
0 answers
58 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
69 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 ...
Decentration's user avatar
  • 1,356
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
178 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/), ...
Decentration's user avatar
  • 1,356
1 vote
2 answers
109 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, ...
Decentration's user avatar
  • 1,356
0 votes
1 answer
59 views

whats the difference between the two different sovereign account addresses?

There are different sovereign account addresses here, what are the differences?
Decentration's user avatar
  • 1,356
0 votes
1 answer
59 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 ...
Decentration's user avatar
  • 1,356
1 vote
3 answers
92 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
87 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
  • 509
1 vote
1 answer
164 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
138 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
197 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
35 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
137 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
115 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
  • 509
0 votes
2 answers
79 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 ...
rust.dev's user avatar
  • 509
3 votes
3 answers
262 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?
Fenn Saji's user avatar
  • 145
1 vote
1 answer
87 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 ...
lucgerrits's user avatar
2 votes
1 answer
60 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 ...
lucgerrits's user avatar
4 votes
1 answer
364 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 ...
Rakan's user avatar
  • 41
3 votes
0 answers
77 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 ...
Steven Yao's user avatar
2 votes
1 answer
63 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 ...
Squirrel's user avatar
  • 3,759
3 votes
1 answer
61 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
Sebastian Crypto's user avatar
1 vote
1 answer
74 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?
Squirrel's user avatar
  • 3,759
9 votes
1 answer
176 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.
Keith Yeung's user avatar
  • 2,061
6 votes
1 answer
266 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?
99kies's user avatar
  • 733
17 votes
3 answers
284 views

What is the XCM format on Polkadot?

What is the XCM format on Polkadot? Could anyone please explain? Thank you so much!
CuongDC's user avatar
  • 273