Skip to main content
POST
/
v1
/
wallets
/
import
/
begin
curl --request POST \
  --url https://api.moonkey.fun/v1/wallets/import/begin \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "public_address": "5dbSMv2dspnDrbPJvczMDYwKRUMmhmnjM4cNGJp6C9tc",
  "wallet_type": "solana",
  "encryption_type": "HPKE",
  "entropy_type": "hd",
  "account_index": 0
}
'
{
  "encryption_type": "HPKE",
  "encryption_public_key": "+9lqNCH7Dh6ODSYWa/87oTwOLiT9lwYFV8mZr6d9siw="
}

Authorizations

Authorization
string
header
required

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

application/json
public_address
string
required

Required Wallet address being imported.

Minimum string length: 1
wallet_type
enum<string>
required

Required Blockchain type.

Available options:
solana,
ethereum
encryption_type
enum<string>
required

Required Must be HPKE.

Available options:
HPKE
entropy_type
enum<string>
required

Required One of: hd (HD-derived entropy) or private_key (raw private key).

Available options:
hd,
private_key
account_index
integer

Required only when entropy_type = "hd" Account derivation index. Must be >= 0.

Required range: x >= 0

Response

200 - application/json

Begin Wallet Import response

encryption_type
enum<string>
required

The encryption type used. Always HPKE.

Available options:
HPKE
encryption_public_key
string
required

Base64-encoded HPKE public key used for encrypting entropy.