Skip to content

Implement verifyAccount#66

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

Implement verifyAccount#66
innovativedesign-lab wants to merge 6 commits intoamina69:developfrom
innovativedesign-lab:account-management-verify

Conversation

@innovativedesign-lab
Copy link
Copy Markdown

Close: #56

Implemented verifyAccount() and wired it into the SDK export surface.

The new logic in [src/accounts/index.ts] validates the publicKey, calls Horizon’s /accounts/:id endpoint, maps a found account into AccountInfo, returns exists: false on 404, and throws HorizonSubmitError for fetch/network and other non-OK responses. I also exported it from [src/index.ts].

Coverage for the requested cases is in [tests/unit/accounts/index.test.ts] existing account, non-existent account, invalid key, plus a network-error case. I installed dependencies, which updated package-lock.json.

Verification passed:

npm test -- --runInBand tests/unit/accounts/index.test.ts
npm run type-check
npm run lint -- src/accounts/index.ts tests/unit/accounts/index.test.ts src/index.ts

@innovativedesign-lab
Copy link
Copy Markdown
Author

Done, Close: #66

@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 innovativedesign-lab changed the base branch from main to develop March 26, 2026 12:19
@innovativedesign-lab
Copy link
Copy Markdown
Author

Done, Close: #66

@amina69
Copy link
Copy Markdown
Owner

amina69 commented Mar 26, 2026

@innovativedesign-lab check failed

@amina69
Copy link
Copy Markdown
Owner

amina69 commented Mar 29, 2026

@innovativedesign-lab little conflict

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 verifyAccount()

3 participants