{"id":20669642,"url":"https://github.com/fox-one/wallet-analyzer","last_synced_at":"2025-08-23T19:44:17.406Z","repository":{"id":97516974,"uuid":"485259371","full_name":"fox-one/wallet-analyzer","owner":"fox-one","description":"A Command-line tool that lists transaction snapshots of mixin application, allowing you to easily check and analyze accounts.","archived":false,"fork":false,"pushed_at":"2023-03-07T01:23:18.000Z","size":61,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-23T00:06:22.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fox-one.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-25T07:06:17.000Z","updated_at":"2022-05-01T16:33:46.000Z","dependencies_parsed_at":"2023-04-27T13:49:19.925Z","dependency_job_id":null,"html_url":"https://github.com/fox-one/wallet-analyzer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fox-one/wallet-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fwallet-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fwallet-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fwallet-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fwallet-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fox-one","download_url":"https://codeload.github.com/fox-one/wallet-analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fwallet-analyzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271767176,"owners_count":24817578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-16T20:15:16.345Z","updated_at":"2025-08-23T19:44:17.343Z","avatar_url":"https://github.com/fox-one.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wallet-analyzer\n\nA Command-line tool that lists transaction snapshots of mixin application, allowing you to easily check and analyze accounts.\n\n## Install\n\n### go version \u003c= 1.16\n\n```\ngo get github.com/fox-one/wallet-analyzer\n```\n\n### else\n\n```\ngo install github.com/fox-one/wallet-analyzer@latest\n```\n\n## Usage\n\n```\n$ wallet-analyzer -h\nUsage of wallet-analyzer:\n  -asset string\n        Asset id\n  -client string\n        Mixin client id\n  -end string\n        End time, RFC3339 format\n  -format string\n        Snapshot format (default \"id: {{ .SnapshotID }} -\u003e (asset: {{ .AssetID }}, amount: {{ .Amount }})\")\n  -opponent string\n        Opponent id\n  -output string\n        Output file path\n  -secret string\n        Mixin client secret\n  -start string\n        Start time, RFC3339 format\n  -token string\n        Access token\n\n```\n\n### Examples\n\n#### Invoke by client and secret\n\nIf you don't have an existing token, you can set client and secret, it will open your browser and start the OAuth flow, and once the authentication is completed then you can copy the code from the address bar.\n\n```\n$ wallet-analyzer -asset=b91e18ff-a9ae-3dc7-8679-e935d9a4b34b -client=$YOUR_CLIENT -secret=$YOUR_SECRET\nOAuth Code: 8024fbb034283008e0d7cb60c23c083aa0c6ceae88cd7fd4d4cbf24f602ecce5\n\ntoken: eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.eyJhaWQiOiIzYjUwNmI4OS00MTVkLTQ1NTAtYTZjMS05ZTdmODk1NDk5NmMiLCJleHAiOjE2ODI5NTQyOTksImlhdCI6MTY1MTQxODI5OSwiaXNzIjoiYTQ4YjFlNfEtOWI1ZS00NzBkLWJjNzAtOTc0ZDE3ZWExNjxjIiwic3NwFjxiUFJPRklMRTpSRUFEIFNOQVBTSE9UUzpSRUFEIn0.HrLev8DpPkJfMSpsXvDhEDsl51UVnmYnNAlMSbblXvO8He8GiFzLawLEqL8O6Kh9oWuEIfcs-SUF9Hb_eLmcP_g4ULpLmiMRBkpM9i7d_7hbAgkKHxJHAGU7RW6hebE0BHXoJYm2nCwnZGu49Xn9-3ayAsuf0gL9Ben7jz1j72o\n\nid: d1f38bfc-f60e-4a6c-a588-0e2f8ad4297c -\u003e (asset: b91e18ff-a9ae-3dc7-8679-e935d9a4b34b, amount: 9)\n\nids: ('d1f38bfc-f60e-4a6c-a588-0e2f8ad4297c')\n\nasset: b91e18ff-a9ae-3dc7-8679-e935d9a4b34b -\u003e (count: 1, total: 9)\n\n```\n\n#### Invoke by token\n\nAs you can see, if you call through the client and secret, the output will print the generated token, save it, and then you can use the token call to avoid repeated authentication.\n\n```\n$ wallet-analyzer -asset=b91e18ff-a9ae-3dc7-8679-e935d9a4b34b -token=$YOUR_TOKEN\nid: d1f38bfc-f60e-4a6c-a588-0e2f8ad4297c -\u003e (asset: b91e18ff-a9ae-3dc7-8679-e935d9a4b34b, amount: 9)\n\nids: ('d1f38bfc-f60e-4a6c-a588-0e2f8ad4297c')\n\nasset: b91e18ff-a9ae-3dc7-8679-e935d9a4b34b -\u003e (count: 1, total: 9)\n\n```\n\n#### Apply filters\n\nYou can set the start time, end time, asset id and opponent id to filter the snapshot results.\n\n```\n$ wallet-analyzer -asset=b91e18ff-a9ae-3dc7-8679-e935d9a4b34b -token=$YOUR_TOKEN\n\n$ wallet-analyzer -asset=b91e18ff-a9ae-3dc7-8679-e935d9a4b34b -opponent=d1f38bfc-f60e-4a6c-a588-0e2f8ad4297c -token=$YOUR_TOKEN\n\n$ wallet-analyzer -asset=b91e18ff-a9ae-3dc7-8679-e935d9a4b34b -opponent=d1f38bfc-f60e-4a6c-a588-0e2f8ad4297c -token=$YOUR_TOKEN -start=2022-03-23T03:27:27Z -end=2022-05-01T03:27:27Z\n```\n\n#### Custom output snapshot format\n\nBy default, only the snapshoot id, asset id and amount are output, you can change the behavior by passing the format parameter, it's golang [template syntax](https://pkg.go.dev/text/template), the available data you can find in [Snapshoot Record](https://github.com/fox-one/mixin-sdk-go/blob/master/snapshot.go).\n\n```\n$ wallet-analyzer -asset=b91e18ff-a9ae-3dc7-8679-e935d9a4b34b -token=$YOUR_TOKEN -format=\"id: {{ .SnapshotID }} -\u003e (asset: {{ .AssetID }}, amount: {{ .Amount }}, type: {{ .Type }}, created: {{ .CreatedAt }})\"\nid: d1f38bfc-f60e-4a6c-a588-0e2f8ad4297c -\u003e (asset: b91e18ff-a9ae-3dc7-8679-e935d9a4b34b, amount: 9, type: deposit, created: 2022-01-18 02:59:58.487811 +0000 UTC)\n\nids: ('d1f38bfc-f60e-4a6c-a588-0e2f8ad4297c')\n\nasset: b91e18ff-a9ae-3dc7-8679-e935d9a4b34b -\u003e (count: 1, total: 9)\n\n```\n\n#### Save output to file\n\nOf course, you can use pipelines to save the output, but it will save unnecessary info, such as token, you can avoid this by using output param.\n\n```\n$ wallet-analyzer -asset=b91e18ff-a9ae-3dc7-8679-e935d9a4b34b -client=$YOUR_CLIENT -secret=$YOUR_SECRET -output=./result.txt\nOAuth Code: 1b7581510ccd465b3ccd246dfd03369cecf265d43ae12d5b79dcf62080057ac7\n\ntoken: eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.eyJhaWQiOiIyNWY4OWIxYi0zMDhjLTQxZjYtOWJmMS0yNzViZDRmNzgwOTgiLCJleHAiOjE2ODI5NTgyNzUsImlhdCI6MTY1MTQyMjI3NSwiaXNzIjoiYTQ4YjFlNTEtOWI1ZS00NzBkLWJjNzAtOTc0ZDE3ZWExNjJjIiwxc2NwIjoiUFJPRklMRTpSRUFEIFNOQVBTSE9pzZLzaUFEzn1.BJS9WEe8iWQdoKTnDWXEa15P62Fjl0QZy6-NG_4OJjVZ96tVdMdNXZs9XQIHYpO2dzeIkXyVmVDUHXy7YsinRe6iEMa0puT58Htu57zk9Ybeazs71jrlhMlMm-5_3hkSVvLhkRb3hk-5Q79w2oEWuRESfxhcl-Cq06jdvgEKfLw\n\n$ cat result.txt\nid: d1f38bfc-f60e-4a6c-a588-0e2f8ad4297c -\u003e (asset: b91e18ff-a9ae-3dc7-8679-e935d9a4b34b, amount: 9)\n\nids: ('d1f38bfc-f60e-4a6c-a588-0e2f8ad4297c')\n\nasset: b91e18ff-a9ae-3dc7-8679-e935d9a4b34b -\u003e (count: 1, total: 9)\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Fwallet-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffox-one%2Fwallet-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Fwallet-analyzer/lists"}