Build
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user