BitSharesNodeRPC

This class allows to call API methods exposed by the witness node via websockets.

Defintion

class bitsharesapi.bitsharesnoderpc.BitSharesNodeRPC(*args, **kwargs)
__getattr__(name)

Map all methods to RPC calls and pass through the arguments

rpcexec(payload)

Execute a call by sending the payload. It makes use of the GrapheneRPC library. In here, we mostly deal with BitShares specific error handling

Parameters:

payload (json) – Payload data

Raises:
  • ValueError – if the server does not respond in proper JSON format
  • RPCError – if the server returns an error