Get an Action Template by actionTemplateId
curl --request GET \
--url https://api-v2.boost.xyz/action-templates/:idimport requests
url = "https://api-v2.boost.xyz/action-templates/:id"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-v2.boost.xyz/action-templates/:id', 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-v2.boost.xyz/action-templates/:id",
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-v2.boost.xyz/action-templates/:id"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-v2.boost.xyz/action-templates/:id")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-v2.boost.xyz/action-templates/:id")
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{
"actionTemplate": {
"id": "<string>",
"actionType": "mint",
"description": "Reward any who buys a specific ERC-20 token on Zora",
"title": "Buy a specific token",
"boostConfig": {
"selectedContract": {
"ID": "eth:8453:0x777777751622c0d3258f214f9df38e35bf45baf3",
"contract_name": "<string>",
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7",
"deployment_information": {
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7",
"network_id": "8453"
}
},
"selectedSignature": "event CoinCreated(address indexed caller, address indexed payoutRecipient, address indexed platformReferrer, address currency, string uri, string name, string symbol, address coin, address pool, string version)",
"parameterFilters": [
{
"id": "<string>",
"parameter": "to:1",
"comparator": "==",
"value": "<string>",
"tupleParameter": "<string>",
"tupleParameters": [
"field1:1"
]
}
],
"logFilters": [
{
"id": "<string>",
"contract": {
"ID": "eth:8453:0x777777751622c0d3258f214f9df38e35bf45baf3",
"contract_name": "<string>",
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7",
"deployment_information": {
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7",
"network_id": "8453"
}
},
"signature": "event Transfer(address indexed from, address indexed to, uint256 amount)",
"parameters": [
{
"id": "<string>",
"parameter": "to:1",
"comparator": "==",
"value": "<string>",
"tupleParameter": "<string>",
"tupleParameters": [
"field1:1"
]
}
],
"signatureHash": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e"
}
],
"claimantContract": {
"ID": "eth:8453:0x777777751622c0d3258f214f9df38e35bf45baf3",
"contract_name": "ZoraTimedSaleStrategy",
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7",
"deployment_information": {
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7",
"network_id": "7777777"
}
},
"claimantSignature": "function mint(address mintTo, uint256 quantity, address collection, uint256 tokenId, address mintReferral, string comment) payable",
"claimantParameterMapping": "mintTo",
"reward": {
"budget": "<string>",
"amount": "<string>",
"rebatePercentage": 123,
"type": "pegged-variable-criteria",
"peg": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 or \"buyToken:2\""
},
"selectedSignatureHash": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e",
"selectedAbiItem": {},
"claimantSignatureHash": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e",
"criteria": {
"signature": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e",
"valueType": 123,
"fieldIndex": 123,
"criteriaType": 123,
"targetContract": "<string>"
},
"rewardMultiplier": "4000000000000",
"distributionChannel": []
},
"nameConfig": {
"template": "<string>",
"boostNameGenerator": "<string>",
"abiFilters": [
{
"signature": "0x00000000000000000000000000000000000000000000000000000000a836f32f",
"inputArgIndexes": [
123
],
"inputArgValues": [
"<string>"
],
"targetContract": "<string>"
}
]
},
"isActive": true,
"urlTemplate": "<string>",
"allowlist": [
"0x378632819f39c74c4f56b1429e760739c5fb51b7"
],
"distributionChannel": [],
"verificationLevel": "<string>",
"builderMetadata": {
"createdAt": "2023-11-07T05:31:56Z",
"actionChain": 123,
"budgetAccount": {
"chainId": 123,
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7"
},
"txHash": "<string>",
"description": "<string>",
"contactInfo": "<string>",
"projectUrl": "<string>",
"projectIconUrl": "<string>",
"isProjectCreator": true
},
"projectId": "zora"
},
"project": {
"id": "zora",
"url": "<string>",
"icon": "<string>"
}
}{
"error": "<string>"
}Action
Get an Action Template by actionTemplateId
Returns an Action Template by actionTemplateId
GET
/
action-templates
/
:id
Get an Action Template by actionTemplateId
curl --request GET \
--url https://api-v2.boost.xyz/action-templates/:idimport requests
url = "https://api-v2.boost.xyz/action-templates/:id"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-v2.boost.xyz/action-templates/:id', 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-v2.boost.xyz/action-templates/:id",
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-v2.boost.xyz/action-templates/:id"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-v2.boost.xyz/action-templates/:id")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-v2.boost.xyz/action-templates/:id")
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{
"actionTemplate": {
"id": "<string>",
"actionType": "mint",
"description": "Reward any who buys a specific ERC-20 token on Zora",
"title": "Buy a specific token",
"boostConfig": {
"selectedContract": {
"ID": "eth:8453:0x777777751622c0d3258f214f9df38e35bf45baf3",
"contract_name": "<string>",
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7",
"deployment_information": {
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7",
"network_id": "8453"
}
},
"selectedSignature": "event CoinCreated(address indexed caller, address indexed payoutRecipient, address indexed platformReferrer, address currency, string uri, string name, string symbol, address coin, address pool, string version)",
"parameterFilters": [
{
"id": "<string>",
"parameter": "to:1",
"comparator": "==",
"value": "<string>",
"tupleParameter": "<string>",
"tupleParameters": [
"field1:1"
]
}
],
"logFilters": [
{
"id": "<string>",
"contract": {
"ID": "eth:8453:0x777777751622c0d3258f214f9df38e35bf45baf3",
"contract_name": "<string>",
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7",
"deployment_information": {
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7",
"network_id": "8453"
}
},
"signature": "event Transfer(address indexed from, address indexed to, uint256 amount)",
"parameters": [
{
"id": "<string>",
"parameter": "to:1",
"comparator": "==",
"value": "<string>",
"tupleParameter": "<string>",
"tupleParameters": [
"field1:1"
]
}
],
"signatureHash": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e"
}
],
"claimantContract": {
"ID": "eth:8453:0x777777751622c0d3258f214f9df38e35bf45baf3",
"contract_name": "ZoraTimedSaleStrategy",
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7",
"deployment_information": {
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7",
"network_id": "7777777"
}
},
"claimantSignature": "function mint(address mintTo, uint256 quantity, address collection, uint256 tokenId, address mintReferral, string comment) payable",
"claimantParameterMapping": "mintTo",
"reward": {
"budget": "<string>",
"amount": "<string>",
"rebatePercentage": 123,
"type": "pegged-variable-criteria",
"peg": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 or \"buyToken:2\""
},
"selectedSignatureHash": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e",
"selectedAbiItem": {},
"claimantSignatureHash": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e",
"criteria": {
"signature": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e",
"valueType": 123,
"fieldIndex": 123,
"criteriaType": 123,
"targetContract": "<string>"
},
"rewardMultiplier": "4000000000000",
"distributionChannel": []
},
"nameConfig": {
"template": "<string>",
"boostNameGenerator": "<string>",
"abiFilters": [
{
"signature": "0x00000000000000000000000000000000000000000000000000000000a836f32f",
"inputArgIndexes": [
123
],
"inputArgValues": [
"<string>"
],
"targetContract": "<string>"
}
]
},
"isActive": true,
"urlTemplate": "<string>",
"allowlist": [
"0x378632819f39c74c4f56b1429e760739c5fb51b7"
],
"distributionChannel": [],
"verificationLevel": "<string>",
"builderMetadata": {
"createdAt": "2023-11-07T05:31:56Z",
"actionChain": 123,
"budgetAccount": {
"chainId": 123,
"address": "0x378632819f39c74c4f56b1429e760739c5fb51b7"
},
"txHash": "<string>",
"description": "<string>",
"contactInfo": "<string>",
"projectUrl": "<string>",
"projectIconUrl": "<string>",
"isProjectCreator": true
},
"projectId": "zora"
},
"project": {
"id": "zora",
"url": "<string>",
"icon": "<string>"
}
}{
"error": "<string>"
}⌘I