Prepare fee claims
curl --request POST \
--url https://api.launch.o1.exchange/v1/claims/fees/prepare \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"chain_id": 8453,
"caller": "0x1111111111111111111111111111111111111111",
"claims": [
{
"recipient": "0x1111111111111111111111111111111111111111",
"fee_escrow": "0x2222222222222222222222222222222222222222",
"currency": "0x0000000000000000000000000000000000000000",
"mode": "to_recipient"
}
]
}
'import requests
url = "https://api.launch.o1.exchange/v1/claims/fees/prepare"
payload = {
"chain_id": 8453,
"caller": "0x1111111111111111111111111111111111111111",
"claims": [
{
"recipient": "0x1111111111111111111111111111111111111111",
"fee_escrow": "0x2222222222222222222222222222222222222222",
"currency": "0x0000000000000000000000000000000000000000",
"mode": "to_recipient"
}
]
}
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({
chain_id: 8453,
caller: '0x1111111111111111111111111111111111111111',
claims: [
{
recipient: '0x1111111111111111111111111111111111111111',
fee_escrow: '0x2222222222222222222222222222222222222222',
currency: '0x0000000000000000000000000000000000000000',
mode: 'to_recipient'
}
]
})
};
fetch('https://api.launch.o1.exchange/v1/claims/fees/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/claims/fees/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([
'chain_id' => 8453,
'caller' => '0x1111111111111111111111111111111111111111',
'claims' => [
[
'recipient' => '0x1111111111111111111111111111111111111111',
'fee_escrow' => '0x2222222222222222222222222222222222222222',
'currency' => '0x0000000000000000000000000000000000000000',
'mode' => 'to_recipient'
]
]
]),
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/claims/fees/prepare"
payload := strings.NewReader("{\n \"chain_id\": 8453,\n \"caller\": \"0x1111111111111111111111111111111111111111\",\n \"claims\": [\n {\n \"recipient\": \"0x1111111111111111111111111111111111111111\",\n \"fee_escrow\": \"0x2222222222222222222222222222222222222222\",\n \"currency\": \"0x0000000000000000000000000000000000000000\",\n \"mode\": \"to_recipient\"\n }\n ]\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/claims/fees/prepare")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chain_id\": 8453,\n \"caller\": \"0x1111111111111111111111111111111111111111\",\n \"claims\": [\n {\n \"recipient\": \"0x1111111111111111111111111111111111111111\",\n \"fee_escrow\": \"0x2222222222222222222222222222222222222222\",\n \"currency\": \"0x0000000000000000000000000000000000000000\",\n \"mode\": \"to_recipient\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launch.o1.exchange/v1/claims/fees/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 \"chain_id\": 8453,\n \"caller\": \"0x1111111111111111111111111111111111111111\",\n \"claims\": [\n {\n \"recipient\": \"0x1111111111111111111111111111111111111111\",\n \"fee_escrow\": \"0x2222222222222222222222222222222222222222\",\n \"currency\": \"0x0000000000000000000000000000000000000000\",\n \"mode\": \"to_recipient\"\n }\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": {
"claims": [
{
"kind": "<string>",
"recipient": "<string>",
"destination": "<string>",
"fee_escrow": "<string>",
"currency": "<string>",
"claimable_raw": "<string>",
"step_id": "<string>"
}
],
"atomic": false
}
},
"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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<string>"
}Claims
Prepare fee claims
Verify fee-claim positions and return one independent unsigned transaction per position.
POST
/
claims
/
fees
/
prepare
Prepare fee claims
curl --request POST \
--url https://api.launch.o1.exchange/v1/claims/fees/prepare \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"chain_id": 8453,
"caller": "0x1111111111111111111111111111111111111111",
"claims": [
{
"recipient": "0x1111111111111111111111111111111111111111",
"fee_escrow": "0x2222222222222222222222222222222222222222",
"currency": "0x0000000000000000000000000000000000000000",
"mode": "to_recipient"
}
]
}
'import requests
url = "https://api.launch.o1.exchange/v1/claims/fees/prepare"
payload = {
"chain_id": 8453,
"caller": "0x1111111111111111111111111111111111111111",
"claims": [
{
"recipient": "0x1111111111111111111111111111111111111111",
"fee_escrow": "0x2222222222222222222222222222222222222222",
"currency": "0x0000000000000000000000000000000000000000",
"mode": "to_recipient"
}
]
}
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({
chain_id: 8453,
caller: '0x1111111111111111111111111111111111111111',
claims: [
{
recipient: '0x1111111111111111111111111111111111111111',
fee_escrow: '0x2222222222222222222222222222222222222222',
currency: '0x0000000000000000000000000000000000000000',
mode: 'to_recipient'
}
]
})
};
fetch('https://api.launch.o1.exchange/v1/claims/fees/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/claims/fees/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([
'chain_id' => 8453,
'caller' => '0x1111111111111111111111111111111111111111',
'claims' => [
[
'recipient' => '0x1111111111111111111111111111111111111111',
'fee_escrow' => '0x2222222222222222222222222222222222222222',
'currency' => '0x0000000000000000000000000000000000000000',
'mode' => 'to_recipient'
]
]
]),
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/claims/fees/prepare"
payload := strings.NewReader("{\n \"chain_id\": 8453,\n \"caller\": \"0x1111111111111111111111111111111111111111\",\n \"claims\": [\n {\n \"recipient\": \"0x1111111111111111111111111111111111111111\",\n \"fee_escrow\": \"0x2222222222222222222222222222222222222222\",\n \"currency\": \"0x0000000000000000000000000000000000000000\",\n \"mode\": \"to_recipient\"\n }\n ]\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/claims/fees/prepare")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chain_id\": 8453,\n \"caller\": \"0x1111111111111111111111111111111111111111\",\n \"claims\": [\n {\n \"recipient\": \"0x1111111111111111111111111111111111111111\",\n \"fee_escrow\": \"0x2222222222222222222222222222222222222222\",\n \"currency\": \"0x0000000000000000000000000000000000000000\",\n \"mode\": \"to_recipient\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launch.o1.exchange/v1/claims/fees/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 \"chain_id\": 8453,\n \"caller\": \"0x1111111111111111111111111111111111111111\",\n \"claims\": [\n {\n \"recipient\": \"0x1111111111111111111111111111111111111111\",\n \"fee_escrow\": \"0x2222222222222222222222222222222222222222\",\n \"currency\": \"0x0000000000000000000000000000000000000000\",\n \"mode\": \"to_recipient\"\n }\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": {
"claims": [
{
"kind": "<string>",
"recipient": "<string>",
"destination": "<string>",
"fee_escrow": "<string>",
"currency": "<string>",
"claimable_raw": "<string>",
"step_id": "<string>"
}
],
"atomic": false
}
},
"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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<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>",
"asset": "<string>",
"actual_raw": "<string>",
"required_raw": "<string>"
}Authorizations
Production API key beginning with o1_launch_.
Body
application/json
Production chain ID: 8453 for Base or 4663 for Robinhood Chain.
Available options:
8453, 4663 Example:
8453
Wallet sending the returned transactions. It must equal recipient only when mode is redirect.
Pattern:
^0x[0-9a-fA-F]{40}$Example:
"0x1111111111111111111111111111111111111111"
One to 10 distinct creator, platform, or referral fee positions. Each item returns an independent transaction.
Required array length:
1 - 10 elementsShow child attributes
Show child attributes
⌘I
