curl --request GET \
--url https://api.sandbox.brickken.com/get-tokenizer-info \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.brickken.com/get-tokenizer-info"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sandbox.brickken.com/get-tokenizer-info', 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.sandbox.brickken.com/get-tokenizer-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.sandbox.brickken.com/get-tokenizer-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.sandbox.brickken.com/get-tokenizer-info")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.brickken.com/get-tokenizer-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"companyWalletAddress": "<string>",
"tokenAddress": "<string>",
"paymentTokenAddress": "<string>",
"escrowAddress": "<string>",
"chainId": "<string>",
"email": "<string>"
}Get Tokenizer Information
Description: Reads the tokenizer and contract addresses of a specific token. This is the endpoint that returns the deployed token contract address (tokenAddress) after a newTokenization succeeds.
For a payment-token approval before dividendDistribution, use the returned tokenAddress as spenderAddress. paymentTokenAddress identifies the ERC-20 being approved; escrowAddress is not the spender for this allowance.
Headers:
x-api-key:YOUR_API_KEY
Query Parameters:
tokenSymbol(string): The symbol of the token.
curl --request GET \
--url https://api.sandbox.brickken.com/get-tokenizer-info \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.brickken.com/get-tokenizer-info"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sandbox.brickken.com/get-tokenizer-info', 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.sandbox.brickken.com/get-tokenizer-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.sandbox.brickken.com/get-tokenizer-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.sandbox.brickken.com/get-tokenizer-info")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.brickken.com/get-tokenizer-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"companyWalletAddress": "<string>",
"tokenAddress": "<string>",
"paymentTokenAddress": "<string>",
"escrowAddress": "<string>",
"chainId": "<string>",
"email": "<string>"
}newTokenization succeeds. The address is
returned as tokenAddress; neither the transaction status response nor
GET /get-token-info contains it.Query Parameters
tokenSymbol(required): Token symbol
Example
curl --request GET \
--url 'https://api.sandbox.brickken.com/get-tokenizer-info?tokenSymbol=EXMPL' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"companyWalletAddress": "0x0000000000000000000000000000000000000001",
"tokenAddress": "0x0000000000000000000000000000000000000002",
"paymentTokenAddress": "0x0000000000000000000000000000000000000003",
"escrowAddress": "0x0000000000000000000000000000000000000004",
"chainId": "aa36a7",
"email": "tokenizer@example.com"
}
Address roles for dividend distributions
When preparing the payment-token allowance required bydividendDistribution:
- Use
tokenAddressas thespenderAddressof theapproverequest. This is the STO token contract that consumes the allowance. paymentTokenAddressis the ERC-20 payment token contract on which the approval transaction is executed.companyWalletAddressidentifies the tokenizer and can be passed astokenizerAddressfor a shared payment token such as USDT.- Do not use
escrowAddressas the spender for the dividend allowance.
approve for a complete request example.Authorizations
Query Parameters
The symbol of the token.
Response
Successful response
The company's wallet address.
The STO token contract address. Use this as spenderAddress when approving the payment token before dividendDistribution.
The ERC-20 payment token contract address on which the dividend approval is executed.
The escrow address. Do not use this as the spender for the dividendDistribution allowance.
The blockchain's chain ID.
The email of the tokenizer.