bkolobara @chainhead @jed How can I transfer XLM from root to friendlybot account?
Funding accounts on a private network.
chainhead
Hi, did you ever manage to get the secret key of the root account from the logs?
I cannot seem to get it right, I set the log level to TRACE and still nothing..
Any help will really be appreciated
:-)
Yes, Did you run "stellar-core --newdb"?
- Edited
chainhead Did you manage to send lumens from root account to new account?
I am following the exact code as given in "https://www.stellar.org/developers/guides/get-started/transactions.html"
It is giving be bad sequence error!!
CreateAccountOperation op = new CreateAccountOperation.Builder(destination, "100").build();
Transaction transaction = new Transaction.Builder(sourceAccount).addOperation(op).addMemo(Memo.text("Test Transaction")).build();
transaction.sign(source);
SubmitTransactionResponse response = server.submitTransaction(transaction);
bks If you have docker installed this will give you a private test network with some pre-funded accounts: https://github.com/zulucrypto/docker-stellar-integration-test-network
There's an example here of funding friendbot from the root account: https://github.com/zulucrypto/docker-stellar-integration-test-network/blob/master/integrationnet/home/fixtures/load.sh#L20
- Edited
bks This value is hardcoded here: https://github.com/stellar/stellar-core/blob/master/src/ledger/LedgerManagerImpl.cpp#L72
You will need to recompile stellar-core to change it.
bkolobara I'm looking at https://github.com/stellar/stellar-core/blob/048971af22b417e4216eb0c740f19643b1377f5d/src/ledger/LedgerManagerImpl.cpp#L72
It seems the values hardcoded in LedgerManager::GENESIS_LEDGER_TOTAL_COINS is quite more than 100 billion.
Is there a calculation somewhere else which gives 100 billion or I am looking at the wrong place for the total initial number of coins in the stellar network?
How to create a friendbot account for private network?
Is the NODE_SEED value we set in the config file of stellar-core is what root account secret is ?
Maybe try with an older version of stellar core? Removing "signers" is a quite recent change, so your tutorial might not be compatible with it.