Return deployed contract data
Return deployed contract data by blockchain native asset id and contract address
GET
/
tokenization
/
contracts
/
{assetId}
/
{contractAddress}
TypeScript
const response: Promise<FireblocksResponse<DeployedContractResponseDto>> = fireblocks.deployedContracts.getDeployedContractByAddress(deployedContractsApiGetDeployedContractByAddressRequest);CompletableFuture<ApiResponse<DeployedContractResponseDto>> response = fireblocks.deployedContracts().getDeployedContractByAddress(contractAddress, assetId);response = fireblocks.deployed_contracts.get_deployed_contract_by_address(contract_address, asset_id);curl --request GET \
--url https://api.fireblocks.io/v1/tokenization/contracts/{assetId}/{contractAddress}const options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/tokenization/contracts/{assetId}/{contractAddress}', 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/contracts/{assetId}/{contractAddress}",
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/contracts/{assetId}/{contractAddress}"
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/contracts/{assetId}/{contractAddress}")
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{
"id": "b70701f4-d7b1-4795-a8ee-b09cdb5b850d",
"contractAddress": "0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66",
"contractTemplateId": "b70701f4-d7b1-4795-a8ee-b09cdb5b850d",
"blockchainId": "<string>",
"vaultAccountId": "0",
"baseAssetId": "ETH_TEST5",
"gaslessConfig": {
"gaslessStandardConfigurations": {}
},
"multichainDeploymentMetadata": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"templateId": "0e4f5a3b-924e-7bb9-8e5b-c748270feb38",
"deploymentSalt": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"initParams": [
{
"name": "_name",
"type": "string",
"description": "The name of the token",
"internalType": "string",
"components": [
{
"name": "_name",
"type": "string",
"description": "The name of the token",
"internalType": "string",
"components": "<array>"
}
],
"value": "true",
"functionValue": {
"inputs": "<array>",
"name": "initialize",
"outputs": "<array>",
"stateMutability": "nonpayable"
}
}
],
"encodedInitParams": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
},
"solanaConfig": {
"extensions": [
"metadataPointer",
"transferHook"
],
"type": "TOKEN2022"
}
}{
"message": "<string>",
"code": 123
}Response
Was this page helpful?
⌘I
TypeScript
const response: Promise<FireblocksResponse<DeployedContractResponseDto>> = fireblocks.deployedContracts.getDeployedContractByAddress(deployedContractsApiGetDeployedContractByAddressRequest);CompletableFuture<ApiResponse<DeployedContractResponseDto>> response = fireblocks.deployedContracts().getDeployedContractByAddress(contractAddress, assetId);response = fireblocks.deployed_contracts.get_deployed_contract_by_address(contract_address, asset_id);curl --request GET \
--url https://api.fireblocks.io/v1/tokenization/contracts/{assetId}/{contractAddress}const options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/tokenization/contracts/{assetId}/{contractAddress}', 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/contracts/{assetId}/{contractAddress}",
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/contracts/{assetId}/{contractAddress}"
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/contracts/{assetId}/{contractAddress}")
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{
"id": "b70701f4-d7b1-4795-a8ee-b09cdb5b850d",
"contractAddress": "0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66",
"contractTemplateId": "b70701f4-d7b1-4795-a8ee-b09cdb5b850d",
"blockchainId": "<string>",
"vaultAccountId": "0",
"baseAssetId": "ETH_TEST5",
"gaslessConfig": {
"gaslessStandardConfigurations": {}
},
"multichainDeploymentMetadata": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"templateId": "0e4f5a3b-924e-7bb9-8e5b-c748270feb38",
"deploymentSalt": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"initParams": [
{
"name": "_name",
"type": "string",
"description": "The name of the token",
"internalType": "string",
"components": [
{
"name": "_name",
"type": "string",
"description": "The name of the token",
"internalType": "string",
"components": "<array>"
}
],
"value": "true",
"functionValue": {
"inputs": "<array>",
"name": "initialize",
"outputs": "<array>",
"stateMutability": "nonpayable"
}
}
],
"encodedInitParams": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
},
"solanaConfig": {
"extensions": [
"metadataPointer",
"transferHook"
],
"type": "TOKEN2022"
}
}{
"message": "<string>",
"code": 123
}