GetWalletInfo
curl --request POST \
--url https://api.mpcvault.com/v1/getWalletInfo \
--header 'Content-Type: application/json' \
--header 'x-mtoken: <api-key>' \
--data '
{
"address": "<string>"
}
'import requests
url = "https://api.mpcvault.com/v1/getWalletInfo"
payload = { "address": "<string>" }
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>'})
};
fetch('https://api.mpcvault.com/v1/getWalletInfo', 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/getWalletInfo",
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>'
]),
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/getWalletInfo"
payload := strings.NewReader("{\n \"address\": \"<string>\"\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/getWalletInfo")
.header("x-mtoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mpcvault.com/v1/getWalletInfo")
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}"
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
GetWalletInfo
Get a single wallet by address or customer reference.
POST
/
v1
/
getWalletInfo
GetWalletInfo
curl --request POST \
--url https://api.mpcvault.com/v1/getWalletInfo \
--header 'Content-Type: application/json' \
--header 'x-mtoken: <api-key>' \
--data '
{
"address": "<string>"
}
'import requests
url = "https://api.mpcvault.com/v1/getWalletInfo"
payload = { "address": "<string>" }
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>'})
};
fetch('https://api.mpcvault.com/v1/getWalletInfo', 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/getWalletInfo",
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>'
]),
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/getWalletInfo"
payload := strings.NewReader("{\n \"address\": \"<string>\"\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/getWalletInfo")
.header("x-mtoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mpcvault.com/v1/getWalletInfo")
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}"
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>"
}
}Returns one wallet by its blockchain address or your ref (customer reference). Provide either
address or ref, not both.Authorizations
Your API token. Required for all API requests.
Body
application/json
- address
- ref
comment:address is the address of the wallet in the network.
Was this page helpful?
⌘I