Skip to main content
Glama

Subtensor MCP

Decode SCALE data

subtensor_decode
Read-onlyIdempotent

Decode SCALE-encoded hex into labelled fields with RAO→TAO and hex→SS58 conversions applied. Omit pallet and name to identify an event or call from its two-byte (pallet index, item index) prefix — the usual case when you have bytes and want to know what they are.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hexYesSCALE-encoded bytes as hex, with or without a 0x prefix. Whitespace is ignored.
kindNoWhat the bytes are: 'event' (default), 'call', or 'value' for a bare value of a given type
nameNoEvent or call name. Must be given together with "pallet".
typeNoFor kind="value": the SCALE type to decode against, e.g. "u64", "AccountId", "Vec<u16>", "Option<u32>"
formatNoResponse format: 'text' (compact, default) or 'json' (structured)
palletNoPallet of the event or call. Omit together with "name" to identify the item from the byte prefix instead.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes
inputYes
fieldsYes
trailing_bytesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources