{"id":26233687,"url":"https://github.com/docknetwork/substrate-client-cli","last_synced_at":"2026-04-20T16:03:56.878Z","repository":{"id":104957942,"uuid":"225929628","full_name":"docknetwork/substrate-client-cli","owner":"docknetwork","description":"query substrate chain state from the terminal","archived":false,"fork":false,"pushed_at":"2019-12-04T18:18:14.000Z","size":38,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-31T03:24:45.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/docknetwork.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-04T18:17:18.000Z","updated_at":"2019-12-04T18:19:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"e0b06c6a-7b25-4cf4-a312-9ed18922f11d","html_url":"https://github.com/docknetwork/substrate-client-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/docknetwork/substrate-client-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fsubstrate-client-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fsubstrate-client-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fsubstrate-client-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fsubstrate-client-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docknetwork","download_url":"https://codeload.github.com/docknetwork/substrate-client-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fsubstrate-client-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32054611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-13T01:17:05.397Z","updated_at":"2026-04-20T16:03:56.873Z","avatar_url":"https://github.com/docknetwork.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Example command line utility for querying latest state from a substrate based chain.\n\nThis example supports querying some, but not all public storage items used in the\nsubstrate-node-template.\n\nExample usage:\n\n```\n# Get the balance of the Alice account\nsubstrate-client-cli ws://127.0.0.1:9944 read balances-free-balance '\"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY\"'\n```\n\nInput and output are encoded as json.\n\n# How it works\n\nSubstrate state queries consist of the following steps:\n\n- take some key K\n- convert K to a raw trie index (usually by SCALE encoding then hashing)\n- lookup the index in chainstate\n- decode index as some value V\n\nIn short: `K -\u003e SCALE encode -\u003e Hash -\u003e lookup -\u003e SCALE decode -\u003e V`\n\nThis example utility composes the process to allow queries from the command line.\n\n`json decode -\u003e K -\u003e SCALE encode -\u003e Hash -\u003e lookup -\u003e SCALE decode -\u003e V -\u003e json encode`\n\n`K` must implement `serde::Deserialze` and `V` must implement `serde::Deserialze`.\n\n# Typechecking\n\nTraits from `srml_support::storage::hashed::generator` like `StorageMap` provide type safety.\nFor example try changing the return type of `SystemAccountNonce` from `u32` to something else.\n(\"./src/query.rs\"). Rustc will shout at you because node-template-runtime uses `u32` for\naccount nonces.\n\n# Limits\n\nFunctionality is limited. Here are some things this tool could do, but does not. (PRs welcome)\n\n- Extrinsic submission\n- Querying state for blocks other the latest\n- StorageDoubleMap queries (would be straightforward to implement, needs a test case)\n- StorageLinkedMap queries (would be straightforward to implement, needs a test case)\n- `#[derive(StorageQuery)]`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocknetwork%2Fsubstrate-client-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocknetwork%2Fsubstrate-client-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocknetwork%2Fsubstrate-client-cli/lists"}