This commit is contained in:
prorr2
2023-08-12 14:38:03 +02:00
parent abbab28dfd
commit 2ea782684d
2 changed files with 1 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import StellarSdk from 'stellar-sdk'
import Swal from "sweetalert2";
import '@sweetalert2/theme-dark/dark.css'
const server = new StellarSdk.Server('https://horizon-testnet.stellar.org'); // const server = new StellarSdk.Server('https://horizon.stellar.org');
const fee = await server.fetchBaseFee();
const fee = server.fetchBaseFee();
export default function getAccount(privatekey){
const keypair = StellarSdk.Keypair.fromSecret(privatekey)
return server.loadAccount(keypair.publicKey())