Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Basic RPC

The smallest useful Synapse example.

Run the node in one terminal:

uv run python examples/basic_rpc/node.py

Call it from another terminal:

uv run python examples/basic_rpc/client.py

What it shows:

  • A Node exposes an async endpoint named sum.
  • A Client calls that endpoint over Synapse RPC.
  • No swarm discovery is needed for direct host/port RPC.