{"id":21531972,"url":"https://github.com/chainbound/fiber-py","last_synced_at":"2026-02-25T20:32:11.313Z","repository":{"id":109767284,"uuid":"539429495","full_name":"chainbound/fiber-py","owner":"chainbound","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-06T18:18:08.000Z","size":307,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-02T12:44:12.109Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chainbound.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-09-21T10:28:30.000Z","updated_at":"2025-05-06T18:18:12.000Z","dependencies_parsed_at":"2023-10-13T14:19:16.433Z","dependency_job_id":"d1b63e5d-3c92-48dc-8ce8-565ec6a8f8e8","html_url":"https://github.com/chainbound/fiber-py","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/chainbound/fiber-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainbound%2Ffiber-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainbound%2Ffiber-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainbound%2Ffiber-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainbound%2Ffiber-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainbound","download_url":"https://codeload.github.com/chainbound/fiber-py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainbound%2Ffiber-py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29838071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T19:08:47.527Z","status":"ssl_error","status_checked_at":"2026-02-25T18:59:04.705Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2024-11-24T02:18:23.008Z","updated_at":"2026-02-25T20:32:11.294Z","avatar_url":"https://github.com/chainbound.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `fiber-py`\n\n## Installation\n\nWith pip:\n\n```\npip install git+https://github.com/chainbound/fiber-py\n```\n\nWith Poetry:\n\n```\npoetry add git+https://github.com/chainbound/fiber-py\n```\n\n## Usage\n\n### Connecting\n\n```python\nfrom fiber.client import Client\n\nclient = Client('FIBER_ENDPOINT', 'YOUR_API_KEY')\ntry:\n  client.connect()\nexcept Exception as e:\n  print('Error connecting', e)\n```\n\n### Subscribing to transactions\n\nThe transaction stream is supported but without any filtering for now.\nThis stream yields [`fiber.types.Transaction`](/fiber/types.py#L9) objects.\nAll the bytes fields are encoded as hexadecimal strings.\n\n```python\ntry:\n  sub = client.subscribe_new_txs()\n\n  # Iterate over transaction stream\n  for tx in sub:\n    do_something(tx)\nexcept Exception as e:\n  print(\"error subscribing\", e)\n```\n\n\u003e **Note**\n\u003e You can also get the RLP-encoded signed transaction with the methods `tx.to_rlp_bytes()` and `tx.to_rlp_hex()`\n\u003e to get the raw bytes or the hex string respectively.\n\n### Subscribing to blocks\n\n#### Execution Payload Headers\n\nThis stream yields only the new block headers as [`fiber.types.ExecutionPayloadHeader`](/fiber/types.py#L75) objects.\nAll the bytes fields are encoded as hexadecimal strings.\n\n```python\ntry:\n  sub = client.subscribe_new_execution_payload_headers()\n\n  for header in sub:\n    do_something(header)\nexcept Exception as e:\n  print(\"error subscribing\", e)\n```\n\n#### Execution Payloads\n\nThis stream yields the new blocks as full [`fiber.types.ExecutionPayload`](/fiber/types.py#L94) objects.\nAll the bytes fields are encoded as hexadecimal strings.\n\n```python\ntry:\n  sub = client.subscribe_new_execution_payloads()\n\n  for block in sub:\n    do_something(block)\nexcept Exception as e:\n  print(\"error subscribing\", e)\n```\n\n#### Beacon Blocks\n\nThis stream yields the blocks as seen by the Ethereum consensus layer, in the form of [`fiber.types.BeaconBlock`](/fiber/types.py#L211) objects. All the bytes fields are encoded as hexadecimal strings.\n\n\u003e **Note**\n\u003e Beacon blocks **do not** contain the execution payloads. To also get the execution payloads, please subscribe to the execution payload stream `subscribe_new_execution_payloads()` separately.\n\n```python\ntry:\n  sub = client.subscribe_new_beacon_blocks()\n\n  for block in sub:\n    do_something(block)\nexcept Exception as e:\n  print(\"error subscribing\", e)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainbound%2Ffiber-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainbound%2Ffiber-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainbound%2Ffiber-py/lists"}