Update app.py
Browse files
app.py
CHANGED
|
@@ -232,7 +232,11 @@ async def broadcast_transaction(payload: TransactionPayload):
|
|
| 232 |
|
| 233 |
raw_tx = pybase64.b64decode(payload.signed_hex)
|
| 234 |
|
| 235 |
-
response = solana_client.send_raw_transaction(raw_tx,opts=TxOpts(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
|
| 237 |
if not response.value:
|
| 238 |
raise HTTPException(status_code=400, detail="Broadcast failed: No signature returned")
|
|
|
|
| 232 |
|
| 233 |
raw_tx = pybase64.b64decode(payload.signed_hex)
|
| 234 |
|
| 235 |
+
response = solana_client.send_raw_transaction(raw_tx,opts=TxOpts(
|
| 236 |
+
|
| 237 |
+
skip_preflight=False
|
| 238 |
+
preflight_commitment="processed"
|
| 239 |
+
))
|
| 240 |
|
| 241 |
if not response.value:
|
| 242 |
raise HTTPException(status_code=400, detail="Broadcast failed: No signature returned")
|