Accounts
Create Account
Create a new sub-account with a signer
POST
Create Account
Create Account
Creates a new sub-account under your Prime Account. Each sub-account gets its own on-chain wallet (Quark Wallet) on all supported networks.Request
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
signer_type | string | Yes | Type of signer. Currently supported: "eoa" |
signer_address | string | Yes (for EOA) | Ethereum address of the EOA signer (0x-prefixed, 40 hex chars) |
Examples
Response (201 Created)
Response fields
| Field | Type | Description |
|---|---|---|
account_id | string | Unique identifier for the sub-account (acc_ prefix) |
signer_type | string | Signer type used for this account |
signer_address | string | Ethereum address of the signer |
legend_wallet_address | string | On-chain wallet address (deterministic from the signer) |
created_at | string | ISO 8601 timestamp |
Errors
| Status | Code | Description |
|---|---|---|
| 400 | invalid_params | Invalid signer_type or malformed signer_address |
| 409 | account_already_exists | A sub-account with this signer already exists |
Error example
Notes
- The
legend_wallet_addressis deterministic — it’s computed from the signer address using CREATE2. This means you can predict the wallet address before creating the account. - Quark Wallets are created on all supported networks simultaneously.
- The signer’s private key never touches Legend’s servers. You or your end-user retain full custody.
Create Account