Get a blockchain by ID
Returns a single blockchain owned by the tenant, identified by its ID.
GET
/
blockchain_link
/
blockchains
/
{blockchainId}
TypeScript
const response: Promise<FireblocksResponse<GetBlockchainByIdResponse>> = fireblocks.blockchainLinkBeta.getBlockchainLinkChain(blockchainLinkBetaApiGetBlockchainLinkChainRequest);CompletableFuture<ApiResponse<GetBlockchainByIdResponse>> response = fireblocks.blockchainLinkBeta().getBlockchainLinkChain(blockchainId);response = fireblocks.blockchain_link_beta.get_blockchain_link_chain(blockchain_id);curl --request GET \
--url https://api.fireblocks.io/v1/blockchain_link/blockchains/{blockchainId}const options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/blockchain_link/blockchains/{blockchainId}', 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/blockchain_link/blockchains/{blockchainId}",
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/blockchain_link/blockchains/{blockchainId}"
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/blockchain_link/blockchains/{blockchainId}")
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{
"blockchain": {
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"blockchainState": "BLOCKCHAIN_STATE_ACTIVATED",
"declaredProperties": {
"chainName": "Ethereum",
"chainId": 1,
"symbolName": "ETH",
"rpcUrls": [
"https://rpc.example.com"
],
"environmentType": "ENVIRONMENT_TYPE_MAINNET",
"decimals": 18,
"blockExplorerUrl": "https://etherscan.io",
"blockExplorerTransactionPath": "/tx",
"blockExplorerAddressPath": "/address",
"networkId": 1,
"hasFee": true,
"isPoa": false,
"hasLayeredFee": false,
"nodeType": "NODE_TYPE_CORE_GETH",
"transactionFormat": 0,
"baseAssetTenantIds": [
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
],
"explorerApiUrl": "https://api.etherscan.io",
"explorerApiKey": "my-explorer-api-key",
"isTraceEnabled": false,
"rpcAuth": {
"type": "RPC_AUTH_BASIC",
"username": "rpc_user",
"password": "my-password",
"token": "my-bearer-token",
"headerName": "X-Custom-Auth",
"headerValue": "my-header-value"
}
},
"createdAtUtc": 1700000000000,
"updatedAtUtc": 1700000000000,
"validationFailureReasons": [
"RPC endpoint unreachable"
],
"validationSessionId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"validationStatus": "VALIDATION_STATUS_SUCCEEDED",
"validationCreatedAtUtc": 1700000000000,
"validationUpdatedAtUtc": 1700000000000,
"validationCompletedAtUtc": 1700000000000,
"failedStep": "FAILED_STEP_CONFIGURATION"
}
}{
"message": "<string>",
"code": 123
}Was this page helpful?
Previous
Update a blockchainUpdates the declared properties of an existing blockchain identified by its ID. Only the fields supplied in the request are modified.
Next
⌘I
TypeScript
const response: Promise<FireblocksResponse<GetBlockchainByIdResponse>> = fireblocks.blockchainLinkBeta.getBlockchainLinkChain(blockchainLinkBetaApiGetBlockchainLinkChainRequest);CompletableFuture<ApiResponse<GetBlockchainByIdResponse>> response = fireblocks.blockchainLinkBeta().getBlockchainLinkChain(blockchainId);response = fireblocks.blockchain_link_beta.get_blockchain_link_chain(blockchain_id);curl --request GET \
--url https://api.fireblocks.io/v1/blockchain_link/blockchains/{blockchainId}const options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/blockchain_link/blockchains/{blockchainId}', 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/blockchain_link/blockchains/{blockchainId}",
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/blockchain_link/blockchains/{blockchainId}"
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/blockchain_link/blockchains/{blockchainId}")
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{
"blockchain": {
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"blockchainState": "BLOCKCHAIN_STATE_ACTIVATED",
"declaredProperties": {
"chainName": "Ethereum",
"chainId": 1,
"symbolName": "ETH",
"rpcUrls": [
"https://rpc.example.com"
],
"environmentType": "ENVIRONMENT_TYPE_MAINNET",
"decimals": 18,
"blockExplorerUrl": "https://etherscan.io",
"blockExplorerTransactionPath": "/tx",
"blockExplorerAddressPath": "/address",
"networkId": 1,
"hasFee": true,
"isPoa": false,
"hasLayeredFee": false,
"nodeType": "NODE_TYPE_CORE_GETH",
"transactionFormat": 0,
"baseAssetTenantIds": [
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
],
"explorerApiUrl": "https://api.etherscan.io",
"explorerApiKey": "my-explorer-api-key",
"isTraceEnabled": false,
"rpcAuth": {
"type": "RPC_AUTH_BASIC",
"username": "rpc_user",
"password": "my-password",
"token": "my-bearer-token",
"headerName": "X-Custom-Auth",
"headerValue": "my-header-value"
}
},
"createdAtUtc": 1700000000000,
"updatedAtUtc": 1700000000000,
"validationFailureReasons": [
"RPC endpoint unreachable"
],
"validationSessionId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"validationStatus": "VALIDATION_STATUS_SUCCEEDED",
"validationCreatedAtUtc": 1700000000000,
"validationUpdatedAtUtc": 1700000000000,
"validationCompletedAtUtc": 1700000000000,
"failedStep": "FAILED_STEP_CONFIGURATION"
}
}{
"message": "<string>",
"code": 123
}