Imports an existing wallet using its private key for the authenticated user.
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
privateKey | string | Yes | The private key of the wallet to import (Hex for EVM, Base58 for Solana). | 0xabc... or 4Xy... |
network | string | Yes | The network type (‘eth’, ‘base’, ‘sol’, ‘bsc’, ‘avax’). | sol |
User
server (Port 5000).GeneralWalletData
collection.privateKey
based on the network
.UserData.tier
).colortag
is initially set to undefined
, allowing the system to assign a default color.Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Success response indicating wallet was imported.
The response is of type object
.