pyopenbook/pyserum/connection.py

7 lines
163 B
Python

from solana.rpc.api import Client
def conn(endpoint: str) -> Client:
"""RPC client connection to interact with the Serum Dex."""
return Client(endpoint)