Skip to main content

Questions tagged [xcm]

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

Filter by
Sorted by
Tagged with
2 votes
0 answers
21 views

XCM fee payment with destination on-chain asset balance

Is there a way in XCM v3/v4 to charge a user XCM fees using something else than what's in the holding registry at the time the fees are to be taken? Specifically, I'm talking about deducting a user's ...
Antonio Antonino's user avatar
3 votes
0 answers
35 views

Why is the index of a pallet a u32(usize) instead of u8 when queried?

I'm implementing a flow where I first ask what index a pallet has with the QueryPallet xcm instruction, and then construct a call to use with Transact. I see that to construct manually an encoded call ...
Juan Ignacio Rios's user avatar
0 votes
0 answers
25 views

Runtime support for XCM message passing

Can someone help me pinpoint which pallets and APIs are required from a runtime perspective to implement support for passing XCM messages between parachains (if I decide to implement it from scratch) ?...
user2862's user avatar
  • 309
0 votes
0 answers
25 views

What's the "checking account" in XCM and what other accounts should a parachain migrate in the pallet-balance v0 to v1 migration

The term "checking account" pops up in one or two spots in the code, in this migration for instance: https://github.com/paritytech/substrate/pull/12813. But I can't find any docs on this. ...
mkl's user avatar
  • 344
0 votes
0 answers
16 views

How to get the ink! examples working

I have been banging my head in over the last couple of days trying to understand Rust and ink! I would really like to start writing smart contracts in the substrate ecosystem but I can't even get the ...
HAGO's user avatar
  • 1
0 votes
0 answers
12 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
0 votes
0 answers
17 views

How to perform remote transfer on a pure proxy account using xcm

Alice is a pure proxy account (keyless account) created on Kusama Relay Chain. Bob accidentally deposited DOT to Alice's address on Polkadot Relay Chain. Can Alice's controller craft an XCM call on ...
Chris Ling's user avatar
0 votes
0 answers
12 views

How to store and mapped XCM message on relaychain

I want to send a message (including name, age, gender, etc.) from a parachain to a relay chain. Then, I want to store and map that data with the particular account number on relaychain. Can anyone ...
manish singh's user avatar
0 votes
1 answer
51 views

If the first ever reserve asset transfer from asset hub to a parachain is of an asset other than DOT it fails with LocalExecutionIncomplete

I've noticed that if the first ever reserve asset transfer from asset hub to a parachain is of an asset other than DOT it fails with LocalExecutionIncomplete, the chopsitcks logs don't show any output....
Sebastian's user avatar
  • 411
0 votes
0 answers
21 views

How to execute transactions from Root within a "fork locally" chain within Polkadot.js UI?

I'm trying to test XCM using Chopsticks but running into issues. One workaround I'm trying is to use Polkadot.js UI's "Fork Locally" option. I know several accounts are built in (Alice, Bob, ...
spazcoin's user avatar
1 vote
0 answers
26 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
0 votes
0 answers
25 views

Can't compose_call with call function limited_reserve_transfer_assets - python substrate interface?

This question relates to building the call_params for the compose_call function. I have the params for the rest correct, but have trouble building the assets attribute params? Here's a reference I ...
ConfusedSubstrateNoob's user avatar
1 vote
1 answer
39 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
4 answers
102 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
  • 411
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
0 votes
2 answers
79 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
  • 411
1 vote
0 answers
76 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
35 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
43 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
1 vote
0 answers
15 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
92 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
  • 329
1 vote
1 answer
77 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
100 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
33 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
110 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
  • 95
0 votes
1 answer
65 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
  • 411
1 vote
1 answer
52 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
46 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
36 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
128 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
  • 16.2k
1 vote
0 answers
43 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
69 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
  • 344
0 votes
0 answers
26 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
  • 344
1 vote
0 answers
23 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
56 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
42 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
36 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
122 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
58 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
95 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
60 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
132 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
56 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
21 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
43 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
48 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

1
2 3 4 5