Junaidb commited on
Commit
863d0bc
·
verified ·
1 Parent(s): 80ce08c

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -0
app.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI, HTTPException
2
+ from pydantic import BaseModel
3
+ import hashlib
4
+ from solders.keypair import Keypair
5
+ from solders.pubkey import Pubkey
6
+ from solana.rpc.api import Client
7
+ from solana.transaction import Transaction
8
+ from solders.system_program import TransferParams, transfer
9
+ import base58
10
+
11
+ from helpers.mongodbconnection import provideClient
12
+
13
+
14
+
15
+
16
+
17
+
18
+ app = FastAPI()
19
+ solana_client = Client("https://api.mainnet-beta.solana.com")
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+