Get list of mpc keys
Returns a list of MPC signing keys of the workspace. For each key, the list of players associated with it is attached. Note: This endpoint is currently in beta and might be subject to changes.
GET
/
keys
/
mpc
/
list
TypeScript
const response: Promise<FireblocksResponse<GetMpcKeysResponse>> = fireblocks.keysBeta.getMpcKeysList();CompletableFuture<ApiResponse<GetMpcKeysResponse>> response = fireblocks.keysBeta().getMpcKeysList();response = fireblocks.keys_beta.get_mpc_keys_list();curl --request GET \
--url https://api.fireblocks.io/v1/keys/mpc/listconst options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/keys/mpc/list', 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.fireblocks.io/v1/keys/mpc/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fireblocks.io/v1/keys/mpc/list"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.fireblocks.io/v1/keys/mpc/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"tenantId": "bdb57751-921d-45d5-99fd-344cffb364f6",
"keys": [
{
"keyId": "743f82cf-b526-4148-afb1-cd71f1dfee10",
"userId": "da084d02-d446-413e-b4ce-1e3256517dfd",
"algorithm": 201,
"players": [
{
"id": "47d3383e-37a3-43d5-90a4-de0ca8c5e258",
"type": "MOBILE"
}
],
"lastPreprocessedIndex": "6"
}
]
}{
"message": "<string>",
"code": 123
}Was this page helpful?
⌘I
TypeScript
const response: Promise<FireblocksResponse<GetMpcKeysResponse>> = fireblocks.keysBeta.getMpcKeysList();CompletableFuture<ApiResponse<GetMpcKeysResponse>> response = fireblocks.keysBeta().getMpcKeysList();response = fireblocks.keys_beta.get_mpc_keys_list();curl --request GET \
--url https://api.fireblocks.io/v1/keys/mpc/listconst options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/keys/mpc/list', 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.fireblocks.io/v1/keys/mpc/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fireblocks.io/v1/keys/mpc/list"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.fireblocks.io/v1/keys/mpc/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"tenantId": "bdb57751-921d-45d5-99fd-344cffb364f6",
"keys": [
{
"keyId": "743f82cf-b526-4148-afb1-cd71f1dfee10",
"userId": "da084d02-d446-413e-b4ce-1e3256517dfd",
"algorithm": 201,
"players": [
{
"id": "47d3383e-37a3-43d5-90a4-de0ca8c5e258",
"type": "MOBILE"
}
],
"lastPreprocessedIndex": "6"
}
]
}{
"message": "<string>",
"code": 123
}