Prepare a metadata update
curl --request POST \
--url https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/prepare \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"actor": "<string>",
"operation": "<string>",
"name": "<string>"
}
'import requests
url = "https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/prepare"
payload = {
"actor": "<string>",
"operation": "<string>",
"name": "<string>"
}
headers = {
"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: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({actor: '<string>', operation: '<string>', name: '<string>'})
};
fetch('https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/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/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>',
'operation' => '<string>',
'name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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/prepare"
payload := strings.NewReader("{\n \"actor\": \"<string>\",\n \"operation\": \"<string>\",\n \"name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/prepare")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"actor\": \"<string>\",\n \"operation\": \"<string>\",\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/prepare")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actor\": \"<string>\",\n \"operation\": \"<string>\",\n \"name\": \"<string>\"\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>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}Creators
Prepare a metadata update
Verify token metadata authority and return one unsigned name, symbol, profile, or extra-metadata transaction.
POST
/
tokens
/
{chain_id}
/
{token_address}
/
metadata
/
prepare
Prepare a metadata update
curl --request POST \
--url https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/prepare \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"actor": "<string>",
"operation": "<string>",
"name": "<string>"
}
'import requests
url = "https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/prepare"
payload = {
"actor": "<string>",
"operation": "<string>",
"name": "<string>"
}
headers = {
"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: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({actor: '<string>', operation: '<string>', name: '<string>'})
};
fetch('https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/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/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>',
'operation' => '<string>',
'name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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/prepare"
payload := strings.NewReader("{\n \"actor\": \"<string>\",\n \"operation\": \"<string>\",\n \"name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/prepare")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"actor\": \"<string>\",\n \"operation\": \"<string>\",\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launch.o1.exchange/v1/tokens/{chain_id}/{token_address}/metadata/prepare")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actor\": \"<string>\",\n \"operation\": \"<string>\",\n \"name\": \"<string>\"\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>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"instance": "<string>"
}Authorizations
Production API key beginning with o1_launch_.
Headers
Required for update_profile because it pins IPFS content; ignored for the other metadata operations.
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
