{"id":37197438,"url":"https://github.com/linki/wanchain-cli","last_synced_at":"2026-01-14T22:57:04.755Z","repository":{"id":45856488,"uuid":"208339076","full_name":"linki/wanchain-cli","owner":"linki","description":"CLI for a Wanchain RPC endpoint","archived":true,"fork":false,"pushed_at":"2022-08-27T13:41:29.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-14T21:48:21.240Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-13T20:11:42.000Z","updated_at":"2023-01-04T09:31:30.000Z","dependencies_parsed_at":"2022-09-15T13:51:56.531Z","dependency_job_id":null,"html_url":"https://github.com/linki/wanchain-cli","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/linki/wanchain-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linki%2Fwanchain-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linki%2Fwanchain-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linki%2Fwanchain-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linki%2Fwanchain-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linki","download_url":"https://codeload.github.com/linki/wanchain-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linki%2Fwanchain-cli/sbom","scorecard":{"id":591031,"data":{"date":"2025-08-11","repo":{"name":"github.com/linki/wanchain-cli","commit":"091f24e103e750ab78c84670e85786f5f5826f89"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/linki/wanchain-cli/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/linki/wanchain-cli/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/linki/wanchain-cli/release.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:2","Warn: containerImage not pinned by hash: Dockerfile:13: pin your Docker image by updating alpine:3.13.5 to alpine:3.13.5@sha256:1d30d1ba3cb90962067e9b29491fbd56997979d54376f23f01448b5c5cd8b462","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.9.0 not signed: https://api.github.com/repos/linki/wanchain-cli/releases/28162818","Warn: release artifact v0.8.0 not signed: https://api.github.com/repos/linki/wanchain-cli/releases/24101895","Warn: release artifact v0.7.0 not signed: https://api.github.com/repos/linki/wanchain-cli/releases/21130849","Warn: release artifact v0.6.0 not signed: https://api.github.com/repos/linki/wanchain-cli/releases/20665808","Warn: release artifact v0.5.0 not signed: https://api.github.com/repos/linki/wanchain-cli/releases/20494650","Warn: release artifact v0.9.0 does not have provenance: https://api.github.com/repos/linki/wanchain-cli/releases/28162818","Warn: release artifact v0.8.0 does not have provenance: https://api.github.com/repos/linki/wanchain-cli/releases/24101895","Warn: release artifact v0.7.0 does not have provenance: https://api.github.com/repos/linki/wanchain-cli/releases/21130849","Warn: release artifact v0.6.0 does not have provenance: https://api.github.com/repos/linki/wanchain-cli/releases/20665808","Warn: release artifact v0.5.0 does not have provenance: https://api.github.com/repos/linki/wanchain-cli/releases/20494650"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0254","Warn: Project is vulnerable to: GO-2022-0256 / GHSA-59hh-656j-3p7v","Warn: Project is vulnerable to: GO-2022-0456 / GHSA-wjxw-gh3m-7pm5","Warn: Project is vulnerable to: GO-2023-2046 / GHSA-ppjg-v974-84cm","Warn: Project is vulnerable to: GO-2024-2819 / GHSA-4xc9-8hmq-j652","Warn: Project is vulnerable to: GHSA-5m8f-chrv-7rw5","Warn: Project is vulnerable to: GHSA-pvx3-gm3c-gmpr","Warn: Project is vulnerable to: GHSA-rqmg-hrg4-fm69","Warn: Project is vulnerable to: GHSA-v9jh-j8px-98vq","Warn: Project is vulnerable to: GHSA-vmf7-hmh6-vv57","Warn: Project is vulnerable to: GHSA-vrcc-g6vj-mh5w","Warn: Project is vulnerable to: GO-2021-0112 / GHSA-f6mq-5m25-4r72"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T21:53:25.514Z","repository_id":45856488,"created_at":"2025-08-20T21:53:25.514Z","updated_at":"2025-08-20T21:53:25.514Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28437501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: 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":"2026-01-14T22:57:03.996Z","updated_at":"2026-01-14T22:57:04.717Z","avatar_url":"https://github.com/linki.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wanchain-cli\n\nCLI for a Wanchain RPC endpoint\n\n# Purpose\n\nThere is lots of useful information regarding the validators behind Wanchain's\nRPC endpoint. However it's quite difficult to read. This tool provides several\ncommands to inspect the state of the validators and displays the information\nin a more readable table layout.\n\n# Usage\n\nIt needs an RPC endpoint to talk to. It only reads publicly available information.\nIn order to be on the safe side don't use an RPC endpoint that can spend your funds.\nBy default it uses https://mywanwallet.io/api which should work for most users.\n\nYou can then execute the commands described below.\n\n# Commands\n\nThe following commands are available.\n\n## activity\n\n```console\n$ wanchain-cli activity --validator-address 0xfc2730f75330bb75cb28fcff12f0aea5b6e433e1\n+----------+------+--------------------------------------------+--------+--------+\n| EPOCH ID | ROLE | ADDRESS                                    | ACTIVE | BLOCKS |\n+----------+------+--------------------------------------------+--------+--------+\n|    18232 | EP   | 0xfc2730f75330bb75cb28fcff12f0aea5b6e433e1 | true   |        |\n|    18232 | EP   | 0xfc2730f75330bb75cb28fcff12f0aea5b6e433e1 | true   |        |\n|    18232 | RP   | 0xfc2730f75330bb75cb28fcff12f0aea5b6e433e1 | true   |        |\n|      ... | ...  | ...                                        | ...    |        |\n|    18232 | RP   | 0xfc2730f75330bb75cb28fcff12f0aea5b6e433e1 | true   |        |\n|    18232 | RP   | 0xfc2730f75330bb75cb28fcff12f0aea5b6e433e1 | true   |        |\n|    18232 | SL   | 0xfc2730f75330bb75cb28fcff12f0aea5b6e433e1 |        | 1703   |\n+----------+------+--------------------------------------------+--------+--------+\n```\n\nIt uses `pos_getActivity` to print Epoch Leader, Random Number Proposer and Slot\nLeader activity sorted by Epoch ID. Active shows whether a validator was\nconsidered active and Blocks shows the number of blocks when in Slot leader role.\n\nThe command takes several flags, use `--help` and [see below](#flags) for a description\nof the flags.\n\n## incentives\n\n```console\n$ wanchain-cli incentives\n+----------+-----------+--------------------------------------------+--------------+\n| EPOCH ID | TYPE      | ADDRESS                                    | INCENTIVE    |\n+----------+-----------+--------------------------------------------+--------------+\n|    18143 | validator | 0x0288c83219701766197373d1149f616c62b52a7d |  10.20666436 |\n|    18143 | validator | 0xfc2730f75330bb75cb28fcff12f0aea5b6e433e1 |  29.99589130 |\n|    18143 | validator | 0x0e83cb3369e065c69b6704f0b16fc2899a6bedb8 |  15.51228138 |\n|    18143 | validator | 0x7212b9e259792879d85ca3227384f1005437e5f5 |  14.39512195 |\n|    18143 | validator | 0x7212b9e259792879d85ca3227384f1005437e5f5 |  14.39512195 |\n|    18143 | validator | 0x7212b9e259792879d85ca3227384f1005437e5f5 |  14.39775959 |\n|      ... | ...       | ...                                        |          ... |\n+----------+-----------+--------------------------------------------+--------------+\n|          | VALIDATOR |                                            |  97.65604884 |\n|          | DELEGATOR |                                            | 461.46278191 |\n+----------+-----------+--------------------------------------------+--------------+\n```\n\nThis one uses `pos_getEpochIncentivePayDetail` to print rewards paid out to validators\nand delegators sorted by Epoch ID. The incentive is displayed in WAN.\n\nThe command takes several flags, use `--help` and [see below](#flags) for a description\nof the flags.\n\n## selected\n\n```console\n$ wanchain-cli selected\n+----------+------+--------------------------------------------+\n| EPOCH ID | ROLE | ADDRESS                                    |\n+----------+------+--------------------------------------------+\n|    18333 | EP   | 0xd4a0f5df136f65345b9d6fcd306fdb018213005a |\n|    18333 | EP   | 0x0288c83219701766197373d1149f616c62b52a7d |\n|      ... | ...  |                                        ... |\n+----------+------+--------------------------------------------+\n```\n\nChecks which validator is selected for a given Epoch ID. If no Epoch ID is provided\nthe next Epoch ID is used. If used after roughly 16:00 of Epoch ID x it will display\nthe selected validators for Epoch ID x+1.\n\nThe command takes several flags, use `--help` and [see below](#flags) for a description\nof the flags.\n\n## validators\n\n```console\n$ wanchain-cli validators --validator-address 0x7212b9e259792879d85ca3227384f1005437e5f5\n+---------------------+--------------------------------------------+\n| Address             | 0x7212B9e259792879d85Ca3227384f1005437E5f5 |\n| PubSec256           | 0x04b6883...d1433f2c8f                     |\n| PubBn256            | 0x1a63987...8c91c0db0                      |\n| Amount              | 110149.00                                  |\n| VotingPower         | 165223500.00 (1.50x)                       |\n| LockEpochs          | 90                                         |\n| NextLockEpochs      | 90                                         |\n| From                | 0x6cb37EF52F184d631F425b18969D854F2E2E9077 |\n| StakingEpoch        | 18321                                      |\n| FeeRate             | 8.00%                                      |\n| # Delegators        | 634 (5409873.70)                           |\n| # Partners          | 5 (993559.00)                              |\n| ValidatorAmount     | 6513581.70 (of 26402532.82)                |\n| StakeWeight         | 24.67%                                     |\n| PowerWeight         | 24.54%                                     |\n| MaxFeeRate          | 10.00%                                     |\n| FeeRateChangedEpoch | 18263                                      |\n+---------------------+--------------------------------------------+\n```\n\nGiven a validator address it prints some information about that validator.\n\nThe command takes several flags, use `--help` and [see below](#flags) for a description\nof the flags.\n\n## current\n\n```console\n$ wanchain-cli current\n+--------------+---------+\n| Epoch ID     |   18332 |\n| Slot ID      |   12813 |\n| Block Height | 7325035 |\n+--------------+---------+\n```\n\nDisplays the current Epoch ID, Slot ID and block height.\n\n# Flags\n\nFlags allow you to tailor your request to what you need. You can change the RPC\nendpoint to connect to, configure the Epoch IDs for requests that displays data\nacross a range of Epochs, filter by a particular validator address and so on.\n\n| Name                | Description                                                                             | Default value              |\n|---------------------|-----------------------------------------------------------------------------------------|----------------------------|\n| --rpc               | Specify the RPC endpoint to connect to                                                  | https://mywanwallet.io/api |\n| --format            | Specify the output format. Possible values are: text, csv, html, markdown               | text                       |\n| --from-epoch-id     | Specify the beginning Epoch ID. Can either be absolute or relative to --to-epoch-id     | -3 (current Epoch ID - 3)  |\n| --to-epoch-id       | Specify the ending Epoch ID. Can either be absolute or relative to the current Epoch ID | 0 (current Epoch ID)       |\n| --validator-address | Specify the address of the validator to filter the output by                            | \"\"                         |\n| --delegator-address | Specify the address of the delegator to filter the output by                            | \"\"                         |\n| --filter-type       | Filter results by incentive type, either blank, validator or delegator                  | \"\"                         |\n| --block-height      | Specify the block height at which to take the data from                                 | 0 (current block height)   |\n\nFor example, if you want to see the activity of the GerWAN validator up to Epoch ID 18331\nbeginning from two Epochs before while using a different RPC endpoint, you can use the\nfollowing command.\n\n```console\n$ wanchain-cli --rpc https://mywanwallet.nl/api activity \\\n  --validator-address 0x83a1b91Ade06BCd2137D953DbDFAbE60f78Fd157 \\\n  --to-epoch-id 18331 --from-epoch-id -2\n+----------+------+--------------------------------------------+--------+--------+\n| EPOCH ID | ROLE | ADDRESS                                    | ACTIVE | BLOCKS |\n+----------+------+--------------------------------------------+--------+--------+\n|    18329 | EP   | 0x83a1b91ade06bcd2137d953dbdfabe60f78fd157 | true   |        |\n|    18329 | EP   | 0x83a1b91ade06bcd2137d953dbdfabe60f78fd157 | true   |        |\n|    18329 | SL   | 0x83a1b91ade06bcd2137d953dbdfabe60f78fd157 |        |    692 |\n|    18330 | EP   | 0x83a1b91ade06bcd2137d953dbdfabe60f78fd157 | true   |        |\n|    18330 | SL   | 0x83a1b91ade06bcd2137d953dbdfabe60f78fd157 |        |    698 |\n|    18331 | EP   | 0x83a1b91ade06bcd2137d953dbdfabe60f78fd157 | true   |        |\n|    18331 | EP   | 0x83a1b91ade06bcd2137d953dbdfabe60f78fd157 | true   |        |\n|    18331 | RP   | 0x83a1b91ade06bcd2137d953dbdfabe60f78fd157 | true   |        |\n|    18331 | SL   | 0x83a1b91ade06bcd2137d953dbdfabe60f78fd157 |        |    316 |\n+----------+------+--------------------------------------------+--------+--------+\n```\n\n# Releases\n\nYou can find find automatically compiled binaries for several operating systems\non [the releases page](https://github.com/linki/wanchain-cli/releases).\n\nYou can also use an automatically built Docker image:\n\n```console\n$ docker run -it quay.io/linki/wanchain-cli activity\n+----------+------+--------------------------------------------+--------+--------+\n| EPOCH ID | ROLE | ADDRESS                                    | ACTIVE | BLOCKS |\n+----------+------+--------------------------------------------+--------+--------+\n|    18143 | EP   | 0x0288c83219701766197373d1149f616c62b52a7d | true   |        |\n|    18143 | EP   | 0xfc2730f75330bb75cb28fcff12f0aea5b6e433e1 | true   |        |\n|      ... | ...  | ...                                        | ...    |        |\n+----------+------+--------------------------------------------+--------+--------+\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinki%2Fwanchain-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinki%2Fwanchain-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinki%2Fwanchain-cli/lists"}