Issue a token on one or more blockchains
Facilitates the creation of a new token on one or more blockchains.
POST
/
tokenization
/
multichain
/
tokens
TypeScript
const response: Promise<FireblocksResponse<IssueTokenMultichainResponse>> = fireblocks.tokenization.issueTokenMultiChain(tokenizationApiIssueTokenMultiChainRequest);CompletableFuture<ApiResponse<List<TokenLinkDto>>> response = fireblocks.tokenization().issueTokenMultiChain(createMultichainTokenRequest, idempotencyKey);response = fireblocks.tokenization.issue_token_multi_chain(create_multichain_token_request, idempotency_key);curl --request POST \
--url https://api.fireblocks.io/v1/tokenization/multichain/tokens \
--header 'Content-Type: application/json' \
--data '
{
"vaultAccountId": "0",
"createParams": {
"contractId": "b70701f4-d7b1-4795-a8ee-b09cdb5b850d",
"deployFunctionParams": [
{
"internalType": "string",
"name": "name",
"type": "string",
"value": "name"
},
{
"internalType": "string",
"name": "symbol",
"type": "string",
"value": "symbol"
},
{
"components": [
{
"internalType": "bool",
"name": "_isMintable",
"type": "bool"
}
],
"internalType": "struct MyStruct",
"name": "customConfigProps",
"type": "tuple",
"value": [
{
"internalType": "bool",
"name": "_isMintable",
"type": "bool",
"value": false
}
]
}
]
},
"chains": [
"ETH",
"POLYGON"
],
"salt": "123456789",
"displayName": "<string>",
"useGasless": false,
"fee": "2000",
"feeLevel": "MEDIUM"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
vaultAccountId: '0',
createParams: {
contractId: 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d',
deployFunctionParams: [
{internalType: 'string', name: 'name', type: 'string', value: 'name'},
{internalType: 'string', name: 'symbol', type: 'string', value: 'symbol'},
{
components: [{internalType: 'bool', name: '_isMintable', type: 'bool'}],
internalType: 'struct MyStruct',
name: 'customConfigProps',
type: 'tuple',
value: [{internalType: 'bool', name: '_isMintable', type: 'bool', value: false}]
}
]
},
chains: ['ETH', 'POLYGON'],
salt: '123456789',
displayName: '<string>',
useGasless: false,
fee: '2000',
feeLevel: 'MEDIUM'
})
};
fetch('https://api.fireblocks.io/v1/tokenization/multichain/tokens', 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/multichain/tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'vaultAccountId' => '0',
'createParams' => [
'contractId' => 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d',
'deployFunctionParams' => [
[
'internalType' => 'string',
'name' => 'name',
'type' => 'string',
'value' => 'name'
],
[
'internalType' => 'string',
'name' => 'symbol',
'type' => 'string',
'value' => 'symbol'
],
[
'components' => [
[
'internalType' => 'bool',
'name' => '_isMintable',
'type' => 'bool'
]
],
'internalType' => 'struct MyStruct',
'name' => 'customConfigProps',
'type' => 'tuple',
'value' => [
[
'internalType' => 'bool',
'name' => '_isMintable',
'type' => 'bool',
'value' => false
]
]
]
]
],
'chains' => [
'ETH',
'POLYGON'
],
'salt' => '123456789',
'displayName' => '<string>',
'useGasless' => false,
'fee' => '2000',
'feeLevel' => 'MEDIUM'
]),
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/tokenization/multichain/tokens"
payload := strings.NewReader("{\n \"vaultAccountId\": \"0\",\n \"createParams\": {\n \"contractId\": \"b70701f4-d7b1-4795-a8ee-b09cdb5b850d\",\n \"deployFunctionParams\": [\n {\n \"internalType\": \"string\",\n \"name\": \"name\",\n \"type\": \"string\",\n \"value\": \"name\"\n },\n {\n \"internalType\": \"string\",\n \"name\": \"symbol\",\n \"type\": \"string\",\n \"value\": \"symbol\"\n },\n {\n \"components\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"_isMintable\",\n \"type\": \"bool\"\n }\n ],\n \"internalType\": \"struct MyStruct\",\n \"name\": \"customConfigProps\",\n \"type\": \"tuple\",\n \"value\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"_isMintable\",\n \"type\": \"bool\",\n \"value\": false\n }\n ]\n }\n ]\n },\n \"chains\": [\n \"ETH\",\n \"POLYGON\"\n ],\n \"salt\": \"123456789\",\n \"displayName\": \"<string>\",\n \"useGasless\": false,\n \"fee\": \"2000\",\n \"feeLevel\": \"MEDIUM\"\n}")
req, _ := http.NewRequest("POST", 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/tokenization/multichain/tokens")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"vaultAccountId\": \"0\",\n \"createParams\": {\n \"contractId\": \"b70701f4-d7b1-4795-a8ee-b09cdb5b850d\",\n \"deployFunctionParams\": [\n {\n \"internalType\": \"string\",\n \"name\": \"name\",\n \"type\": \"string\",\n \"value\": \"name\"\n },\n {\n \"internalType\": \"string\",\n \"name\": \"symbol\",\n \"type\": \"string\",\n \"value\": \"symbol\"\n },\n {\n \"components\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"_isMintable\",\n \"type\": \"bool\"\n }\n ],\n \"internalType\": \"struct MyStruct\",\n \"name\": \"customConfigProps\",\n \"type\": \"tuple\",\n \"value\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"_isMintable\",\n \"type\": \"bool\",\n \"value\": false\n }\n ]\n }\n ]\n },\n \"chains\": [\n \"ETH\",\n \"POLYGON\"\n ],\n \"salt\": \"123456789\",\n \"displayName\": \"<string>\",\n \"useGasless\": false,\n \"fee\": \"2000\",\n \"feeLevel\": \"MEDIUM\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb",
"status": "COMPLETED",
"type": "NON_FUNGIBLE_TOKEN",
"refId": "BQ5R_MY_TOKEN",
"displayName": "My Simple ERC20 Token",
"tokenMetadata": {
"assetId": "BQ5R_MY_TOKEN",
"name": "MyToken",
"symbol": "MYT",
"networkProtocol": "ETH",
"totalSupply": "1000000000000000",
"holdersCount": "6",
"type": "ERC20",
"contractAddress": "0x1234567890abcdef1234567890abcdef12345678",
"issuerAddress": "rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ",
"testnet": true,
"blockchain": "ETH_TEST5",
"decimals": 18,
"vaultAccountId": "0"
}
}
]{
"message": "Invalid initParams.",
"code": 400
}{
"message": "Address is already taken",
"code": 409
}Headers
Body
application/json
Response
Tokens were created successfully
Was this page helpful?
⌘I
TypeScript
const response: Promise<FireblocksResponse<IssueTokenMultichainResponse>> = fireblocks.tokenization.issueTokenMultiChain(tokenizationApiIssueTokenMultiChainRequest);CompletableFuture<ApiResponse<List<TokenLinkDto>>> response = fireblocks.tokenization().issueTokenMultiChain(createMultichainTokenRequest, idempotencyKey);response = fireblocks.tokenization.issue_token_multi_chain(create_multichain_token_request, idempotency_key);curl --request POST \
--url https://api.fireblocks.io/v1/tokenization/multichain/tokens \
--header 'Content-Type: application/json' \
--data '
{
"vaultAccountId": "0",
"createParams": {
"contractId": "b70701f4-d7b1-4795-a8ee-b09cdb5b850d",
"deployFunctionParams": [
{
"internalType": "string",
"name": "name",
"type": "string",
"value": "name"
},
{
"internalType": "string",
"name": "symbol",
"type": "string",
"value": "symbol"
},
{
"components": [
{
"internalType": "bool",
"name": "_isMintable",
"type": "bool"
}
],
"internalType": "struct MyStruct",
"name": "customConfigProps",
"type": "tuple",
"value": [
{
"internalType": "bool",
"name": "_isMintable",
"type": "bool",
"value": false
}
]
}
]
},
"chains": [
"ETH",
"POLYGON"
],
"salt": "123456789",
"displayName": "<string>",
"useGasless": false,
"fee": "2000",
"feeLevel": "MEDIUM"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
vaultAccountId: '0',
createParams: {
contractId: 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d',
deployFunctionParams: [
{internalType: 'string', name: 'name', type: 'string', value: 'name'},
{internalType: 'string', name: 'symbol', type: 'string', value: 'symbol'},
{
components: [{internalType: 'bool', name: '_isMintable', type: 'bool'}],
internalType: 'struct MyStruct',
name: 'customConfigProps',
type: 'tuple',
value: [{internalType: 'bool', name: '_isMintable', type: 'bool', value: false}]
}
]
},
chains: ['ETH', 'POLYGON'],
salt: '123456789',
displayName: '<string>',
useGasless: false,
fee: '2000',
feeLevel: 'MEDIUM'
})
};
fetch('https://api.fireblocks.io/v1/tokenization/multichain/tokens', 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/multichain/tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'vaultAccountId' => '0',
'createParams' => [
'contractId' => 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d',
'deployFunctionParams' => [
[
'internalType' => 'string',
'name' => 'name',
'type' => 'string',
'value' => 'name'
],
[
'internalType' => 'string',
'name' => 'symbol',
'type' => 'string',
'value' => 'symbol'
],
[
'components' => [
[
'internalType' => 'bool',
'name' => '_isMintable',
'type' => 'bool'
]
],
'internalType' => 'struct MyStruct',
'name' => 'customConfigProps',
'type' => 'tuple',
'value' => [
[
'internalType' => 'bool',
'name' => '_isMintable',
'type' => 'bool',
'value' => false
]
]
]
]
],
'chains' => [
'ETH',
'POLYGON'
],
'salt' => '123456789',
'displayName' => '<string>',
'useGasless' => false,
'fee' => '2000',
'feeLevel' => 'MEDIUM'
]),
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/tokenization/multichain/tokens"
payload := strings.NewReader("{\n \"vaultAccountId\": \"0\",\n \"createParams\": {\n \"contractId\": \"b70701f4-d7b1-4795-a8ee-b09cdb5b850d\",\n \"deployFunctionParams\": [\n {\n \"internalType\": \"string\",\n \"name\": \"name\",\n \"type\": \"string\",\n \"value\": \"name\"\n },\n {\n \"internalType\": \"string\",\n \"name\": \"symbol\",\n \"type\": \"string\",\n \"value\": \"symbol\"\n },\n {\n \"components\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"_isMintable\",\n \"type\": \"bool\"\n }\n ],\n \"internalType\": \"struct MyStruct\",\n \"name\": \"customConfigProps\",\n \"type\": \"tuple\",\n \"value\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"_isMintable\",\n \"type\": \"bool\",\n \"value\": false\n }\n ]\n }\n ]\n },\n \"chains\": [\n \"ETH\",\n \"POLYGON\"\n ],\n \"salt\": \"123456789\",\n \"displayName\": \"<string>\",\n \"useGasless\": false,\n \"fee\": \"2000\",\n \"feeLevel\": \"MEDIUM\"\n}")
req, _ := http.NewRequest("POST", 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/tokenization/multichain/tokens")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"vaultAccountId\": \"0\",\n \"createParams\": {\n \"contractId\": \"b70701f4-d7b1-4795-a8ee-b09cdb5b850d\",\n \"deployFunctionParams\": [\n {\n \"internalType\": \"string\",\n \"name\": \"name\",\n \"type\": \"string\",\n \"value\": \"name\"\n },\n {\n \"internalType\": \"string\",\n \"name\": \"symbol\",\n \"type\": \"string\",\n \"value\": \"symbol\"\n },\n {\n \"components\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"_isMintable\",\n \"type\": \"bool\"\n }\n ],\n \"internalType\": \"struct MyStruct\",\n \"name\": \"customConfigProps\",\n \"type\": \"tuple\",\n \"value\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"_isMintable\",\n \"type\": \"bool\",\n \"value\": false\n }\n ]\n }\n ]\n },\n \"chains\": [\n \"ETH\",\n \"POLYGON\"\n ],\n \"salt\": \"123456789\",\n \"displayName\": \"<string>\",\n \"useGasless\": false,\n \"fee\": \"2000\",\n \"feeLevel\": \"MEDIUM\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb",
"status": "COMPLETED",
"type": "NON_FUNGIBLE_TOKEN",
"refId": "BQ5R_MY_TOKEN",
"displayName": "My Simple ERC20 Token",
"tokenMetadata": {
"assetId": "BQ5R_MY_TOKEN",
"name": "MyToken",
"symbol": "MYT",
"networkProtocol": "ETH",
"totalSupply": "1000000000000000",
"holdersCount": "6",
"type": "ERC20",
"contractAddress": "0x1234567890abcdef1234567890abcdef12345678",
"issuerAddress": "rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ",
"testnet": true,
"blockchain": "ETH_TEST5",
"decimals": 18,
"vaultAccountId": "0"
}
}
]{
"message": "Invalid initParams.",
"code": 400
}{
"message": "Address is already taken",
"code": 409
}