Show HN: Argentic – An L402 Lightning toll booth for AI scraping agents
Agent Code Examples # Agent requests access response = requests.get("https://argentic.network/?url=https://target-site.com") # Returns 402 with invoice data = response.json() invoice = data["invoice"] # lnbc... pay this payment_hash = data["payment_hash"] # poll with this # Pay the invoice with any Lightning wallet or node pay_response = requests.post( "http://your-lightning-node/pay", data={"invoice": invoice} ) # Payment settles in <40ms # Poll with payment hash to receive session token token_response = requests.get( "https://argentic.network/", headers={"X-Payment-Hash": payment_hash} ) token = token_response.json()["token"] # Save this — valid for 1 hour # Include token in every request result = requests.get( "https://argentic.network/?url=https://target-site.com", headers={"X-Lightning-Token": token} ) # Request is forwarded — response returned data = result.json()