Skip to content

Account management create#67

Open
innovativedesign-lab wants to merge 6 commits intoamina69:developfrom
innovativedesign-lab:account-management-create
Open

Account management create#67
innovativedesign-lab wants to merge 6 commits intoamina69:developfrom
innovativedesign-lab:account-management-create

Conversation

@innovativedesign-lab
Copy link
Copy Markdown

Close: #55

The main implementation is in [src/accounts/index.ts, where createAccount():

accepts { publicKey, startingBalance? } with default '2.5'
validates publicKey with isValidPublicKey()
throws ValidationError for invalid keys
loads the master account from Horizon
throws AccountNotFoundError if the master account is missing
builds a Stellar Operation.createAccount(...) transaction
signs it with masterSecretKey
submits through the injected HorizonClient
returns { accountId, transactionHash, startingBalance }
There are also unit tests in [tests/unit/accounts/createAccount.test.ts]
covering:

success
invalid key
missing master account
insufficient master balance

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 26, 2026

@innovativedesign-lab Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@innovativedesign-lab
Copy link
Copy Markdown
Author

Done, Close: #67

@amina69
Copy link
Copy Markdown
Owner

amina69 commented Mar 26, 2026

@innovativedesign-lab read the contributing.md

@innovativedesign-lab innovativedesign-lab changed the base branch from main to develop March 26, 2026 12:18
@innovativedesign-lab
Copy link
Copy Markdown
Author

@innovativedesign-lab read the contributing.md

Done - Pushed to Develop, Close: #67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SDK · Account management] Implement createAccount()

3 participants