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-parachain-template for parachain. Both are connected but I don't how to transfer data using XCM.

  • Why do you want to send JSON to the relay chain? What information do you want to include in it?
    – liamaharon
    Apr 1 at 5:04
  • it is not particularly JSON, any data. for example, I want to send some profile info from Parachain to Relaychain and then store it on the Relaychain. JSON is not important. Apr 1 at 9:28

1 Answer 1


You can place any payload you want in a Call and send it over as Transact. You can learn more about Transact here.

But, as @liamaharon is asking, it is questionable whether you actually need to send a JSON over a cross consensus messaging protocol or not. Possibly you can send a hash, commitment, or similar, and send the JSON offchain?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.