Node-to-Client
The Node-to-Client (N2C) source connects to a local Cardano node over a unix socket, using the Ouroboros ChainSync mini-protocol in “full blocks” mode. Because it talks to the node directly over a socket, it’s the lowest-overhead option when you run the node yourself.
Configuration
[source]type = "N2C"socket_path = "<socket location>"type(required): the literal valueN2C.socket_path(required): the path to the node’s unix socket file.
Examples
Connecting to a local Cardano node over its unix socket:
[source]type = "N2C"socket_path = "/opt/cardano/cnode/sockets/node0.socket"