Welcome to pypeerplays’s documentation!

PeerPlays is a blockchain-based autonomous company (i.e. a DAC) that offers gaming and tournaments on a blockchain.

It is based on Graphene (tm), a blockchain technology stack (i.e. software) that allows for fast transactions and ascalable blockchain solution. In case of PeerPlays, it comes with decentralized gaming engine and allows setting up and running tournaments of any kind.

About this Library

The purpose of pypeerplays is to simplify development of products and services that use the PeerPlays blockchain. It comes with

  • it’s own (bip32-encrypted) wallet
  • RPC interface for the Blockchain backend
  • JSON-based blockchain objects (accounts, blocks, events, etc)
  • a simple to use yet powerful API
  • transaction construction and signing
  • push notification API
  • and more



All methods that construct and sign a transaction can be given

the account= parameter to identify the user that is going to affected by this transaction, e.g.:

  • the source account in a transfer
  • the accout that buys/sells an asset in the exchange
  • the account whos collateral will be modified

Important, If no account is given, then the default_account according to the settings in config is used instead.

from peerplays import PeerPlays
peerplays = PeerPlays()
peerplays.transfer("<to>", "<amount>", "<asset>", ["<memo>"], account="<from>")
from peerplays.blockchain import Blockchain
blockchain = Blockchain()
for op in Blockchain.ops():
from peerplays.block import Block
from peerplays.account import Account
account = Account("init0")
for h in account.history():

Indices and tables