- AutoReceiver
- Plasma
- Ledger
- Transfer
- Wallet
- Utilities
- Users
Restore an existing wallet
POST
/api/wallet/restore
Wallet
Restoring a wallet will unload and overwrite the previously initialized wallet
Requires Admin authorization policy
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
password
string
required
>= 8 characters<= 255 characters
Example:
Secret99$
mnemonic
string
required
>= 1 characters
Example:
route become dream access impulse price inform obtain engage ski believe awful absent pig thing vibrant possible exotic flee pepper marble rural fire fancy
Example
{
"password": "Secret99$",
"mnemonic": "route become dream access impulse price inform obtain engage ski believe awful absent pig thing vibrant possible exotic flee pepper marble rural fire fancy"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://walletapi.hypercore.one/api/wallet/restore' \
--header 'Content-Type: application/json' \
--data-raw '{
"password": "Secret99$",
"mnemonic": "route become dream access impulse price inform obtain engage ski believe awful absent pig thing vibrant possible exotic flee pepper marble rural fire fancy"
}'
Responses
🟢200Success
text/plain
Body
string
optional
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠409Conflict
Modified at 2024-05-14 10:01:56