{"id":20305719,"url":"https://github.com/bitpay/bitpay-go-cli","last_synced_at":"2025-10-26T12:03:44.633Z","repository":{"id":29207207,"uuid":"32738630","full_name":"bitpay/bitpay-go-cli","owner":"bitpay","description":"The command line client for test driving the bitpay-go library","archived":false,"fork":false,"pushed_at":"2020-04-01T17:05:23.000Z","size":8972,"stargazers_count":6,"open_issues_count":1,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T08:03:03.107Z","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/bitpay.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":"2015-03-23T14:53:51.000Z","updated_at":"2024-08-29T17:00:47.000Z","dependencies_parsed_at":"2022-08-17T20:05:24.905Z","dependency_job_id":null,"html_url":"https://github.com/bitpay/bitpay-go-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-go-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-go-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-go-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-go-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitpay","download_url":"https://codeload.github.com/bitpay/bitpay-go-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248424778,"owners_count":21101231,"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":[],"created_at":"2024-11-14T17:09:31.630Z","updated_at":"2025-10-26T12:03:39.596Z","avatar_url":"https://github.com/bitpay.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BitPay Command Line Tool for Go\n\nThis is an example library for integration of the bitpay-go library with a go project. It provides a command line tool that can authenticate with a bitpay server, create invoices, and retrieve invoices.\n\n## Installation and Configuration\n\nClone this repository and run `source helpers/envioro.sh`\n\n## Basic Usage\n\nThe gobitpay tool allows authenticating with BitPay, creating invoices, and retrieving invoices.\n  \n### Pairing with Bitpay.com\n\nBefore pairing with BitPay.com, you'll need to log in to your BitPay account and navigate to /api-tokens. Generate a new pairing code and use it in the next step.\n\nFirst you will want to create a client. Creating a client will save some variables in the ~/.bp/ folder. Only one client can be stored at one time. The stored values are a PEM file, the intended api endpoint, and the ssl security preference. To use the bitpay.com test server (test.bitpay.com) the command is:\n\n    $ gobitpay new test\n\nOnce you have created the client preferences, log in to the endpoint you specificied (in this case test.bitpay.com) and navigate to `dashboard/merchant/api-tokens`. Create a new api token and copy the pairing code displayed. You will use this in the next step.\n\n    $ gobitpay pair \u003cpairingcode\u003e \n\nThis will save a token in the ~/.bp/folder. \n\n### Creating and retrieving invoices\n\nIf you have completed the previous step, you can create and retrieve invoices. \n\n    $ gobitpay createinvoice \u003cprice\u003e \u003ccurrency\u003e\n    \nThis returns an invoice id, which can be used in the next step:\n\n    $ gobitpay getinvoice \u003cinvoiceid\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fbitpay-go-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitpay%2Fbitpay-go-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fbitpay-go-cli/lists"}