Submitting Batches to the ValidatorΒΆ
The prescribed way to submit Batches to the validator is using the REST API. This is an independent process that runs alongside a validator, allowing clients to communicate using HTTP/JSON standards. Simply send a POST request to the /batches endpoint, with the Content-Type header set to “application/octet-stream”, and the body of the request a serialized BatchList.
There are a many ways to make an HTTP request, and hopefully the process is fairly straightforward from here, but this is what it might look if you sent the request from within the same same process that prepared the BatchList: