{"id":20621666,"url":"https://github.com/steppsr/getxchtx","last_synced_at":"2025-04-15T12:18:49.266Z","repository":{"id":41437480,"uuid":"479530293","full_name":"steppsr/getxchtx","owner":"steppsr","description":"XCH Transaction Exporter : getxchtx [Bash Edition]","archived":false,"fork":false,"pushed_at":"2022-07-01T20:14:45.000Z","size":61,"stargazers_count":9,"open_issues_count":5,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T12:18:36.413Z","etag":null,"topics":["bash","blockchain","chia","chia-blockchain","cryptocurrency","csv","export","transactions","xch"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steppsr.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":"2022-04-08T20:31:46.000Z","updated_at":"2025-04-13T11:35:59.000Z","dependencies_parsed_at":"2022-08-27T05:02:31.070Z","dependency_job_id":null,"html_url":"https://github.com/steppsr/getxchtx","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steppsr%2Fgetxchtx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steppsr%2Fgetxchtx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steppsr%2Fgetxchtx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steppsr%2Fgetxchtx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steppsr","download_url":"https://codeload.github.com/steppsr/getxchtx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249067787,"owners_count":21207396,"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","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":["bash","blockchain","chia","chia-blockchain","cryptocurrency","csv","export","transactions","xch"],"created_at":"2024-11-16T12:18:48.690Z","updated_at":"2025-04-15T12:18:49.243Z","avatar_url":"https://github.com/steppsr.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XCH Transaction Exporter : getxchtx [Bash Edition] \n\nGenerate a list of transactions for Chia (XCH) into a CSV file.\n\n---\n\n**getxchtx.sh** - You must run this script from the command line. The script pulls all your transactions into a json file by querying the wallet db, then loops through each transaction building a CSV file. Note: You must use the '**bash**' command and _not_ '**sh**'.\n\nCOMMAND OPTIONS\u003cbr\u003e\n```\nUSAGE: bash getxchtx.sh [OPTIONS]\n\nOPTIONS\n  -y YEAR         transactions only for given 4-digit year      Default: all transactions\n  -i INTERGER     Id of the wallet to use                       Default: 1\n  -s INTERGER     Index of starting transaction                 Default: 0\n  -e INTERGER     Index of ending transaction                   Default: 999999\n  -o INTERGER     0 for ascending, 1 for descending             Default: 0\n  -min AMOUNT     Only transactions greater than AMOUNT         Default: 0\n  -max AMOUNT     Only transactions less than AMOUNT            Default: 999999\n  -t INTERGER     -1 for all transaction types                  Default: -1\n                    0 for INCOMING_TX\n                    1 for OUTGOING_TX\n                    2 for COINBASE_REWARD\n                    3 for FEE_REWARD\n                    4 for INCOMING_TRADE\n                    5 for OUTGOING_TRADE\n  -b              basic output (fewer fields)\n  -v              verbose output\n  -h              help\n\n  Example:\n      bash getxchtx.sh -y 2021 -v\n\n  Example for saving to file:\n      bash getxchtx.sh -y 2021 \u003e tx_list.csv\n\n```\n\n---\n\n**Notes:**\n\n**1.** Since this is pulling historical transactions, the current price column is set to 0. You will need to populate that column manually. *Let me know if there is a free API that can pull historical pricing for XCH.*\n\n---\n\n**Prerequisites:**\n\n***curl*** must be installed. Run the following command to see if you have it installed.\n\n```\ncurl --version\n```\n***jq*** must be installed. Run the following command to see if you have it installed.\n\n```\njq --version\n```\n\nDisclaimer: For educational purposes only.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteppsr%2Fgetxchtx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteppsr%2Fgetxchtx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteppsr%2Fgetxchtx/lists"}