Skip to content

feat: POST /api/v1/init creates wallets for Mini App and web users - #98

Merged
cmnisal merged 2 commits into
mainfrom
xbuddhi/feat/p2p-init-main
Nov 20, 2026
Merged

cmnisal merged 2 commits into
mainfrom
xbuddhi/feat/p2p-init-main

Conversation

@xbuddhi

@xbuddhi xbuddhi commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Brings /api/v1/init to main. Already merged and testing in dev via #91 and #92.

It creates a wallet from the verified Telegram credential for users who never pressed Start. It's idempotent, has an optional referral_code, returns can_message, and allows at most 30 new wallets per minute. See docs/init-api.md.

The P2P auth refactor (p2pVerifyCaller) keeps #95's 413/400 body-error handling. internal/api/p2p.go is identical to dev.

Merge order: #86 → #95 → collect → this.

@xbuddhi
xbuddhi force-pushed the xbuddhi/feat/p2p-init-main branch from cb39796 to 9292bd1 Compare November 19, 2026 20:28
@xbuddhi
xbuddhi force-pushed the xbuddhi/feat/api-collect-main branch from b7601a7 to ae09c4f Compare November 19, 2026 20:56
@xbuddhi
xbuddhi force-pushed the xbuddhi/feat/p2p-init-main branch from 9292bd1 to e2eb65a Compare November 19, 2026 20:56
@cmnisal
cmnisal changed the base branch from xbuddhi/feat/api-collect-main to main November 19, 2026 20:57
… Start

POST /api/v1/init creates the wallet from the verified Telegram
credential, like /start, with the same P2P service signature.

(cherry picked from commit 4e60b07)
(cherry picked from commit 6e0a3e3)
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.

2 participants