Prepare a profile update
curl --request POST \
--url https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"actor": "<string>",
"profile": {
"description": "<string>",
"website": "<string>",
"x": "<string>",
"telegram": "<string>",
"image_uri": "<string>",
"image_base64": "<string>"
}
}
'import requests
url = "https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare"
payload = {
"actor": "<string>",
"profile": {
"description": "<string>",
"website": "<string>",
"x": "<string>",
"telegram": "<string>",
"image_uri": "<string>",
"image_base64": "<string>"
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
actor: '<string>',
profile: {
description: '<string>',
website: '<string>',
x: '<string>',
telegram: '<string>',
image_uri: '<string>',
image_base64: '<string>'
}
})
};
fetch('https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare', 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.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare",
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([
'actor' => '<string>',
'profile' => [
'description' => '<string>',
'website' => '<string>',
'x' => '<string>',
'telegram' => '<string>',
'image_uri' => '<string>',
'image_base64' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare"
payload := strings.NewReader("{\n \"actor\": \"<string>\",\n \"profile\": {\n \"description\": \"<string>\",\n \"website\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"image_uri\": \"<string>\",\n \"image_base64\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("x-api-key", "<api-key>")
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))
}HttpResponse<String> response = Unirest.post("https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare")
.header("Idempotency-Key", "<idempotency-key>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"actor\": \"<string>\",\n \"profile\": {\n \"description\": \"<string>\",\n \"website\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"image_uri\": \"<string>\",\n \"image_base64\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actor\": \"<string>\",\n \"profile\": {\n \"description\": \"<string>\",\n \"website\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"image_uri\": \"<string>\",\n \"image_base64\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"actor": "<string>",
"prepared_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"observed_block": "<string>",
"issues": [
{
"code": "<string>",
"detail": "<string>",
"asset": "<string>",
"spender": "<string>",
"actual_raw": "<string>",
"required_raw": "<string>",
"remediation_step_id": "<string>"
}
],
"steps": [
{
"id": "<string>",
"kind": "<string>",
"label": "<string>",
"depends_on": [
"<string>"
],
"transaction": {
"from": "<string>",
"to": "<string>",
"data": "<string>",
"value": "<string>"
},
"simulation": {
"block_number": "<string>"
}
}
],
"review": {
"operation": "<string>",
"token_address": "<string>",
"name": "<string>"
},
"metadata_uri": "<string>",
"image_url": "<string>"
},
"meta": {
"request_id": "<string>",
"generated_at": "2023-11-07T05:31:56Z",
"warnings": [
"<string>"
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}Creators
Prepare a profile update
Merge the indexed public profile, pin changed IPFS content, verify metadata authority, and return one unsigned contract-URI transaction.
POST
/
tokens
/
{chain_id}
/
{token_address}
/
metadata
/
profile
/
prepare
Prepare a profile update
curl --request POST \
--url https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"actor": "<string>",
"profile": {
"description": "<string>",
"website": "<string>",
"x": "<string>",
"telegram": "<string>",
"image_uri": "<string>",
"image_base64": "<string>"
}
}
'import requests
url = "https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare"
payload = {
"actor": "<string>",
"profile": {
"description": "<string>",
"website": "<string>",
"x": "<string>",
"telegram": "<string>",
"image_uri": "<string>",
"image_base64": "<string>"
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
actor: '<string>',
profile: {
description: '<string>',
website: '<string>',
x: '<string>',
telegram: '<string>',
image_uri: '<string>',
image_base64: '<string>'
}
})
};
fetch('https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare', 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.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare",
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([
'actor' => '<string>',
'profile' => [
'description' => '<string>',
'website' => '<string>',
'x' => '<string>',
'telegram' => '<string>',
'image_uri' => '<string>',
'image_base64' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare"
payload := strings.NewReader("{\n \"actor\": \"<string>\",\n \"profile\": {\n \"description\": \"<string>\",\n \"website\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"image_uri\": \"<string>\",\n \"image_base64\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("x-api-key", "<api-key>")
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))
}HttpResponse<String> response = Unirest.post("https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare")
.header("Idempotency-Key", "<idempotency-key>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"actor\": \"<string>\",\n \"profile\": {\n \"description\": \"<string>\",\n \"website\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"image_uri\": \"<string>\",\n \"image_base64\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/profile/prepare")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actor\": \"<string>\",\n \"profile\": {\n \"description\": \"<string>\",\n \"website\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"image_uri\": \"<string>\",\n \"image_base64\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"actor": "<string>",
"prepared_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"observed_block": "<string>",
"issues": [
{
"code": "<string>",
"detail": "<string>",
"asset": "<string>",
"spender": "<string>",
"actual_raw": "<string>",
"required_raw": "<string>",
"remediation_step_id": "<string>"
}
],
"steps": [
{
"id": "<string>",
"kind": "<string>",
"label": "<string>",
"depends_on": [
"<string>"
],
"transaction": {
"from": "<string>",
"to": "<string>",
"data": "<string>",
"value": "<string>"
},
"simulation": {
"block_number": "<string>"
}
}
],
"review": {
"operation": "<string>",
"token_address": "<string>",
"name": "<string>"
},
"metadata_uri": "<string>",
"image_url": "<string>"
},
"meta": {
"request_id": "<string>",
"generated_at": "2023-11-07T05:31:56Z",
"warnings": [
"<string>"
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>",
"invalid_parameters": [
{
"name": "<string>",
"reason": "<string>",
"detail": "<string>",
"allowed": [
"<string>"
]
}
],
"suggested_endpoint": "<string>"
}Authorizations
Production API key beginning with o1_launch_.
Headers
Generate a random UUID for each new request and reuse it only when retrying that exact request. A different payload is rejected.
Required string length:
1 - 255Path Parameters
Production chain containing the resource.
Available options:
8453, 4663 Example:
8453
Launch token contract address.
Pattern:
^0x[0-9a-fA-F]{40}$Example:
"0x1111111111111111111111111111111111111111"
Body
application/json
⌘I
