{"id":19694548,"url":"https://github.com/vaneves/bitcoin-php","last_synced_at":"2025-06-30T23:38:44.676Z","repository":{"id":143730711,"uuid":"123216307","full_name":"vaneves/bitcoin-php","owner":"vaneves","description":"🔗 Library for lists of transactions Bitcoin","archived":false,"fork":false,"pushed_at":"2018-03-02T14:30:23.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T12:04:07.497Z","etag":null,"topics":["bitcoin-api","php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/vaneves.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":"2018-02-28T02:18:34.000Z","updated_at":"2018-06-04T13:52:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9d4cdc4-8b1a-42b5-b14f-bdbda2427e06","html_url":"https://github.com/vaneves/bitcoin-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fbitcoin-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fbitcoin-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fbitcoin-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fbitcoin-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaneves","download_url":"https://codeload.github.com/vaneves/bitcoin-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241005412,"owners_count":19892785,"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":["bitcoin-api","php-library"],"created_at":"2024-11-11T19:23:29.985Z","updated_at":"2025-02-27T10:47:59.876Z","avatar_url":"https://github.com/vaneves.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔗 Query to Bitcoin via PHP\n\n## Installing\n\nVia Composer\n\n```bash\ncomposer require vaneves/bitcoin-php\n```\n\n## Usage\n\n### Create Address\n\nCreates a new address.\n\n```php\nuse Vaneves\\Bitcoin\\Network;\nuse Vaneves\\Bitcoin\\Bitcoin;\nuse Vaneves\\Bitcoin\\BitcoinException;\n\ntry {\n    $network = new Network('http://username:password@127.0.0.1:18332');\n    $bitcoin = new Bitcoin($network);\n    $address = $bitcoin-\u003eaccount('vaneves')-\u003enewAddress();\n\n    echo $address; \n\n} catch (BitcoinException $e) {\n    echo $e-\u003egetMessage();\n} catch (\\Exception $e) {\n    echo $e-\u003egetMessage();\n}\n```\n\n### List Transactions\n\nList all transactions received and sent.\n\n```php\nuse Vaneves\\Bitcoin\\Network;\nuse Vaneves\\Bitcoin\\Bitcoin;\nuse Vaneves\\Bitcoin\\BitcoinException;\n\ntry {\n    $network = new Network('http://username:password@127.0.0.1:18332');\n    $bitcoin = new Bitcoin($network);\n\n    $offset = 0;\n    $limit = 100;\n    $transactions = $bitcoin-\u003etransaction()-\u003epaginate($offset, $limit);\n    print_r($transactions);\n} catch (BitcoinException $e) {\n    echo $e-\u003egetMessage();\n} catch (\\Exception $e) {\n    echo $e-\u003egetMessage();\n}\n```\n\n## License\n\nThe MIT License (MIT)\n\n## Donate\n\nBitcoin address: **1H6ssXbPbLeDVQNf9PqaarTEeG9sjurEgm**\n\n\u003cimg src=\"https://chart.googleapis.com/chart?cht=qr\u0026chs=230x230\u0026chl=1H6ssXbPbLeDVQNf9PqaarTEeG9sjurEgm\"\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaneves%2Fbitcoin-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaneves%2Fbitcoin-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaneves%2Fbitcoin-php/lists"}