Skip to main content
POST
/
v1
/
backup
Back up the client's wallet
curl --request POST \
  --url https://mpc-client.portalhq.io/v1/backup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "generateResponse": "{\"SECP256K1\":{\"share\":\"share\",\"id\":\"shareId\"},\"ED25519\":{\"share\":\"share\",\"id\":\"shareId\"}}"
}
'
{
  "SECP256K1": {
    "share": "eyJjbGl...",
    "id": "clu32l6c8008wuvz52jokyo3r"
  },
  "ED25519": {
    "share": "eyJjbGl...",
    "id": "clu32l9310087evz5u5v9k1ao"
  }
}

Authorizations

Authorization
string
header
required

Client API Key or Client Session Token

Body

application/json

Request body for backing up a wallet.

generateResponse
string
required

JSON-stringified response body from the generate endpoint.

Response

Backup created successfully

MPC shares for both supported curves.

SECP256K1
object
required

An MPC share for a single curve.

ED25519
object
required

An MPC share for a single curve.