curl --request POST \
--url https://api.mpcvault.com/v1/updateWallet \
--header 'Content-Type: application/json' \
--header 'x-mtoken: <api-key>' \
--data '
{
"address": "<string>",
"name": "my wallet",
"status": "STATUS_ACTIVE"
}
'import requests
url = "https://api.mpcvault.com/v1/updateWallet"
payload = {
"address": "<string>",
"name": "my wallet",
"status": "STATUS_ACTIVE"
}
headers = {
"x-mtoken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-mtoken': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({address: '<string>', name: 'my wallet', status: 'STATUS_ACTIVE'})
};
fetch('https://api.mpcvault.com/v1/updateWallet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mpcvault.com/v1/updateWallet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '<string>',
'name' => 'my wallet',
'status' => 'STATUS_ACTIVE'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-mtoken: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mpcvault.com/v1/updateWallet"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"name\": \"my wallet\",\n \"status\": \"STATUS_ACTIVE\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-mtoken", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mpcvault.com/v1/updateWallet")
.header("x-mtoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"name\": \"my wallet\",\n \"status\": \"STATUS_ACTIVE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mpcvault.com/v1/updateWallet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-mtoken"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"name\": \"my wallet\",\n \"status\": \"STATUS_ACTIVE\"\n}"
response = http.request(request)
puts response.read_body{
"details": {
"vaultUuid": "<string>",
"keyType": "KEY_TYPE_ECC_ED25519",
"keyPath": "path/to/key",
"publicKey": "<string>",
"networkType": "NETWORK_TYPE_EVM",
"address": "<string>",
"ref": "customer-wallet-001",
"status": "STATUS_ACTIVE",
"name": "test wallet "
},
"error": {
"message": "<string>",
"serviceErrorCode": "SERVICE_ERROR_CODE_UNSPECIFIED",
"executeSigningRequestsErrorCode": "EXECUTE_SIGNING_REQUESTS_ERROR_CODE_UNSPECIFIED"
}
}UpdateWallet
Update a wallet’s name or status by its address.
curl --request POST \
--url https://api.mpcvault.com/v1/updateWallet \
--header 'Content-Type: application/json' \
--header 'x-mtoken: <api-key>' \
--data '
{
"address": "<string>",
"name": "my wallet",
"status": "STATUS_ACTIVE"
}
'import requests
url = "https://api.mpcvault.com/v1/updateWallet"
payload = {
"address": "<string>",
"name": "my wallet",
"status": "STATUS_ACTIVE"
}
headers = {
"x-mtoken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-mtoken': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({address: '<string>', name: 'my wallet', status: 'STATUS_ACTIVE'})
};
fetch('https://api.mpcvault.com/v1/updateWallet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mpcvault.com/v1/updateWallet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '<string>',
'name' => 'my wallet',
'status' => 'STATUS_ACTIVE'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-mtoken: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mpcvault.com/v1/updateWallet"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"name\": \"my wallet\",\n \"status\": \"STATUS_ACTIVE\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-mtoken", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mpcvault.com/v1/updateWallet")
.header("x-mtoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"name\": \"my wallet\",\n \"status\": \"STATUS_ACTIVE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mpcvault.com/v1/updateWallet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-mtoken"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"name\": \"my wallet\",\n \"status\": \"STATUS_ACTIVE\"\n}"
response = http.request(request)
puts response.read_body{
"details": {
"vaultUuid": "<string>",
"keyType": "KEY_TYPE_ECC_ED25519",
"keyPath": "path/to/key",
"publicKey": "<string>",
"networkType": "NETWORK_TYPE_EVM",
"address": "<string>",
"ref": "customer-wallet-001",
"status": "STATUS_ACTIVE",
"name": "test wallet "
},
"error": {
"message": "<string>",
"serviceErrorCode": "SERVICE_ERROR_CODE_UNSPECIFIED",
"executeSigningRequestsErrorCode": "EXECUTE_SIGNING_REQUESTS_ERROR_CODE_UNSPECIFIED"
}
}name or status by its address. Provide at least one of the two. An empty value means no change. status accepts only STATUS_ACTIVE or STATUS_ARCHIVED.Authorizations
Your API token. Required for all API requests.
Body
Locates a wallet by address. At least one of name and status must be set; both can be set together.
Address of the wallet in the network.
"<string>"
The wallet's new name. Empty means no change. Leading and trailing whitespace is removed and runs of whitespace become one space before the name is checked: the result must be 1 to 85 Unicode code points and must not contain :, < or >.
"my wallet"
The wallet's new status. Empty means no change. Exactly STATUS_ACTIVE or STATUS_ARCHIVED (case-sensitive); any other value is rejected. Use STATUS_ARCHIVED to archive a wallet and STATUS_ACTIVE to unarchive an archived wallet, which must fit the organization's wallet limit. A wallet that is still pending cannot change status.
"STATUS_ACTIVE"
Was this page helpful?