Split Intent by Liquidity
curl --request POST \
--url https://v1.orchestrator.rhinestone.dev/intents/splits \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-version: <x-api-version>' \
--data '
{
"chainId": "eip155:42161",
"tokens": {
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": "5000000000000"
},
"settlementLayers": {
"exclude": [
"RELAY"
]
}
}
'import requests
url = "https://v1.orchestrator.rhinestone.dev/intents/splits"
payload = {
"chainId": "eip155:42161",
"tokens": { "0xaf88d065e77c8cc2239327c5edb3a432268e5831": "5000000000000" },
"settlementLayers": { "exclude": ["RELAY"] }
}
headers = {
"x-api-version": "<x-api-version>",
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-version': '<x-api-version>',
'x-api-key': '<x-api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
chainId: 'eip155:42161',
tokens: {'0xaf88d065e77c8cc2239327c5edb3a432268e5831': '5000000000000'},
settlementLayers: {exclude: ['RELAY']}
})
};
fetch('https://v1.orchestrator.rhinestone.dev/intents/splits', 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://v1.orchestrator.rhinestone.dev/intents/splits",
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([
'chainId' => 'eip155:42161',
'tokens' => [
'0xaf88d065e77c8cc2239327c5edb3a432268e5831' => '5000000000000'
],
'settlementLayers' => [
'exclude' => [
'RELAY'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>",
"x-api-version: <x-api-version>"
],
]);
$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://v1.orchestrator.rhinestone.dev/intents/splits"
payload := strings.NewReader("{\n \"chainId\": \"eip155:42161\",\n \"tokens\": {\n \"0xaf88d065e77c8cc2239327c5edb3a432268e5831\": \"5000000000000\"\n },\n \"settlementLayers\": {\n \"exclude\": [\n \"RELAY\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-version", "<x-api-version>")
req.Header.Add("x-api-key", "<x-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://v1.orchestrator.rhinestone.dev/intents/splits")
.header("x-api-version", "<x-api-version>")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chainId\": \"eip155:42161\",\n \"tokens\": {\n \"0xaf88d065e77c8cc2239327c5edb3a432268e5831\": \"5000000000000\"\n },\n \"settlementLayers\": {\n \"exclude\": [\n \"RELAY\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/intents/splits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-version"] = '<x-api-version>'
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chainId\": \"eip155:42161\",\n \"tokens\": {\n \"0xaf88d065e77c8cc2239327c5edb3a432268e5831\": \"5000000000000\"\n },\n \"settlementLayers\": {\n \"exclude\": [\n \"RELAY\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"intents": [
{
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": "2400000000000"
},
{
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": "1700000000000"
},
{
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": "900000000000"
}
]
}{
"code": "VALIDATION_ERROR",
"message": "Invalid input",
"details": [
{
"message": "<string>",
"context": {}
}
]
}{
"code": "VALIDATION_ERROR",
"message": "Invalid input",
"details": [
{
"message": "<string>",
"context": {}
}
]
}{
"code": "INSUFFICIENT_LIQUIDITY",
"message": "Invalid input",
"details": {
"availableIntents": [
{}
],
"unfillable": {}
}
}{
"code": "VALIDATION_ERROR",
"message": "Invalid input",
"details": [
{
"message": "<string>",
"context": {}
}
]
}Intents
Split Intent by Liquidity
Splits token amounts into multiple intents based on available relayer liquidity. Each returned intent can be filled by a single relayer.
POST
/
intents
/
splits
Split Intent by Liquidity
curl --request POST \
--url https://v1.orchestrator.rhinestone.dev/intents/splits \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-version: <x-api-version>' \
--data '
{
"chainId": "eip155:42161",
"tokens": {
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": "5000000000000"
},
"settlementLayers": {
"exclude": [
"RELAY"
]
}
}
'import requests
url = "https://v1.orchestrator.rhinestone.dev/intents/splits"
payload = {
"chainId": "eip155:42161",
"tokens": { "0xaf88d065e77c8cc2239327c5edb3a432268e5831": "5000000000000" },
"settlementLayers": { "exclude": ["RELAY"] }
}
headers = {
"x-api-version": "<x-api-version>",
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-version': '<x-api-version>',
'x-api-key': '<x-api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
chainId: 'eip155:42161',
tokens: {'0xaf88d065e77c8cc2239327c5edb3a432268e5831': '5000000000000'},
settlementLayers: {exclude: ['RELAY']}
})
};
fetch('https://v1.orchestrator.rhinestone.dev/intents/splits', 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://v1.orchestrator.rhinestone.dev/intents/splits",
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([
'chainId' => 'eip155:42161',
'tokens' => [
'0xaf88d065e77c8cc2239327c5edb3a432268e5831' => '5000000000000'
],
'settlementLayers' => [
'exclude' => [
'RELAY'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>",
"x-api-version: <x-api-version>"
],
]);
$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://v1.orchestrator.rhinestone.dev/intents/splits"
payload := strings.NewReader("{\n \"chainId\": \"eip155:42161\",\n \"tokens\": {\n \"0xaf88d065e77c8cc2239327c5edb3a432268e5831\": \"5000000000000\"\n },\n \"settlementLayers\": {\n \"exclude\": [\n \"RELAY\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-version", "<x-api-version>")
req.Header.Add("x-api-key", "<x-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://v1.orchestrator.rhinestone.dev/intents/splits")
.header("x-api-version", "<x-api-version>")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chainId\": \"eip155:42161\",\n \"tokens\": {\n \"0xaf88d065e77c8cc2239327c5edb3a432268e5831\": \"5000000000000\"\n },\n \"settlementLayers\": {\n \"exclude\": [\n \"RELAY\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/intents/splits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-version"] = '<x-api-version>'
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chainId\": \"eip155:42161\",\n \"tokens\": {\n \"0xaf88d065e77c8cc2239327c5edb3a432268e5831\": \"5000000000000\"\n },\n \"settlementLayers\": {\n \"exclude\": [\n \"RELAY\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"intents": [
{
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": "2400000000000"
},
{
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": "1700000000000"
},
{
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": "900000000000"
}
]
}{
"code": "VALIDATION_ERROR",
"message": "Invalid input",
"details": [
{
"message": "<string>",
"context": {}
}
]
}{
"code": "VALIDATION_ERROR",
"message": "Invalid input",
"details": [
{
"message": "<string>",
"context": {}
}
]
}{
"code": "INSUFFICIENT_LIQUIDITY",
"message": "Invalid input",
"details": {
"availableIntents": [
{}
],
"unfillable": {}
}
}{
"code": "VALIDATION_ERROR",
"message": "Invalid input",
"details": [
{
"message": "<string>",
"context": {}
}
]
}Headers
API version. Required; pinned to this document.
Available options:
2026-04.blanc API key.
Body
application/json
The chain ID the intents settle on (CAIP-2)
Pattern:
^eip155:[0-9]{1,32}$Example:
"eip155:42161"
Map of token addresses to amounts
Show child attributes
Show child attributes
Example:
{
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": "5000000000000"
}
Which settlement layers the orchestrator may use. { include: [...] } (allow-list) or { exclude: [...] } (deny-list, inverted against the orchestrator's live layer set); a bare array means include. Internal modes (SAME_CHAIN, INTENT_EXECUTOR) are not selectable. Default unset = all layers eligible.
Available options:
ACROSS, ECO, RELAY, OFT, NEAR, RHINO, CCTP Example:
{ "exclude": ["RELAY"] }
Response
OK
Array of intents, each mapping token addresses to amounts that can be filled by a single relayer
Show child attributes
Show child attributes
Example:
[
{
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": "2400000000000"
},
{
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": "1700000000000"
},
{
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": "900000000000"
}
]
Was this page helpful?
⌘I