{"id":28912508,"url":"https://github.com/oceanprotocol/sapphire.py","last_synced_at":"2026-03-09T08:31:32.744Z","repository":{"id":184073666,"uuid":"671242659","full_name":"oceanprotocol/sapphire.py","owner":"oceanprotocol","description":"Python wrapper for sending transactions in Oasis Sapphire network","archived":false,"fork":false,"pushed_at":"2024-09-03T21:53:34.000Z","size":18261,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T13:56:07.348Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oceanprotocol.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":"2023-07-26T21:54:29.000Z","updated_at":"2024-07-15T12:47:09.000Z","dependencies_parsed_at":"2024-01-09T11:46:16.559Z","dependency_job_id":"9868af34-8a80-424f-b21b-e2bb74c62b17","html_url":"https://github.com/oceanprotocol/sapphire.py","commit_stats":null,"previous_names":["oceanprotocol/sapphire-tx-wrapper","oceanprotocol/sapphirepy","oceanprotocol/pdr-sapphire-wrapper"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/oceanprotocol/sapphire.py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oceanprotocol%2Fsapphire.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oceanprotocol%2Fsapphire.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oceanprotocol%2Fsapphire.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oceanprotocol%2Fsapphire.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oceanprotocol","download_url":"https://codeload.github.com/oceanprotocol/sapphire.py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oceanprotocol%2Fsapphire.py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30287816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"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":"2025-06-21T20:11:41.977Z","updated_at":"2026-03-09T08:31:32.715Z","avatar_url":"https://github.com/oceanprotocol.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sapphirepy\n\nPython wrapper for sending encrypted transactions on Oasis Sapphire network\n\n## Installation\n\nTo install the package, you can either use PyPI or install from source:\n\n### PyPI\n\nTo install from PyPI, you can simply run the following command:\n\n```shell\npip install sapphirepy\n```\n\n### From Source\n\nAlternatively, to install from the source, clone the repository and navigate into the directory:\n\n```shell\ngit clone https://github.com/oceanprotocol/sapphirepy.git\ncd sapphirepy\n```\n\nThen, you can install it using pip:\n\n```shell\npip install .\n```\n\n## Usage\n\nTo use the package, you need to import the `wrapper` module and call the `send_encrypted_sapphire_tx` function.\n\n```python\nfrom sapphirepy import wrapper\n\nresponse = wrapper.send_encrypted_sapphire_tx(\n    pk,        # Your private key as a string\n    sender,    # Sender's address as a string\n    recipient, # Recipient's address as a string\n    rpc_url,   # RPC URL for the network as a string\n    eth_amount,# Amount of GWEI to send as an integer\n    gas_limit, # Gas limit for the transaction as an integer\n    data,      # Transaction data as a string\n)\n```\n\n### Return Value\n\nThe function `send_encrypted_sapphire_tx` will return 0 if the transaction has been successfully sent, otherwise it will return an error code corresponding to the issue encountered.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foceanprotocol%2Fsapphire.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foceanprotocol%2Fsapphire.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foceanprotocol%2Fsapphire.py/lists"}