Prepare a launch
curl --request POST \
--url https://api.launch.o1.exchange/v1/launches/prepare \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"creator": "<string>",
"quote_address": "<string>",
"token": {
"name": "<string>",
"symbol": "<string>",
"image_base64": "<string>",
"description": "",
"website": "<string>",
"x": "<string>",
"telegram": "<string>",
"editable_metadata": false,
"extra_metadata": []
},
"allocations": [],
"vesting": []
}
'import requests
url = "https://api.launch.o1.exchange/v1/launches/prepare"
payload = {
"creator": "<string>",
"quote_address": "<string>",
"token": {
"name": "<string>",
"symbol": "<string>",
"image_base64": "<string>",
"description": "",
"website": "<string>",
"x": "<string>",
"telegram": "<string>",
"editable_metadata": False,
"extra_metadata": []
},
"allocations": [],
"vesting": []
}
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({
creator: '<string>',
quote_address: '<string>',
token: {
name: '<string>',
symbol: '<string>',
image_base64: '<string>',
description: '',
website: '<string>',
x: '<string>',
telegram: '<string>',
editable_metadata: false,
extra_metadata: []
},
allocations: [],
vesting: []
})
};
fetch('https://api.launch.o1.exchange/v1/launches/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/launches/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([
'creator' => '<string>',
'quote_address' => '<string>',
'token' => [
'name' => '<string>',
'symbol' => '<string>',
'image_base64' => '<string>',
'description' => '',
'website' => '<string>',
'x' => '<string>',
'telegram' => '<string>',
'editable_metadata' => false,
'extra_metadata' => [
]
],
'allocations' => [
],
'vesting' => [
]
]),
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/launches/prepare"
payload := strings.NewReader("{\n \"creator\": \"<string>\",\n \"quote_address\": \"<string>\",\n \"token\": {\n \"name\": \"<string>\",\n \"symbol\": \"<string>\",\n \"image_base64\": \"<string>\",\n \"description\": \"\",\n \"website\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"editable_metadata\": false,\n \"extra_metadata\": []\n },\n \"allocations\": [],\n \"vesting\": []\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/launches/prepare")
.header("Idempotency-Key", "<idempotency-key>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"creator\": \"<string>\",\n \"quote_address\": \"<string>\",\n \"token\": {\n \"name\": \"<string>\",\n \"symbol\": \"<string>\",\n \"image_base64\": \"<string>\",\n \"description\": \"\",\n \"website\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"editable_metadata\": false,\n \"extra_metadata\": []\n },\n \"allocations\": [],\n \"vesting\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launch.o1.exchange/v1/launches/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 \"creator\": \"<string>\",\n \"quote_address\": \"<string>\",\n \"token\": {\n \"name\": \"<string>\",\n \"symbol\": \"<string>\",\n \"image_base64\": \"<string>\",\n \"description\": \"\",\n \"website\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"editable_metadata\": false,\n \"extra_metadata\": []\n },\n \"allocations\": [],\n \"vesting\": []\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>"
}
}
],
"predicted_token_address": "<string>",
"suite_id": "<string>",
"metadata_uri": "<string>",
"image_url": "<string>",
"review": {
"token": {
"name": "<string>",
"symbol": "<string>",
"editable_metadata": true,
"extra_metadata": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"quote_address": "<string>",
"total_supply_raw": "<string>",
"pool_supply_raw": "<string>",
"allocations": [
{
"recipient": "<string>",
"amount_raw": "<string>"
}
],
"vesting": [
{
"beneficiary": "<string>",
"amount_raw": "<string>",
"steps": [
{
"delay_seconds": 86401,
"cumulative_bps": 5000,
"cumulative_amount_raw": "<string>"
}
]
}
]
},
"creation_fee": {
"amount_raw": "<string>",
"currency_address": "<string>",
"decimals": 127,
"symbol": "<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>"
}Launches
Prepare a launch
Validate inputs, pin metadata, mine an 01 address, simulate, and return unsigned wallet steps when the active route has a registered selectable quote.
POST
/
launches
/
prepare
Prepare a launch
curl --request POST \
--url https://api.launch.o1.exchange/v1/launches/prepare \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"creator": "<string>",
"quote_address": "<string>",
"token": {
"name": "<string>",
"symbol": "<string>",
"image_base64": "<string>",
"description": "",
"website": "<string>",
"x": "<string>",
"telegram": "<string>",
"editable_metadata": false,
"extra_metadata": []
},
"allocations": [],
"vesting": []
}
'import requests
url = "https://api.launch.o1.exchange/v1/launches/prepare"
payload = {
"creator": "<string>",
"quote_address": "<string>",
"token": {
"name": "<string>",
"symbol": "<string>",
"image_base64": "<string>",
"description": "",
"website": "<string>",
"x": "<string>",
"telegram": "<string>",
"editable_metadata": False,
"extra_metadata": []
},
"allocations": [],
"vesting": []
}
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({
creator: '<string>',
quote_address: '<string>',
token: {
name: '<string>',
symbol: '<string>',
image_base64: '<string>',
description: '',
website: '<string>',
x: '<string>',
telegram: '<string>',
editable_metadata: false,
extra_metadata: []
},
allocations: [],
vesting: []
})
};
fetch('https://api.launch.o1.exchange/v1/launches/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/launches/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([
'creator' => '<string>',
'quote_address' => '<string>',
'token' => [
'name' => '<string>',
'symbol' => '<string>',
'image_base64' => '<string>',
'description' => '',
'website' => '<string>',
'x' => '<string>',
'telegram' => '<string>',
'editable_metadata' => false,
'extra_metadata' => [
]
],
'allocations' => [
],
'vesting' => [
]
]),
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/launches/prepare"
payload := strings.NewReader("{\n \"creator\": \"<string>\",\n \"quote_address\": \"<string>\",\n \"token\": {\n \"name\": \"<string>\",\n \"symbol\": \"<string>\",\n \"image_base64\": \"<string>\",\n \"description\": \"\",\n \"website\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"editable_metadata\": false,\n \"extra_metadata\": []\n },\n \"allocations\": [],\n \"vesting\": []\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/launches/prepare")
.header("Idempotency-Key", "<idempotency-key>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"creator\": \"<string>\",\n \"quote_address\": \"<string>\",\n \"token\": {\n \"name\": \"<string>\",\n \"symbol\": \"<string>\",\n \"image_base64\": \"<string>\",\n \"description\": \"\",\n \"website\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"editable_metadata\": false,\n \"extra_metadata\": []\n },\n \"allocations\": [],\n \"vesting\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launch.o1.exchange/v1/launches/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 \"creator\": \"<string>\",\n \"quote_address\": \"<string>\",\n \"token\": {\n \"name\": \"<string>\",\n \"symbol\": \"<string>\",\n \"image_base64\": \"<string>\",\n \"description\": \"\",\n \"website\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"editable_metadata\": false,\n \"extra_metadata\": []\n },\n \"allocations\": [],\n \"vesting\": []\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>"
}
}
],
"predicted_token_address": "<string>",
"suite_id": "<string>",
"metadata_uri": "<string>",
"image_url": "<string>",
"review": {
"token": {
"name": "<string>",
"symbol": "<string>",
"editable_metadata": true,
"extra_metadata": [
{
"key": "<string>",
"value": "<string>"
}
]
},
"quote_address": "<string>",
"total_supply_raw": "<string>",
"pool_supply_raw": "<string>",
"allocations": [
{
"recipient": "<string>",
"amount_raw": "<string>"
}
],
"vesting": [
{
"beneficiary": "<string>",
"amount_raw": "<string>",
"steps": [
{
"delay_seconds": 86401,
"cumulative_bps": 5000,
"cumulative_amount_raw": "<string>"
}
]
}
]
},
"creation_fee": {
"amount_raw": "<string>",
"currency_address": "<string>",
"decimals": 127,
"symbol": "<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>"
}Authorizations
Production API key beginning with o1_launch_.
Headers
Unique key for safely retrying this operation. Reusing it with different input is rejected.
Required string length:
1 - 255Body
application/json
Available options:
8453, 4663 Example:
8453
Pattern:
^0x[0-9a-fA-F]{40}$Example:
"0x1111111111111111111111111111111111111111"
Available options:
standard, rwa Pattern:
^0x[0-9a-fA-F]{40}$Example:
"0x1111111111111111111111111111111111111111"
Show child attributes
Show child attributes
Maximum array length:
128Show child attributes
Show child attributes
Maximum array length:
64Show child attributes
Show child attributes
⌘I
