Polkadot / Substrate SS58, storage keys, hashes (dev tool)
substrate_toolSubstrate helpers: op=ss58_decode (address → account public key hex + network prefix), ss58_encode (account hex + prefix → address), ss58_convert (address + prefix → same account under another network), storage_key (account address → System.Account storage key hex), decode_account_info (SCALE hex → nonce/balances), blake2b (hex data, out_len bytes 1-64, optional personal), twox128 (text). Pure, offline computation (blocktools); nothing is fetched or stored. How to combine this with the other tools: swapchan_playbook (workflows: find-money, best-swap, rebalance, revoke-approvals, bridge-stuck, token-safety, recover-old-wallet).
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": {
"op": "<op>"
},
"name": "substrate_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| hex | No | ||
| data | No | ||
| text | No | ||
| prefix | No | ||
| account | No | ||
| address | No | ||
| out_len | No | ||
| personal | No |