Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.
/ rai Public archive

🗿 rai is a pythonic client for interacting with Raiblocks nodes

License

Notifications You must be signed in to change notification settings

kennell/rai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Languages