Create Server Wallet
Account
Create Server Wallet
Create a new MPC-secured server wallet for a user
POST
Create Server Wallet
Server Wallet Management
Create and manage server-side wallets secured with MPC (Multi-Party Computation) key management through Dynamic Labs. These wallets are used for all trading operations across supported exchanges.Create Wallet
Create a new server wallet for a user. The wallet is secured with a 2-of-2 MPC threshold scheme.Endpoint
POST /api/wallets
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
userId | string | Yes | Unique identifier for the user |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Operation status |
userId | string | User identifier (used for wallet lookup) |
address | string | Wallet address (0x…) - needed for deposits & transactions |
walletId | string | Wallet UUID - needed for API registration & signing |
publicKey | string | Public key for verification |
Example Request
Get Wallet
Retrieve wallet information by userId, walletId, or wallet address.Endpoint
GET /api/wallets/:walletIdOrAddress
Path Parameters
| Parameter | Type | Description |
|---|---|---|
walletIdOrAddress | string | Can be userId, walletId (UUID), or address (0x…) |
Example Requests
Response
Error Responses
400 Bad RequestSign Message
Sign an arbitrary message using the server wallet’s MPC-managed key shares.Endpoint
POST /api/wallets/:walletIdOrAddress/sign
Path Parameters
| Parameter | Type | Description |
|---|---|---|
walletIdOrAddress | string | Can be userId, walletId (UUID), or address (0x…) |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | Message to sign |
Response
Example Request
Error Responses
400 Bad RequestSecurity Features
- MPC Key Management: Wallets use 2-of-2 threshold signature scheme
- Encrypted Storage: Private key shares are encrypted at rest
- No Single Point of Failure: Key shares are distributed across multiple parties
- Secure Signing: All signing operations use MPC protocol
Use Cases
- Create wallets for new users joining the platform
- Retrieve wallet information for trading operations
- Sign messages for exchange API registration
- Sign transactions for deposits and withdrawals
Environment Configuration
Required environment variables:Authorizations
Body
application/json
Unique identifier for the user
Example:
"user_123"