grapheneapi.http module

class grapheneapi.http.Http(*args, **kwargs)

Bases: grapheneapi.rpc.Rpc

RPC Calls

get_request_session() → requests.sessions.Session

Store current HTTP session

proxies()
rpcexec(payload, retry=None)

Execute a call by sending the payload

Parameters:

payload (json) – Payload data

Raises:
  • ValueError – if the server does not respond in proper JSON format
  • HttpInvalidStatusCode – if the server returns a status code that is not 200