Created
March 9, 2020 10:01
-
-
Save ernestognw/9646a782c057d446fd646135ddaae703 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import StellarSdk from "stellar-sdk"; | |
const server = new StellarSdk.Server("https://horizon-testnet.stellar.org"); | |
const loadAccount = async publicKey => { | |
// Cargamos la cuenta a través del sdk de Stellar | |
const account = await server.loadAccount(publicKey); | |
return account; | |
}; | |
export { loadAccount }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment