Python

def make_request(base64_tx: str) -> Dict[str, Any]:
    url = "http://lon.block0.wtf/"
    headers = {"Content-Type": "application/json"}
    payload = {
        "base64_tx": base64_tx
    }
    
    try:
        response = requests.post(url, headers=headers, json=payload)
        return {
            "status_code": response.status_code,
            "text": response.text,
            "success": True
        }
    except Exception as e:
        return {
            "error": str(e),
            "success": False
        }

Last updated