Decode SCALE data
subtensor_decodeDecode 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hex": "<hex>"
},
"name": "subtensor_decode"
}
}Input 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
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| input | Yes | ||
| fields | Yes | ||
| trailing_bytes | Yes |