Create Organizational Wallets
Once you have a Wallet Set, you can derive individual wallets for any of Planbok's supported blockchains. This guide covers the process for both Trustless and Standard MPC security models.
How Wallet Derivation Works
When you "create" a wallet in Planbok, you are mathematically deriving a unique address from your organization's master key shards.
- HD Path Construction:
m/44'/coin_type'/wallet_set_index'/0/address_index - Wallet Sets: Each set provides a unique
wallet_set_index. - Address Index: Every time you call the create endpoint for a specific Wallet Set, the system increments the
address_indexfor those new wallets.
[!NOTE] You can derive wallets for multiple blockchains (e.g., Ethereum, Solana, and Bitcoin) simultaneously for a single user/reference ID. They will all share the same
address_indexacross their respective coin types.
Quickstart: Creating Wallets
1. Standard MPC Flow
In Standard MPC, the nodes use your registered organization secret to perform the derivation. You only need your API key.
Endpoint: POST /v2/wallets
Request Body:
Code
2. Trustless MPC Flow
In Trustless MPC, you must provide your encryptedOrganizationSecret with the sign context to authorize the derivation math.
Step 1: Generate the Encrypted Secret
Code
Step 2: Create the Wallet
Endpoint: POST /v2/wallets
Request Body:
Code
Key Parameters Explained
| Parameter | Type | Description |
|---|---|---|
walletSetId | String | The UUID of the container (Wallet Set) for these wallets. |
blockchains | Array | List of chain abbreviations (e.g., ETH, SOL, NEAR, BTC, BASE). |
count | Number | Number of unique users/refIds to create wallets for (default 1). |
metadata | Array | An array of {name, refId} objects. Must match the count. |
idempotencyKey | String | A unique UUID to prevent duplicate creation on retry. |
Next Steps
Now that your wallets are created, you can:
- Check Balances: Retrieve real-time asset data.
- Perform Transfers: Move assets using MPC signing.
- Export Keys: If using Trustless MPC, only the organization owner can export the private key for full portability.