Questions tagged [xcm]

XCM (Cross-Consensus Message Format) is a communication format between consensus systems

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 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
  • 1
0 votes
0 answers
23 views

Superuser xcm origin being used on reserve asset transfer from asset hub to parachain

I'm testing a reserve asset transfer from polkadot asset hub to a parachain using chopsticks, the transfer is failing, I think this is because the xcm origin being used for the reserve asset transfer ...
Sebastian's user avatar
  • 407
0 votes
0 answers
8 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
0 votes
3 answers
58 views

Unroutable Error when performing reserve asset transfer of DOT from parachain to asset hub

I'm getting an "Unroutable" Error when performing reserve asset transfer of DOT from parachain to polkadot asset hub. I have tested it on rococo using the same wasm for the parachain and I'm ...
Sebastian's user avatar
  • 407
1 vote
0 answers
51 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
1 answer
31 views

I want to Send data to relaychain from parachain?

I want to send JSON or normal String Message from Parachain to relay chain but i new in the substrate and I am finding it difficult. I am using the Polkadot-sdk template for relaychain and substrate-...
manish singh's user avatar
0 votes
1 answer
36 views

AssetTrapped: I teleported 1499 DOT from Polkadot to AssetHub but it has not arrived

https://polkadot.subscan.io/extrinsic/20098119-2 "AssetsTrapped" (1,499 DOT!!) So trying to claim an asset: here is the encoded call ...
Ramsey - Decentration's user avatar
0 votes
0 answers
13 views

When two XCM's are processed in a block, how to strongly correlate balances.Deposit event with messageQueue.Processed event?

For this block: https://kusama.subscan.io/block/22144324, two XCM's are processed. The response is: "onInitialize": { "events": [ { &...
will.yijinin'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
2 votes
2 answers
80 views

Buy execution time in DOT on AssetHub

I want to execute Transact on AssetHub from another parachain and therefore need to WithdrawAsset and BuyExecution beforehand. Unfortunately, I keep running into FailedToTransactAsset on AH. I am ...
0x5hmoo's user avatar
  • 189
1 vote
1 answer
76 views

X2(para_id, account_id) conversion on relay chain resulting in `AccountIdConversionFailed`

We ran into an issue when trying to create a pool on the relay-chain from a contract on the parachain. The issue is that when an interior location of a parachain (a contract account on Shibuya) sends ...
Zabuxx's user avatar
  • 125
1 vote
1 answer
93 views

How do you find the public key for the Medium Spender track Origin?

I am looking to leverage the referendum track in a creative way by assigning the Medium Spender track ownership of an asset on Asset Hub. In order to do this we need to find an address for the track. ...
Ramsey - Decentration's user avatar
0 votes
1 answer
29 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
3 answers
105 views

Error Bad origin on custom XCM integration

