Add jsonDidKey to VASP details
Update VASP Details.
Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene.
PUT
/
screening
/
travel_rule
/
vasp
/
update
TypeScript
const response: Promise<FireblocksResponse<TravelRuleUpdateVASPDetails>> = fireblocks.travelRule.updateVasp(travelRuleApiUpdateVaspRequest);CompletableFuture<ApiResponse<TravelRuleUpdateVASPDetails>> response = fireblocks.travelRule().updateVasp(travelRuleUpdateVASPDetails, idempotencyKey);response = fireblocks.travel_rule.update_vasp(travel_rule_update_v_a_s_p_details, idempotency_key);curl --request PUT \
--url https://api.fireblocks.io/v1/screening/travel_rule/vasp/update \
--header 'Content-Type: application/json' \
--data '
{
"did": "did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2",
"pii_didkey": "did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
did: 'did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2',
pii_didkey: 'did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf'
})
};
fetch('https://api.fireblocks.io/v1/screening/travel_rule/vasp/update', 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/screening/travel_rule/vasp/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'did' => 'did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2',
'pii_didkey' => 'did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.fireblocks.io/v1/screening/travel_rule/vasp/update"
payload := strings.NewReader("{\n \"did\": \"did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2\",\n \"pii_didkey\": \"did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
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))
}require 'uri'
require 'net/http'
url = URI("https://api.fireblocks.io/v1/screening/travel_rule/vasp/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"did\": \"did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2\",\n \"pii_didkey\": \"did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf\"\n}"
response = http.request(request)
puts response.read_body{
"did": "did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2",
"pii_didkey": "did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf"
}Headers
A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
Body
application/json
Was this page helpful?
⌘I
TypeScript
const response: Promise<FireblocksResponse<TravelRuleUpdateVASPDetails>> = fireblocks.travelRule.updateVasp(travelRuleApiUpdateVaspRequest);CompletableFuture<ApiResponse<TravelRuleUpdateVASPDetails>> response = fireblocks.travelRule().updateVasp(travelRuleUpdateVASPDetails, idempotencyKey);response = fireblocks.travel_rule.update_vasp(travel_rule_update_v_a_s_p_details, idempotency_key);curl --request PUT \
--url https://api.fireblocks.io/v1/screening/travel_rule/vasp/update \
--header 'Content-Type: application/json' \
--data '
{
"did": "did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2",
"pii_didkey": "did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
did: 'did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2',
pii_didkey: 'did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf'
})
};
fetch('https://api.fireblocks.io/v1/screening/travel_rule/vasp/update', 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/screening/travel_rule/vasp/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'did' => 'did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2',
'pii_didkey' => 'did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.fireblocks.io/v1/screening/travel_rule/vasp/update"
payload := strings.NewReader("{\n \"did\": \"did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2\",\n \"pii_didkey\": \"did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
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))
}require 'uri'
require 'net/http'
url = URI("https://api.fireblocks.io/v1/screening/travel_rule/vasp/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"did\": \"did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2\",\n \"pii_didkey\": \"did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf\"\n}"
response = http.request(request)
puts response.read_body{
"did": "did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2",
"pii_didkey": "did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf"
}