UpdateWallet
curl --request POST \
--url https://api.mpcvault.com/v1/updateWallet \
--header 'Content-Type: application/json' \
--header 'x-mtoken: <api-key>' \
--data '
{
"address": "0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F",
"name": "my wallet",
"status": "STATUS_ACTIVE"
}
'import requests
url = "https://api.mpcvault.com/v1/updateWallet"
payload = {
"address": "0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F",
"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: '0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F',
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' => '0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F',
'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\": \"0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F\",\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\": \"0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F\",\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\": \"0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F\",\n \"name\": \"my wallet\",\n \"status\": \"STATUS_ACTIVE\"\n}"
response = http.request(request)
puts response.read_body{
"details": {
"vaultUuid": "9f5ee5fb-07f5-470c-a2ff-081e2d6d107a",
"keyType": "KEY_TYPE_ECC_ED25519",
"keyPath": "path/to/key",
"publicKey": "aSDinaTvuI8gbWludGxpZnk=",
"networkType": "NETWORK_TYPE_EVM",
"address": "0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F",
"ref": "0x4321567890abcdef4321567890abcdef123456",
"status": "STATUS_ACTIVE",
"name": "test wallet"
},
"error": {
"message": "<string>"
}
}Wallets
UpdateWallet
Update a wallet’s name or status by its address.
POST
/
v1
/
updateWallet
UpdateWallet
curl --request POST \
--url https://api.mpcvault.com/v1/updateWallet \
--header 'Content-Type: application/json' \
--header 'x-mtoken: <api-key>' \
--data '
{
"address": "0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F",
"name": "my wallet",
"status": "STATUS_ACTIVE"
}
'import requests
url = "https://api.mpcvault.com/v1/updateWallet"
payload = {
"address": "0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F",
"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: '0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F',
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' => '0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F',
'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\": \"0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F\",\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\": \"0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F\",\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\": \"0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F\",\n \"name\": \"my wallet\",\n \"status\": \"STATUS_ACTIVE\"\n}"
response = http.request(request)
puts response.read_body{
"details": {
"vaultUuid": "9f5ee5fb-07f5-470c-a2ff-081e2d6d107a",
"keyType": "KEY_TYPE_ECC_ED25519",
"keyPath": "path/to/key",
"publicKey": "aSDinaTvuI8gbWludGxpZnk=",
"networkType": "NETWORK_TYPE_EVM",
"address": "0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F",
"ref": "0x4321567890abcdef4321567890abcdef123456",
"status": "STATUS_ACTIVE",
"name": "test wallet"
},
"error": {
"message": "<string>"
}
}Update a wallet’s
name or status by its address. Provide at least one of the two.Authorizations
Your API token. Required for all API requests.
Body
application/json
The on-chain address of the wallet to update.
Example:
"0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F"
The wallet's new name, 1-85 characters. Empty means no change.
Example:
"my wallet"
The wallet's new status. Empty means no change. Supports STATUS_ACTIVE and STATUS_ARCHIVED: use STATUS_ARCHIVED to archive a wallet, and STATUS_ACTIVE to unarchive an archived wallet.
Example:
"STATUS_ACTIVE"
Was this page helpful?
⌘I