Links

Airdrop NFT

post
https://api.bountyblok.io
/v1/airdrop_nft_hedera
Airdrop an NFT
cURL
C#
Javascript
Python
PHP
curl --location --request POST 'https://api.bountyblok.io/v1/airdrop_nft_hedera' \
--header 'Authorization: Bearer <<API TOKEN>>' \
--header 'Content-Type: application/json' \
--data-raw '{
"to_address":"0.0.47879121",
"token_id":"0.0.48484359",
"serial_num":438
}'
var client = new RestClient("https://api.bountyblok.io/v1/airdrop_nft_hedera");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "<<API TOKEN>");
request.AddHeader("Content-Type", "application/json");
var body = @"{
" + "\n" +
@" ""to_address"":""0.0.1113221"",
" + "\n" +
@" ""token_id"":""0.0.1317275"",
" + "\n" +
@" ""serial_num"":436
" + "\n" +
@"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
var data = JSON.stringify({
"to_address": "0.0.1113221",
"token_id": "0.0.1317275",
"serial_num": 436
});
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("POST", "https://api.bountyblok.io/v1/airdrop_nft_hedera");
xhr.setRequestHeader("Authorization", "Bearer <<API TOKEN>");
xhr.setRequestHeader("Content-Type", "application/json");
xhr.send(data);
import http.client
import json
conn = http.client.HTTPSConnection("api.bountyblok.io")
payload = json.dumps({
"to_address": "0.0.1113221",
"token_id": "0.0.1317275",
"serial_num": 436
})
headers = {
'Authorization': 'Bearer <<API TOKEN>',
'Content-Type': 'application/json'
}
conn.request("POST", "/v1/airdrop_nft_hedera", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.bountyblok.io/v1/airdrop_nft_hedera',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"to_address":"0.0.1113221",
"token_id":"0.0.1317275",
"serial_num":436
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer <<API TOKEN>',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;