Decode SCALE data
subtensor_decodeRead-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
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | SCALE-encoded bytes as hex, with or without a 0x prefix. Whitespace is ignored. | |
| kind | No | What the bytes are: 'event' (default), 'call', or 'value' for a bare value of a given type | |
| name | No | Event or call name. Must be given together with "pallet". | |
| type | No | For kind="value": the SCALE type to decode against, e.g. "u64", "AccountId", "Vec<u16>", "Option<u32>" | |
| format | No | Response format: 'text' (compact, default) or 'json' (structured) | |
| pallet | No | Pallet of the event or call. Omit together with "name" to identify the item from the byte prefix instead. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| input | Yes | ||
| fields | Yes | ||
| trailing_bytes | Yes |