{"id":41921486,"url":"https://github.com/cryptogarageinc/generate-block-for-testing","last_synced_at":"2026-01-25T16:41:52.046Z","repository":{"id":45069298,"uuid":"424868021","full_name":"cryptogarageinc/generate-block-for-testing","owner":"cryptogarageinc","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-19T23:42:55.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-20T06:37:25.163Z","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/cryptogarageinc.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-11-05T07:54:12.000Z","updated_at":"2026-01-19T23:42:57.000Z","dependencies_parsed_at":"2024-06-20T00:05:37.723Z","dependency_job_id":"98d4a856-8ac1-4619-878b-bf5141abf150","html_url":"https://github.com/cryptogarageinc/generate-block-for-testing","commit_stats":{"total_commits":16,"total_committers":3,"mean_commits":5.333333333333333,"dds":0.5,"last_synced_commit":"71dfe21ac8d908fda436ea90e3455b40c9f3ae98"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/cryptogarageinc/generate-block-for-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptogarageinc%2Fgenerate-block-for-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptogarageinc%2Fgenerate-block-for-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptogarageinc%2Fgenerate-block-for-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptogarageinc%2Fgenerate-block-for-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptogarageinc","download_url":"https://codeload.github.com/cryptogarageinc/generate-block-for-testing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptogarageinc%2Fgenerate-block-for-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28755558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T16:32:25.380Z","status":"ssl_error","status_checked_at":"2026-01-25T16:32:09.189Z","response_time":113,"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-25T16:41:51.489Z","updated_at":"2026-01-25T16:41:52.041Z","avatar_url":"https://github.com/cryptogarageinc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generate-block-for-testing\n\nThis application is used to perform block generation in a testing network for the bitcoin or the liquid network.\n\n## function\n\n- generatetoaddress\n  - use address\n  - (in the future) generate address by bip32\n  - (in the future) show the generated block's hash.\n- generate block for dynamic federation (liquid network)\n  - set fedpeg script\n  - set pak entry\n  - (in the future) block sign\n  - (in the future) maximum witness size\n  - (in the future) show the generated block's hash.\n\n## usage\n\n### command-line argument\n\n```sh\nUsage: generateblock.exe [--host HOST] [--fedpegscript FEDPEGSCRIPT] [--pak PAK] [--network NETWORK] [--address ADDRESS] [--rpcuserid RPCUSERID] [--rpcpassword RPCPASSWORD] [--logging]\n\nOptions:\n  --host HOST            connection host \u0026 port\n  --fedpegscript FEDPEGSCRIPT, -s FEDPEGSCRIPT\n                         fedpeg script on dynafed\n  --pak PAK, -p PAK      pak entries\n  --network NETWORK, -n NETWORK\n                         network. (bitcoin:mainnet/testnet/regtest, liquid:liquidv1/liquidregtest/elementsregtest)\n  --address ADDRESS, -a ADDRESS\n                         bitcoin address for generatetoaddress\n  --rpcuserid RPCUSERID\n                         connection rpc userID\n  --rpcpassword RPCPASSWORD\n                         connection rpc password\n  --logging, -l          log output\n  --help, -h             display this help and exit\n```\n\n### environment variable\n\n- GENERATE_BLOCK_CONNECTION_HOST: host \u0026 port.\n- GENERATE_BLOCK_CONNECTION_NETWORK: network type.\n  - bitcoin: mainnet, testnet, regtest\n  - liquid network: liquidv1, liquidregtest, (elementsregtest)\n- CONNECTION_PRC_USERID: connection rpc userID\n- CONNECTION_PRC_PASSWORD: connection rpc password\n- (for generatetoaddress)\n  - GENERATE_BLOCK_GENERATETOADDRESS: bitcoin address\n- (liquid network parameter)\n  - DYNAFED_FEDPEG_SCRIPT: fedpeg script.\n  - DYNAFED_PAK: pak entry. To set multiple items, separate them with commas.\n\nIf both environment variable and command-line argument are set, the value set for command-line argument will take precedence.\n\n### example\n\nbitcoin:\n\n```sh\ngenerateblock -l --host localhost:18443 --rpcuserid bitcoinrpc --rpcpassword password -n regtest -a bcrt1qpaujknvwumkwplvpdlh6gtsv7hrl60a37fc9tx\n```\n\nliquid network:\n\n```sh\ngenerateblock -l --host localhost:18447 --rpcuserid elementsrpc --rpcpassword password -n elementsregtest -s 5121024241bff4d20f2e616bef2f6e5c25145c068d45a78da3ddba433b3101bbe9a37d51ae -p 02b6991705d4b343ba192c2d1b10e7b8785202f51679f26a1f2cdbe9c069f8dceb024fb0908ea9263bedb5327da23ff914ce1883f851337d71b3ca09b32701003d05 -p 030e07d4f657c0c169e04fac5d5a8096adb099874834be59ad1e681e22d952ccda0214156e4ae9168289b4d0c034da94025121d33ad8643663454885032d77640e3d\n```\n\n## build\n\n```go\ngo build ./cmd/generateblock/\n```\n\n```sh\nmake build\n```\n\n### format\n\n```sh\nmake format\n```\n\n## use library\n\n```go\nimport gb \"github.com/cryptogarageinc/generate-block-for-testing\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptogarageinc%2Fgenerate-block-for-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptogarageinc%2Fgenerate-block-for-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptogarageinc%2Fgenerate-block-for-testing/lists"}