Import Wallet
Completes the wallet import process by submitting the HPKE-encrypted wallet entropy.
This endpoint receives the encrypted entropy (either HD seed or private key) that was encrypted using the public key obtained from the /v1/wallets/import/begin endpoint.
Security Model
- The wallet entropy is encrypted client-side using HPKE with the server’s public key.
- The ciphertext and encapsulated key are submitted to this endpoint.
- Raw entropy never touches the server in plaintext.
- If an existing wallet of the given wallet type has been created for that user, it will be returned.
Returns
A successful response returns a Wallet object with is_imported set to true.
Documentation Index
Fetch the complete documentation index at: https://docs.streambird.io/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Auth Platform API includes all the Auth related features. All Users, Phone Numbers, Emails, and OTPs are associated with an App as the container.
Endpoints only accept App's Secret API keys other than certain endpoints that are used client side or via SDK that accept the public_token.
Authentication using App Api Key
Header:
Authorization: Bearer {api_key}
Authenticated Request
curl \
-X GET https://api.moonkey.fun/v1/auth/users/user_24wFP9pDa9YiMJLun94iKykoZs2 \
-H "Authorization: Bearer sk_test_pRqweh3wvWmJAAVYv7Z0T5iPLzFM4ql0muoyQcjOxGeN3p1r"
Body
Response
Import Wallet response
Unique wallet ID.
App ID the wallet belongs to.
User ID the wallet belongs to.
Public address of the imported wallet.
Blockchain type of the wallet.
Whether the wallet is verified.
Whether this is the default wallet for the user.
Whether the wallet is read-only.
Whether the wallet was imported. Always true for imported wallets.
Whether the wallet is delegated.
Unix timestamp of last update.
Unix timestamp of creation.
Client type of the wallet, if applicable.
Wallet private key ID.
Account derivation index for HD-derived wallets. Returns the index used during wallet generation or import, null if the wallet was created from a private key.