{"id":20712908,"url":"https://github.com/thesis/chain-bitcoin-python","last_synced_at":"2025-04-23T07:55:36.725Z","repository":{"id":20107020,"uuid":"23376671","full_name":"thesis/chain-bitcoin-python","owner":"thesis","description":"Integration library for the https://chain.com API.","archived":false,"fork":false,"pushed_at":"2014-10-06T00:12:38.000Z","size":274,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-23T07:55:31.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/chain_bitcoin/","language":"Python","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/thesis.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-27T04:25:42.000Z","updated_at":"2017-06-27T14:19:29.000Z","dependencies_parsed_at":"2022-08-31T05:41:14.837Z","dependency_job_id":null,"html_url":"https://github.com/thesis/chain-bitcoin-python","commit_stats":null,"previous_names":["cardforcoin/chain-bitcoin-python"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Fchain-bitcoin-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Fchain-bitcoin-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Fchain-bitcoin-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Fchain-bitcoin-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesis","download_url":"https://codeload.github.com/thesis/chain-bitcoin-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250395201,"owners_count":21423376,"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-17T02:22:29.202Z","updated_at":"2025-04-23T07:55:36.702Z","avatar_url":"https://github.com/thesis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"chain-bitcoin-python\n====================\n\nIntegration library for the Chain.com API.\n\nhttps://pypi.python.org/pypi/chain_bitcoin/\n\n.. image:: https://circleci.com/gh/cardforcoin/chain-bitcoin-python.png?style=badge\n    :target: https://circleci.com/gh/cardforcoin/chain-bitcoin-python\n\n.. pypi - Everything below this line goes into the description for PyPI.\n\n\nSetup\n-----\n\nEither import ``chain_bitcoin``\n\n.. code:: python\n\n    import chain_bitcoin\n\n    address_info = chain_bitcoin.get_address(\n        some_address_hash, api_key_id=some_api_key_id)\n\nor configure a ``Chain`` object\n\n.. code:: python\n\n    from chain_bitcoin import Chain\n\n    chain = Chain(api_key_id=some_api_key_id)\n    address_info = chain.get_address(some_address_hash)\n\nFunction examples\n-----------------\n\n.. code:: python\n\n    from chain_bitcoin import Chain\n\n    chain = Chain(api_key_id='...', api_key_secret='...')\n\n    chain.get_address('17x23dNjXJLzGMev6R63uyRhMWP1VHawKc')\n\n    chain.get_addresses(['1K4nPxBMy6sv7jssTvDLJWk1ADHBZEoUVb',\n                         '1EX1E9n3bPA1zGKDV5iHY2MnM7n5tDfnfH'])\n\n    chain.get_address_transactions('17x23dNjXJLzGMev6R63uyRhMWP1VHawKc')\n\n    chain.get_addresses_transactions(['1K4nPxBMy6sv7jssTvDLJWk1ADHBZEoUVb',\n                                      '1EX1E9n3bPA1zGKDV5iHY2MnM7n5tDfnfH'])\n\n    chain.get_address_unspents('17x23dNjXJLzGMev6R63uyRhMWP1VHawKc')\n\n    chain.get_addresses_unspents(['1K4nPxBMy6sv7jssTvDLJWk1ADHBZEoUVb',\n                                  '1EX1E9n3bPA1zGKDV5iHY2MnM7n5tDfnfH'])\n\n    chain.get_address_op_returns('1Bj5UVzWQ84iBCUiy5eQ1NEfWfJ4a3yKG1')\n\n    chain.get_transaction(\n        '0f40015ddbb8a05e26bbacfb70b6074daa1990b813ba9bc70b7ac5b0b6ee2c45')\n\n    chain.get_transaction_op_return(\n        '4a7d62a4a5cc912605c46c6a6ef6c4af451255a453e6cbf2b1022766c331f803')\n\n    chain.get_block_by_hash(\n        '00000000000000009cc33fe219537756a68ee5433d593034b6dc200b34aa35fa')\n\n    chain.get_block_by_height(308920)\n\n    chain.get_latest_block()\n\n    chain.get_block_op_returns_by_hash(\n        '00000000000000009cc33fe219537756a68ee5433d593034b6dc200b34aa35fa')\n\n    chain.get_block_op_returns_by_height(308920)\n\n    chain.create_webhook(\n        webhook_id='test_webhook',\n        webhook_url='https://example.com/chain')\n\n    chain.list_webhooks()\n\n    chain.update_webhook(\n        webhook_id='test_webhook',\n        webhook_url='https://example.com/chain2')\n\n    chain.create_address_transaction_event(\n        webhook_id='test_webhook',\n        address='17x23dNjXJLzGMev6R63uyRhMWP1VHawKc',\n        confirmations=2)\n\n    chain.list_webhook_events('test_webhook')\n\n    chain.delete_address_transaction_event(\n        webhook_id='test_webhook',\n        address='17x23dNjXJLzGMev6R63uyRhMWP1VHawKc')\n\n    chain.delete_webhook('test_webhook')\n\nWebhook-parsing example\n-----------------------\n\n.. code:: python\n\n    from chain_bitcoin import WebhookEvent\n    import json\n\n    message = WebhookEvent.Message.from_dict(json.loads(request.body))\n\nChanges\n-------\n\n\n0.4__\n~~~~~\n__ https://github.com/cardforcoin/chain-bitcoin-python/issues?q=milestone:0.4\n\nTime attributes are now ``datetime``, not string. `(#2)\n\u003chttps://github.com/cardforcoin/chain-bitcoin-python/issues/2\u003e`_\n\n``enum34`` dependency is removed. `(#1)\n\u003chttps://github.com/cardforcoin/chain-bitcoin-python/issues/1\u003e`_\n\n0.3\n~~~\n\nInitial release\n\n\u003c 0.3\n~~~~~\n\nDefunct\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesis%2Fchain-bitcoin-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesis%2Fchain-bitcoin-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesis%2Fchain-bitcoin-python/lists"}