I am building custom XCM pallet. While executing specific call: The destination is of ParaId type. match send_xcm::<T::XcmSender>( (Parent, Junction::Parachain(destination.into()...
Dudo's user avatar
  • 21
1 vote
0 answers
20 views

XCM send Example Without Sudo Call

I've checked this document, and the commands work. However, is it possible to do the xcm_send but not from the sudo users? https://docs.substrate.io/tutorials/build-a-parachain/transfer-assets-with-...
Jay Pan's user avatar
  • 75
0 votes
1 answer
62 views

SendFailure error when performing reserve asset transfer from rococo asset hub to parachain

I'm getting a SendFailure error(on asset hub) when performing a reserve asset transfer of ROC from rococo asset hub to a parachain, does anyone know what might be the cause? Or how can I further debug ...
Sebastian's user avatar
  • 407
1 vote
1 answer
48 views

AssetHub interaction with AccountId20

Say I want to send and receive tokens from AssetHub in my chain that is using AccountId20 format to interact with internal pallets. I understand that Rococo uses AccountId32 so how would I go about ...
Valentin Fernandez's user avatar
1 vote
1 answer
42 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
1 answer
77 views

How can you use Polkadot JS API to Create an XCM Reserve Transfer Assets? (XCM V2)

I am trying to create a reserve transfer assets call from a relay chain like Kusama to a Parachain. To do this, I need to: connect to the relay chain with Polkadot JS API construct the XCM types ...
Shawn Tabrizi's user avatar
  • 16k
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
67 views

Differences between xcm-simulator and xcm-emulator

I'm trying to have a deep understanding of the differences between xcm-simulator and xcm-emulator. I understand that xcm-emulator is "less mocked" than xcm-simulator. But because when using ...
magecnion's user avatar
  • 212
0 votes
0 answers
25 views

How to implement XC-20 standard

I need help understanding XC-20 implementation and how its components interact. Suppose I run a parachain (ParaA) that aims to supports XC-20. I need to include Frontier so ParaA is fully EVM ...
magecnion's user avatar
  • 212
1 vote
0 answers
20 views

Why does in polkadot and most other chain xcm pallet the XcmExecution filter is set deny all instructions

// ...but they must match our filter, which rejects all. type XcmExecuteFilter = Nothing; // == Deny All
Mrisho Lukamba's user avatar
1 vote
1 answer
53 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
2 votes
1 answer
33 views

Using ReportTransactStatus in XCM give me a unroutable error

I am getting an 'Unroutable' error when setting an Error Handler using ReportTransactStatus in my XCM Message. I am using the polkadot-v1.0.0, at V3 of XCM. match send_xcm::<T::XcmSender>( (...
Alexandre Ribeiro's user avatar
2 votes
1 answer
118 views

Tokens lost when XCM MessageProcessor "Processing failed"?

Right after Kusama got upgraded to 1.0, all the upward messages from Mangata started to fail on Kusama with the following error: messageQueue.ProcessingFailed Message discarded due to an error in the ...
Gonzalo Cerro's user avatar
2 votes
0 answers
53 views

XCM transfer of ROC from parachain to Rococo does not update balance on Rococo

I am currently successfully able to transfer ROC from Rococo to a parachain using a Reserve Asset Transfer. However when I want to transfer some of the ROC from our parachain back to Rococo but when I ...
chexware's user avatar
  • 325
1 vote
2 answers
92 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
1 vote
1 answer
56 views

How to create wrapped DOT asset on local setup

Local setup: Zombienet running Shiden and Relay Chain. What are the exact steps needed to create an asset which represents DOT on Shiden (wrapped DOT). More specifically, I am trying to create the ...
Snowmead's user avatar
  • 625
3 votes
1 answer
130 views

How to transfer wrapped DOT from Astar to Polkadot using XCM

How do you tranfer wrapped DOT (AssetId: 340,282,366,920,938,463,463,374,607,431,768,211,455) on Astar/Shiden to Polkadot/Kusama using XCM? Following this guide from Astar XCM documentation, this ...
Snowmead's user avatar
  • 625
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
50 views

XCM - Add remote origins execution to Polkadot/Kusama

I was wondering is there any specific reason why Polkadot still does not support XCM execution from Computed Origins LocalOriginConverter - Apologies as I'm not a Substrate developer but I looked ...
AlbertoV19's user avatar
0 votes
0 answers
18 views

Best practices for generating sovereign account ids from XCM locations

The XCM builder crate provides various converters for generating sovereign account ids from MultiLocations. Many parachains, including system parachains, use the following converter: A: pub type ...
Vincent's user avatar
  • 158
0 votes
1 answer
35 views

What is the sovereign account of the relay chain?

What is the sovereign account of a relay chain on a parachain? This can be useful for e.g. funding the account for xcm execution fee payment.
Daan van der Plas's user avatar
1 vote
0 answers
47 views

Transferring Entire Account Balance with XCM and Calculating Required Deposits: Best Practices

Is it possible to transfer the entire balance of an account using XCM, similar to the 'transferAll' function, considering the required deposit for XCM in each transaction? Another question is, what is ...
Kami's user avatar
  • 537
4 votes
1 answer
97 views

XCM Reserve Asset Transfer from Rococo succeed but do not appear on Parachain

I am testing transferring ROC between Rococo and a Parachain. The HRMP channels are already open but when I submit try the following XCM Message: The transfer returns no errors but the funds do not ...
chexware's user avatar
  • 325
3 votes
2 answers
116 views

XCM Reserve Transfer Between AssetHub (Rococo) is Unroutable

I am testing transferring ROC between AssetHub and a Parachain. The HRMP channels are already open but when I submit try the following XCM Message: I get this error: [ { type: "...
chexware's user avatar
  • 325
2 votes
1 answer
47 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
3 votes
0 answers
71 views

XCM via governance

Hi All I am currently embarking on trying to send funds from the treasury via XCM I am fairly certain this isn't possible right now because the treasury origin does not have send rights. I am ...
Sam Elamin's user avatar
  • 1,223
1 vote
1 answer
30 views

XCM Transfer | How to get account addresses of rococo, mangata?

I rewrote some examples of transfer assets from rococo to some parachains like mangata, rockmine, dali.... on the blockcoder repository at https://github.com/blockcodes/xcm-sdk I don't know how to get ...
Dung Nguyen's user avatar
2 votes
2 answers
94 views

Is it Possible to Use XCM with a Substrate Solo Chain?

I'm working on a blockchain project using Substrate and I'm planning to implement a solo chain (standalone chain). My use-case involves having the chain operate independently, but I'm also interested ...
Mr Coder's user avatar
  • 923
0 votes
0 answers
18 views

Can a user in parachain construct an XCM msg with a DescendOrigin instr and the dest to be the Relay Chain

This is an extension question on Remote XCM calls execution via individual signed Account As most of derivitive Accounts are either from Relay Chain to parachain and getting the derived Account you ...
Mrisho Lukamba's user avatar
0 votes
1 answer
29 views

error[E0277]: the trait bound `xcm::v3::SendError: PalletError` is not satisfied

I'm attempting to utilize the XCM error within the context of my pallet's error handling, but I'm facing this problem. The error which i'm using #[pallet::error] pub enum Error<T, I = ()> { ...
Arunjot Singh's user avatar
1 vote
1 answer
97 views

XCM remote transactions call

I have 2 scenerio Para A sends instruction to relay chain for sending tokens from Alice in Relay Chain to Bob inside relay chain using native relay chain tokens ( Remote transfer ) But the ...
Mrisho Lukamba's user avatar
1 vote
1 answer
26 views

Is it possible to do xcm transfers between parachains without a channel opened?

I'm experiencing something that I consider some weird behavior :) I set up two parachains and somehow I can transfer native tokens between them without opening a channel :O Here you can find the ...
Gonzalo Cerro's user avatar
2 votes
2 answers
48 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
0 votes
1 answer
19 views

The differences between Appendix register and programme register in XCVM registers

3.1 Programme Of type Vec, initialized to the value of the Original Programme. Expresses the currently executing programme of instructions for the XCVM. This gets potentially changed after either the ...
Mrisho Lukamba's user avatar

1
2 3 4 5