Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

irys_sdk

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

irys_sdk

Official python SDK for Irys bundlers

  • 0.1.2
  • PyPI
  • Socket score

Maintainers
1

Irys Network Python SDK

This is a simple package which enables you to interact with the Irys Network through bundlers and gateways.

Usage

Build the client

from irys_sdk.Builder import Builder

client = Builder("ethereum").wallet("...").build()
# wallet is the only required argument, but there are others i.e rpc_url("...") to set a custom RPC URL

Funding the node

Nodes work on a deposit based system, to see how much you'd need to upload some data, use client.get_price(<size_in_bytes>)

balance = client.balance() # 100
tx_id = client.fund(10000) # in wei/atomic units
balance = client.balance() # 10100

Withdrawing funds

Not currently supported in this SDK - use the JS CLI/SDK to withdraw funds

Uploading data

res = client.upload(b"hello, world!", tags=[("tag_name", "tag_value")])
print(res) # { 'id': "...", ...}

Retrieving data

Make a GET request in the client of your choice to https://gateway.irys.xyz/<transaction_id>

to see transaction metadata (tags, signature, owner), GET: https://gateway.irys.xyz/tx/<transaction_id>

Contributing

This package is developed with poetry

install poetry: pipx install poetry
active the venv: poetry shell or use poetry run <command>
install dependencies: poetry install

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc