Server.SubmitTransaction for an unfunded new account fails
See original GitHub issueI am using the example Send Native Assets
My source account has 10,000 lumen (got that via the TestNetFriendBot
).
If I send 1000 xlm to an existing destination account all is fine.
However, if I send funds to a fresh unfunded account (created via KeyPair.Random()
) the Server.SubmitTransaction
response with no Hash
in the result and response.SubmitTransactionResponseExtras.ExtrasResultCodes.TransactionResultCode
is set to tx_failed
with op_no_destination
.
I confused since the FAQ says:
You can fund an account by sending 1 lumen to it…
So I realize that there should be a minimum reserve of 2.5 lumens for destination. but I’m sending 1000 to it.
Did I misunderstand the consensus? What Im I doing wrong? Please advice.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Add inner transaction error info when FeeBump fails #2934
Currently when a a FeeBump transactions fails because of issue in the inner transaction, the only information in the extras is that of ......
Read more >Creating a new account. - GalacticTalk - Stellar Forum
Please help me creating a new account in a private Stellar network. The existing documentation is surprisingly confusing to follow!
Read more >Unsuccesfully creating public aaccount using FriendBot ...
I run a validator node on the public network for which I need to create an account. Hence, I started by creating a...
Read more >Basic Examples - JS Stellar SDK
Create, sign, and submit a transaction using JS Stellar SDK. // Assumes that you have the following items: // 1. Secret key of...
Read more >A New Go SDK for the Stellar Network - Developers Blog
It allows you to retrieve ledger information, either as one-time calls or as a continuously updating stream. You can find account balances, ...
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
Hi there good morning, you can specify how much do you want to have as starting balance, i’m not sure if the create account operation have in mind the base fee and do this automatically, i think yes, just try in testnet i would say.
It’s more or less like another operation, you create it, sign it and send it.
El vie., 21 sept. 2018 7:14, bazooka70 notifications@github.com escribió:
Hi there just woke up, you need to do a CreateAccount Operation not a Payment Operation if it’s not created.
El vie., 21 sept. 2018 7:03, bazooka70 notifications@github.com escribió: