Python
For successful transaction processing, please include a system transfer tip to one of our designated tip addresses
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
}
If you're sending with blockhash in your TX, please ensure to use commitment level finalized.
Last updated