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

kennell/rai

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
rai
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

๐Ÿ—ฟ 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