Burn tokens
Burn tokens in a collection
POST
/
tokenization
/
collections
/
{id}
/
tokens
/
burn
TypeScript
const response: Promise<FireblocksResponse<CollectionBurnResponseDto>> = fireblocks.tokenization.burnCollectionToken(tokenizationApiBurnCollectionTokenRequest);CompletableFuture<ApiResponse<CollectionBurnResponseDto>> response = fireblocks.tokenization().burnCollectionToken(collectionBurnRequestDto, id, idempotencyKey);response = fireblocks.tokenization.burn_collection_token(collection_burn_request_dto, id, idempotency_key);curl --request POST \
--url https://api.fireblocks.io/v1/tokenization/collections/{id}/tokens/burn \
--header 'Content-Type: application/json' \
--data '
{
"vaultAccountId": "0",
"tokenId": "1",
"amount": "1",
"externalId": "0192e4f5-924e-7bb9-8e5b-c748270feb38"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
vaultAccountId: '0',
tokenId: '1',
amount: '1',
externalId: '0192e4f5-924e-7bb9-8e5b-c748270feb38'
})
};
fetch('https://api.fireblocks.io/v1/tokenization/collections/{id}/tokens/burn', 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/collections/{id}/tokens/burn",
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',
'tokenId' => '1',
'amount' => '1',
'externalId' => '0192e4f5-924e-7bb9-8e5b-c748270feb38'
]),
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/collections/{id}/tokens/burn"
payload := strings.NewReader("{\n \"vaultAccountId\": \"0\",\n \"tokenId\": \"1\",\n \"amount\": \"1\",\n \"externalId\": \"0192e4f5-924e-7bb9-8e5b-c748270feb38\"\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/collections/{id}/tokens/burn")
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 \"tokenId\": \"1\",\n \"amount\": \"1\",\n \"externalId\": \"0192e4f5-924e-7bb9-8e5b-c748270feb38\"\n}"
response = http.request(request)
puts response.read_body{
"txId": "fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb"
}{
"message": "<string>",
"code": 123
}Headers
Body
application/json
Was this page helpful?
⌘I
TypeScript
const response: Promise<FireblocksResponse<CollectionBurnResponseDto>> = fireblocks.tokenization.burnCollectionToken(tokenizationApiBurnCollectionTokenRequest);CompletableFuture<ApiResponse<CollectionBurnResponseDto>> response = fireblocks.tokenization().burnCollectionToken(collectionBurnRequestDto, id, idempotencyKey);response = fireblocks.tokenization.burn_collection_token(collection_burn_request_dto, id, idempotency_key);curl --request POST \
--url https://api.fireblocks.io/v1/tokenization/collections/{id}/tokens/burn \
--header 'Content-Type: application/json' \
--data '
{
"vaultAccountId": "0",
"tokenId": "1",
"amount": "1",
"externalId": "0192e4f5-924e-7bb9-8e5b-c748270feb38"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
vaultAccountId: '0',
tokenId: '1',
amount: '1',
externalId: '0192e4f5-924e-7bb9-8e5b-c748270feb38'
})
};
fetch('https://api.fireblocks.io/v1/tokenization/collections/{id}/tokens/burn', 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/collections/{id}/tokens/burn",
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',
'tokenId' => '1',
'amount' => '1',
'externalId' => '0192e4f5-924e-7bb9-8e5b-c748270feb38'
]),
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/collections/{id}/tokens/burn"
payload := strings.NewReader("{\n \"vaultAccountId\": \"0\",\n \"tokenId\": \"1\",\n \"amount\": \"1\",\n \"externalId\": \"0192e4f5-924e-7bb9-8e5b-c748270feb38\"\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/collections/{id}/tokens/burn")
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 \"tokenId\": \"1\",\n \"amount\": \"1\",\n \"externalId\": \"0192e4f5-924e-7bb9-8e5b-c748270feb38\"\n}"
response = http.request(request)
puts response.read_body{
"txId": "fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb"
}{
"message": "<string>",
"code": 123
}