+
Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

kennell/rai

Repository files navigation

🗿 rai

PyPI Code Climate Travis

rai is a high-level, pythonic client for interacting with Raiblocks nodes. It allows you to easily build applications that make use of the Raiblocks cryptocurrency.

⚠ rai is not yet suited for use in production systems. It only covers a limited set of node functionality and things may break in future versions.

Install

⚠⚠⚠ On 2022-09-30 ownership and full control of PyPI package rai was handed over to simonbiggs. Please install this code from source if required. ⚠⚠⚠

Note: rai requires a running Raiblocks node with RPC enabled. Read more about installing and configuring a node here.

Usage example

from rai import Wallet


wallet = Wallet(id='4A84E2353EA3F363094EC7844A33B395E2BFDFCE19506FAFC37C73E7653D430F')
print(wallet.total_balance)
# 2500000000
block = wallet.send(
    source='xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000',
    destination='xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000',
    amount='1000000'
)
print(block)
# 000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F

ToDo priority

  • Implement all RPC calls
  • Write Sphinx documentation
  • Add usage examples
  • Test coverage

About

🗿 rai is a pythonic client for interacting with Raiblocks nodes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载