curl --request POST \
--url https://v1.orchestrator.rhinestone.dev/deposit-processor/setup-account \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"ownerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sessionOwnerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"targetToken": "<string>",
"targetChain": "eip155:8453",
"recipient": "<string>",
"outputTokenRules": [
{
"match": {
"symbol": "USDC"
},
"outputToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
],
"rejectUnmapped": true,
"postBridgeActions": "<unknown>",
"signerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sessionChainIds": [
123
],
"forceRegister": true
}
'import requests
url = "https://v1.orchestrator.rhinestone.dev/deposit-processor/setup-account"
payload = {
"ownerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sessionOwnerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"targetToken": "<string>",
"targetChain": "eip155:8453",
"recipient": "<string>",
"outputTokenRules": [
{
"match": { "symbol": "USDC" },
"outputToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
],
"rejectUnmapped": True,
"postBridgeActions": "<unknown>",
"signerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sessionChainIds": [123],
"forceRegister": True
}
headers = {
"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-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ownerAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
sessionOwnerAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
targetToken: '<string>',
targetChain: 'eip155:8453',
recipient: '<string>',
outputTokenRules: [
{
match: {symbol: 'USDC'},
outputToken: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
}
],
rejectUnmapped: true,
postBridgeActions: '<unknown>',
signerAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
sessionChainIds: [123],
forceRegister: true
})
};
fetch('https://v1.orchestrator.rhinestone.dev/deposit-processor/setup-account', 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/deposit-processor/setup-account",
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([
'ownerAddress' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'sessionOwnerAddress' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'targetToken' => '<string>',
'targetChain' => 'eip155:8453',
'recipient' => '<string>',
'outputTokenRules' => [
[
'match' => [
'symbol' => 'USDC'
],
'outputToken' => '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
]
],
'rejectUnmapped' => true,
'postBridgeActions' => '<unknown>',
'signerAddress' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'sessionChainIds' => [
123
],
'forceRegister' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-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://v1.orchestrator.rhinestone.dev/deposit-processor/setup-account"
payload := strings.NewReader("{\n \"ownerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sessionOwnerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"targetToken\": \"<string>\",\n \"targetChain\": \"eip155:8453\",\n \"recipient\": \"<string>\",\n \"outputTokenRules\": [\n {\n \"match\": {\n \"symbol\": \"USDC\"\n },\n \"outputToken\": \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\"\n }\n ],\n \"rejectUnmapped\": true,\n \"postBridgeActions\": \"<unknown>\",\n \"signerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sessionChainIds\": [\n 123\n ],\n \"forceRegister\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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/deposit-processor/setup-account")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ownerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sessionOwnerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"targetToken\": \"<string>\",\n \"targetChain\": \"eip155:8453\",\n \"recipient\": \"<string>\",\n \"outputTokenRules\": [\n {\n \"match\": {\n \"symbol\": \"USDC\"\n },\n \"outputToken\": \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\"\n }\n ],\n \"rejectUnmapped\": true,\n \"postBridgeActions\": \"<unknown>\",\n \"signerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sessionChainIds\": [\n 123\n ],\n \"forceRegister\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/deposit-processor/setup-account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ownerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sessionOwnerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"targetToken\": \"<string>\",\n \"targetChain\": \"eip155:8453\",\n \"recipient\": \"<string>\",\n \"outputTokenRules\": [\n {\n \"match\": {\n \"symbol\": \"USDC\"\n },\n \"outputToken\": \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\"\n }\n ],\n \"rejectUnmapped\": true,\n \"postBridgeActions\": \"<unknown>\",\n \"signerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sessionChainIds\": [\n 123\n ],\n \"forceRegister\": true\n}"
response = http.request(request)
puts response.read_body{
"smartAccount": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"isRegistered": true,
"needsRegistration": true,
"targetChain": "<string>",
"targetToken": "<string>",
"solanaDepositAddress": "<string>",
"accountParams": {
"factory": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"factoryData": "0x1234abcd"
},
"sessionDetailsUnsigned": {
"hashesAndChainIds": [
{
"chainId": "<string>",
"sessionDigest": "0x1234abcd"
}
],
"data": {}
}
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}Prepare account for registration
Derive the Rhinestone smart account for (ownerAddress, sessionOwnerAddress), compare against the existing registration and target, and return either the Solana deposit address (if no re-registration is needed) or the unsigned session details and factory parameters the client must sign before calling /register.
curl --request POST \
--url https://v1.orchestrator.rhinestone.dev/deposit-processor/setup-account \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"ownerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sessionOwnerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"targetToken": "<string>",
"targetChain": "eip155:8453",
"recipient": "<string>",
"outputTokenRules": [
{
"match": {
"symbol": "USDC"
},
"outputToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
],
"rejectUnmapped": true,
"postBridgeActions": "<unknown>",
"signerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sessionChainIds": [
123
],
"forceRegister": true
}
'import requests
url = "https://v1.orchestrator.rhinestone.dev/deposit-processor/setup-account"
payload = {
"ownerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sessionOwnerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"targetToken": "<string>",
"targetChain": "eip155:8453",
"recipient": "<string>",
"outputTokenRules": [
{
"match": { "symbol": "USDC" },
"outputToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
],
"rejectUnmapped": True,
"postBridgeActions": "<unknown>",
"signerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sessionChainIds": [123],
"forceRegister": True
}
headers = {
"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-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ownerAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
sessionOwnerAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
targetToken: '<string>',
targetChain: 'eip155:8453',
recipient: '<string>',
outputTokenRules: [
{
match: {symbol: 'USDC'},
outputToken: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
}
],
rejectUnmapped: true,
postBridgeActions: '<unknown>',
signerAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
sessionChainIds: [123],
forceRegister: true
})
};
fetch('https://v1.orchestrator.rhinestone.dev/deposit-processor/setup-account', 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/deposit-processor/setup-account",
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([
'ownerAddress' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'sessionOwnerAddress' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'targetToken' => '<string>',
'targetChain' => 'eip155:8453',
'recipient' => '<string>',
'outputTokenRules' => [
[
'match' => [
'symbol' => 'USDC'
],
'outputToken' => '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
]
],
'rejectUnmapped' => true,
'postBridgeActions' => '<unknown>',
'signerAddress' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'sessionChainIds' => [
123
],
'forceRegister' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-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://v1.orchestrator.rhinestone.dev/deposit-processor/setup-account"
payload := strings.NewReader("{\n \"ownerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sessionOwnerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"targetToken\": \"<string>\",\n \"targetChain\": \"eip155:8453\",\n \"recipient\": \"<string>\",\n \"outputTokenRules\": [\n {\n \"match\": {\n \"symbol\": \"USDC\"\n },\n \"outputToken\": \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\"\n }\n ],\n \"rejectUnmapped\": true,\n \"postBridgeActions\": \"<unknown>\",\n \"signerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sessionChainIds\": [\n 123\n ],\n \"forceRegister\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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/deposit-processor/setup-account")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ownerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sessionOwnerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"targetToken\": \"<string>\",\n \"targetChain\": \"eip155:8453\",\n \"recipient\": \"<string>\",\n \"outputTokenRules\": [\n {\n \"match\": {\n \"symbol\": \"USDC\"\n },\n \"outputToken\": \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\"\n }\n ],\n \"rejectUnmapped\": true,\n \"postBridgeActions\": \"<unknown>\",\n \"signerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sessionChainIds\": [\n 123\n ],\n \"forceRegister\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/deposit-processor/setup-account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ownerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sessionOwnerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"targetToken\": \"<string>\",\n \"targetChain\": \"eip155:8453\",\n \"recipient\": \"<string>\",\n \"outputTokenRules\": [\n {\n \"match\": {\n \"symbol\": \"USDC\"\n },\n \"outputToken\": \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\"\n }\n ],\n \"rejectUnmapped\": true,\n \"postBridgeActions\": \"<unknown>\",\n \"signerAddress\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sessionChainIds\": [\n 123\n ],\n \"forceRegister\": true\n}"
response = http.request(request)
puts response.read_body{
"smartAccount": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"isRegistered": true,
"needsRegistration": true,
"targetChain": "<string>",
"targetToken": "<string>",
"solanaDepositAddress": "<string>",
"accountParams": {
"factory": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"factoryData": "0x1234abcd"
},
"sessionDetailsUnsigned": {
"hashesAndChainIds": [
{
"chainId": "<string>",
"sessionDigest": "0x1234abcd"
}
],
"data": {}
}
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}Headers
API key for authentication
"your-api-key"
API version identifier (e.g. "2026-04.amazon"). Optional today, will become required in a future release.
^\d{4}-\d{2}\.[a-z0-9]+$"2026-04.amazon"
Body
Ethereum address (0x followed by 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
Ethereum address (0x followed by 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
1Chain identifier as a positive integer or CAIP-2 string (e.g. "eip155:8453")
x > 0"eip155:8453"
Show child attributes
Show child attributes
Ethereum address (0x followed by 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
Response
Account setup result
Ethereum address (0x followed by 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?