Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ import hashlib
|
|
| 12 |
import os
|
| 13 |
#from helpers.mongodbconnection import provideClient
|
| 14 |
from fastapi.concurrency import run_in_threadpool
|
| 15 |
-
|
| 16 |
|
| 17 |
|
| 18 |
|
|
@@ -230,7 +230,7 @@ async def broadcast_transaction(payload: TransactionPayload):
|
|
| 230 |
"""
|
| 231 |
try:
|
| 232 |
|
| 233 |
-
raw_tx =
|
| 234 |
|
| 235 |
response = solana_client.send_raw_transaction(raw_tx,opts=TxOpts(skip_preflight=False))
|
| 236 |
|
|
|
|
| 12 |
import os
|
| 13 |
#from helpers.mongodbconnection import provideClient
|
| 14 |
from fastapi.concurrency import run_in_threadpool
|
| 15 |
+
import pybase64
|
| 16 |
|
| 17 |
|
| 18 |
|
|
|
|
| 230 |
"""
|
| 231 |
try:
|
| 232 |
|
| 233 |
+
raw_tx = pybase64.b64decode(payload.signed_hex)
|
| 234 |
|
| 235 |
response = solana_client.send_raw_transaction(raw_tx,opts=TxOpts(skip_preflight=False))
|
| 236 |
|