Skip to content

XCM messages not decoded when decodedXcmMsgs=true - returns raw hex data instead #272

@TarikGul

Description

@TarikGul

Description

When querying blocks with decodedXcmMsgs=true, the API returns raw hex-encoded data instead of decoded XCM messages.

Steps to Reproduce

Query a Polkadot block with XCM messages:

GET /v1/blocks/30219740?decodedXcmMsgs=true

Expected Behavior

The decodedXcmMsgs field should contain decoded XCM message structures with human-readable instruction data.

Actual Behavior

The response contains raw hex data in the data field instead of decoded XCM:

{
  "decodedXcmMsgs": {
    "horizontalMessages": [],
    "downwardMessages": [],
    "upwardMessages": [
      {
        "originParaId": "3428",
        "data": "0x019800240801122027dfed38c9c2df1dd987f71f8a661552bd5f7aed01a86fe043484a04f1770cc0"
      },
      {
        "originParaId": "3428",
        "data": "0x000001"
      }
    ]
  }
}

Context

- Block 30219740 on Polkadot contains upward messages from parachain 3428
- Sidecar fails to decode this block with error: createType(XcmVersionedXcm):: Unable to create Enum via index 152
- The first byte 0x98 (152 decimal) suggests this may not be a standard VersionedXcm - possibly a different message type or custom encoding from the parachain

Environment

- Network: Polkadot
- Block: 30219740
- Parachain origin: 3428

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions