question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server.SubmitTransaction for an unfunded new account fails

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Kirbyrawrcommented, Sep 21, 2018

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 @Kirbyrawr https://github.com/Kirbyrawr and good morning 😃 Thanks for you reply. Do I need to send funds in order to CreateAccount (and Sign?)? is it the same as SubmitTransaction?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/elucidsoft/dotnet-stellar-sdk/issues/111#issuecomment-423415680, or mute the thread https://github.com/notifications/unsubscribe-auth/ADG9crkV0DJd_PTromEoj-dWOvialB9wks5udHXGgaJpZM4Wzc9Z .

1reaction
Kirbyrawrcommented, Sep 21, 2018

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ó:

I am using the example Send Native Assets https://github.com/elucidsoft/dotnet-stellar-sdk/blob/master/docfx/examples/send_native_assets.md

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 https://www.stellar.org/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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/elucidsoft/dotnet-stellar-sdk/issues/111, or mute the thread https://github.com/notifications/unsubscribe-auth/ADG9ck3RKLsukAsnhGTwKzlonrYpU_Q1ks5udHMpgaJpZM4Wzc9Z .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found