Issue with friendbot
See original GitHub issueTrying to create testnet accounts with the server.friendbot method but I’m getting a type error with the .then .catch promise. Unsure as to why.
export function createAccount() {
const pair = Stellar.Keypair.random();
const publicKey = pair.publicKey();
return new Promise((resolve, reject) => {
Server
.friendbot(publicKey)
.then(() => resolve(pair.secret()))
.catch((err) => reject(err));
});
}
It would seem that something is up with the way you’re processing promises for the friendbot method.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
The rise of the friendbot by Darlene Ramilla - Prezi
The Rise of the Friendbot. -is a type of S&T issue that takes grieving into a whole new form in the 21st century....
Read more >friendbot ethical dilemma 01... - Course Hero
Is a dynamic problem between two potentially good objectives, either not definitely worthy or best. The diverse nature comes out of a struggle...
Read more >FriendBot is not working · Issue #1591 · stellar/go - GitHub
I test with several accounts but all failed and showed the following error. { "type": "https://stellar.org/horizon-errors/server_error", ...
Read more >FriendBot | Sonic News Network - Fandom
FriendBot, formerly known as FiendBot, is a character that appears in the Sonic Boom series. He is a robot created by Dr. Eggman...
Read more >FRIENDBOT | PDF - Scribd
FRIENDBOT - View presentation slides online. ... Friendbot iss one of the science, technology and ... the moral and ethical issue helps us...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Tada! Should have known that. Thanks!
I am however often getting this error…
But that’s a different issue so I’ll open a separate ticket unless you’ve got some insights as to why that’s happening for me.
What about:
friendbot
returnsFriendbotBuilder
object that extendsCallBuilder
.