Closed will-yjn closed 7 months ago
Thank you for your question @will-yjn The reason you cannot find the upward message is because:
processed
.
included
/sent
in this block. So to find this XCM message, you will need to query 2 blocks back (when this XCM message was actually sent) :
http://0.0.0.0:8080/blocks/21548600?decodedXcmMsgs=true
Typically, when you know the block in which an XCM message was processed, you can look back 1 or 2 blocks to find when this same XCM message was sent.
Let us know if this answer covers your question so we can close the issue.
Thank you very much! I still have two questions:
Just to clarify, the decoded XCM messages in the blocks
endpoint of Sidecar has the sole purpose of showing the XCM messages found/included within a block.
Below sharing some resources that can be helpful to understand better XCM and its functionalities:
@will-yjn I am closing this issue as resolved. If you encounter any bugs in the specific or other endpoint, don't hesitate to reopen it or submit a new issue. Thank you for your questions! 💯
Description The subscan shows there is an XCM message that deposits 1 KSM to an account: https://kusama.subscan.io/xcm_message/kusama-68882b46f2567e950457e91afcf189c2cbfbf0a1 But querying the sidecar does not return expected result. Related to this issue: https://github.com/paritytech/substrate-api-sidecar/pull/1364
Steps to Reproduce
docker run --rm -it --read-only --env SAS_SUBSTRATE_URL=wss://kusama-rpc.polkadot.io -p 8080:8080 parity/substrate-api-sidecar:v17.5.1
curl -X GET "http://0.0.0.0:8080/blocks/21548602?decodedXcmMsgs=true" -H "accept: application/json"
Expected vs. Actual Behavior Expect to see messages in
decodedXcmMsgs
. Instead see empty arrays.