Skip to main content
POST
/
v1
/
createWallet
CreateWallet
curl --request POST \
  --url https://api.mpcvault.com/v1/createWallet \
  --header 'Content-Type: application/json' \
  --header 'x-mtoken: <api-key>' \
  --data '
{
  "vaultUuid": "<string>",
  "networkType": 0,
  "ref": "<string>",
  "name": "<string>"
}
'
{
  "details": {
    "vaultUuid": "<string>",
    "keyType": "KEY_TYPE_UNSPECIFIED",
    "keyPath": "<string>",
    "publicKey": "aSDinaTvuI8gbWludGxpZnk=",
    "networkType": 0,
    "address": "<string>",
    "ref": "<string>",
    "status": "STATUS_UNSPECIFIED",
    "name": "<string>"
  },
  "error": {
    "executeSigningRequestsErrorCode": "EXECUTE_SIGNING_REQUESTS_ERROR_CODE_UNSPECIFIED",
    "message": "<string>"
  }
}
Creates a new wallet in the specified vault. Use the returned address in the response (do not derive it yourself). Run your own sanity checks before using the wallet in production.

Authorizations

x-mtoken
string
header
required

Your API token. Required for all API requests.

Body

application/json
vaultUuid
string
required

The UUID of the vault that the wallet will be created in.You can find it in the settings page of your vault on the web.

networkType
enum<integer>
required

Network type. 0=Unknown, 1=EVM, 2=Bitcoin, 3=Tron, 4=Aptos, 5=Sui, 6=Solana, 7=TON

Available options:
0,
1,
2,
3,
4,
5,
6,
7
ref
string

The customer reference field for the wallet. It has to be unique if not empty.max length is 500 characters.

name
string

The name for the wallet. max length is 85 characters.

Response

200 - application/json

Success

details
details · object
error
Execute SRs Error Code · object