Export

Export Private Keys API

Two‑step, nonce‑verified export.

1) POST /export/init

{ "user_nonce": "32-char-string" }

Success

{ "server_nonce": "32-char-string" }

Errors: 401 invalid/expired session; 400 invalid nonce length; 500 session update failed.


2) POST /export/final (export)

{
  "user_nonce": "32-char-string",
  "server_nonce": "32-char-string",
  "is_export": true
}

Success

{
  "user_id": "uuid",
  "wallets": [
    { "network": "string", "wallet_set": "string", "address": "string", "private_key": "string" }
  ]
}

Errors: 401 invalid/expired session; 400 state missing/expired, nonce mismatch, already exported; 500 export/update failed.


POST /export/final (retrieve already-exported)

{ "is_export": false }

Success: same as export response. Errors: 401 invalid/expired session; 400 user not exported; 500 failed.

Last updated