pub async fn serve(state: ApiState, addr: &str) -> Result<()>
Bind addr (e.g. 127.0.0.1:8788) and serve the full API until the process is stopped. The binary wires this from aonyx serve api.
addr
127.0.0.1:8788
aonyx serve api