Get supported blockchains for the template
Get supported blockchains for the template
GET
/
tokenization
/
templates
/
{contractTemplateId}
/
supported_blockchains
TypeScript
const response: Promise<FireblocksResponse<SupportedBlockChainsResponse>> = fireblocks.contractTemplates.getSupportedBlockchainsByTemplateId(contractTemplatesApiGetSupportedBlockchainsByTemplateIdRequest);CompletableFuture<ApiResponse<SupportedBlockChainsResponse>> response = fireblocks.contractTemplates().getSupportedBlockchainsByTemplateId(contractTemplateId);response = fireblocks.contract_templates.get_supported_blockchains_by_template_id(contract_template_id);curl --request GET \
--url https://api.fireblocks.io/v1/tokenization/templates/{contractTemplateId}/supported_blockchainsconst options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/tokenization/templates/{contractTemplateId}/supported_blockchains', 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/tokenization/templates/{contractTemplateId}/supported_blockchains",
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/tokenization/templates/{contractTemplateId}/supported_blockchains"
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/tokenization/templates/{contractTemplateId}/supported_blockchains")
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{
"supportsAllBlockchains": true,
"supportedBlockchains": [
{
"id": "9f9f7062-df90-4fc0-8697-96685184357b",
"legacyId": "ETH",
"displayName": "Ethereum",
"nativeAssetId": "9f9f7062-df90-4fc0-8697-96685184356a"
}
]
}{
"message": "Contract does not exist",
"code": 404
}{
"message": "<string>",
"code": 123
}Was this page helpful?
Previous
List Whitelisted ContractsGets a list of whitelisted contracts. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.
Next
⌘I
TypeScript
const response: Promise<FireblocksResponse<SupportedBlockChainsResponse>> = fireblocks.contractTemplates.getSupportedBlockchainsByTemplateId(contractTemplatesApiGetSupportedBlockchainsByTemplateIdRequest);CompletableFuture<ApiResponse<SupportedBlockChainsResponse>> response = fireblocks.contractTemplates().getSupportedBlockchainsByTemplateId(contractTemplateId);response = fireblocks.contract_templates.get_supported_blockchains_by_template_id(contract_template_id);curl --request GET \
--url https://api.fireblocks.io/v1/tokenization/templates/{contractTemplateId}/supported_blockchainsconst options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/tokenization/templates/{contractTemplateId}/supported_blockchains', 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/tokenization/templates/{contractTemplateId}/supported_blockchains",
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/tokenization/templates/{contractTemplateId}/supported_blockchains"
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/tokenization/templates/{contractTemplateId}/supported_blockchains")
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{
"supportsAllBlockchains": true,
"supportedBlockchains": [
{
"id": "9f9f7062-df90-4fc0-8697-96685184357b",
"legacyId": "ETH",
"displayName": "Ethereum",
"nativeAssetId": "9f9f7062-df90-4fc0-8697-96685184356a"
}
]
}{
"message": "Contract does not exist",
"code": 404
}{
"message": "<string>",
"code": 123
}