tollgate

TIP-02 - TCP/IP

draft optional


Minimal setup for allowing payments on LAN networks.

POST /

The Server must take a http POST request containing a valid Payment event in the request body. If the operator deems the provided cashu token valid it must return a 200 OK status and provide the customer’s provided device identifier internet access for the metric it sells relative to the amount provided by the customer. If the payment is invalid, a http 402 Payment Required status MAY be returned.

GET /

A GET request on the root endpoint may return http status 200 OK where the response body contains the TollGate Details event.

TODO: move advertisement endpoint out of this TIP