SteemNodeRPC¶
This class allows to call API methods exposed by the witness node via websockets.
Defintion¶
-
class
beemapi.steemnoderpc.
SteemNodeRPC
(*args, **kwargs)¶ This class allows to call API methods exposed by the witness node via websockets.
-
__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 Steem 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
-