Documentation Index
Fetch the complete documentation index at: https://docs.portalhq.io/llms.txt
Use this file to discover all available pages before exploring further.
Function Signature
Description
Exports the full private keys from the MPC system. This requires authentication using one of your backup methods.WARNING: This operation exposes your full private keys. Once ejected, the security guarantees of MPC are lost. Use with extreme caution.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
method | PortalBackupMethod | Yes | The backup method to use for authentication |
password | String | No | Required when using PortalBackupMethod.password |
cipherText | String | No | For self-managed backups |
Returns
Map<String, String> - A map of namespace to private key:
| Key | Description |
|---|---|
eip155 | The Ethereum/EVM private key |
solana | The Solana private key |
Example
With Other Methods
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
EJECT_FAILED | The eject operation failed |
INVALID_PASSWORD | The provided password is incorrect |
AUTHENTICATION_FAILED | Failed to authenticate with backup method |