curl --request POST \
--url https://v1.orchestrator.rhinestone.dev/deposit-processor/deposits/permit \
--header 'Content-Type: application/json' \
--data '
{
"account": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sourceChain": "eip155:8453",
"token": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"amount": "1000000000000000000",
"owner": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"signature": "0x1234abcd",
"kind": "erc3009",
"nonce": "0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f",
"validAfter": "1000000000000000000",
"validBefore": "1000000000000000000"
}
'import requests
url = "https://v1.orchestrator.rhinestone.dev/deposit-processor/deposits/permit"
payload = {
"account": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sourceChain": "eip155:8453",
"token": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"amount": "1000000000000000000",
"owner": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"signature": "0x1234abcd",
"kind": "erc3009",
"nonce": "0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f",
"validAfter": "1000000000000000000",
"validBefore": "1000000000000000000"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
account: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
sourceChain: 'eip155:8453',
token: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
amount: '1000000000000000000',
owner: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
signature: '0x1234abcd',
kind: 'erc3009',
nonce: '0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f',
validAfter: '1000000000000000000',
validBefore: '1000000000000000000'
})
};
fetch('https://v1.orchestrator.rhinestone.dev/deposit-processor/deposits/permit', 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/deposits/permit",
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([
'account' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'sourceChain' => 'eip155:8453',
'token' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'amount' => '1000000000000000000',
'owner' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'signature' => '0x1234abcd',
'kind' => 'erc3009',
'nonce' => '0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f',
'validAfter' => '1000000000000000000',
'validBefore' => '1000000000000000000'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/deposits/permit"
payload := strings.NewReader("{\n \"account\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sourceChain\": \"eip155:8453\",\n \"token\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"amount\": \"1000000000000000000\",\n \"owner\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"signature\": \"0x1234abcd\",\n \"kind\": \"erc3009\",\n \"nonce\": \"0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f\",\n \"validAfter\": \"1000000000000000000\",\n \"validBefore\": \"1000000000000000000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/deposits/permit")
.header("Content-Type", "application/json")
.body("{\n \"account\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sourceChain\": \"eip155:8453\",\n \"token\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"amount\": \"1000000000000000000\",\n \"owner\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"signature\": \"0x1234abcd\",\n \"kind\": \"erc3009\",\n \"nonce\": \"0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f\",\n \"validAfter\": \"1000000000000000000\",\n \"validBefore\": \"1000000000000000000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/deposit-processor/deposits/permit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"account\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sourceChain\": \"eip155:8453\",\n \"token\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"amount\": \"1000000000000000000\",\n \"owner\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"signature\": \"0x1234abcd\",\n \"kind\": \"erc3009\",\n \"nonce\": \"0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f\",\n \"validAfter\": \"1000000000000000000\",\n \"validBefore\": \"1000000000000000000\"\n}"
response = http.request(request)
puts response.read_body{
"depositId": "<string>",
"txHash": "0x1234abcd",
"status": "processing"
}{
"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>"
}
]
}{
"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>"
}
]
}Submit a gasless deposit
Starts a deposit using a signed token authorization. Experimental.
curl --request POST \
--url https://v1.orchestrator.rhinestone.dev/deposit-processor/deposits/permit \
--header 'Content-Type: application/json' \
--data '
{
"account": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sourceChain": "eip155:8453",
"token": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"amount": "1000000000000000000",
"owner": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"signature": "0x1234abcd",
"kind": "erc3009",
"nonce": "0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f",
"validAfter": "1000000000000000000",
"validBefore": "1000000000000000000"
}
'import requests
url = "https://v1.orchestrator.rhinestone.dev/deposit-processor/deposits/permit"
payload = {
"account": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sourceChain": "eip155:8453",
"token": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"amount": "1000000000000000000",
"owner": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"signature": "0x1234abcd",
"kind": "erc3009",
"nonce": "0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f",
"validAfter": "1000000000000000000",
"validBefore": "1000000000000000000"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
account: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
sourceChain: 'eip155:8453',
token: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
amount: '1000000000000000000',
owner: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
signature: '0x1234abcd',
kind: 'erc3009',
nonce: '0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f',
validAfter: '1000000000000000000',
validBefore: '1000000000000000000'
})
};
fetch('https://v1.orchestrator.rhinestone.dev/deposit-processor/deposits/permit', 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/deposits/permit",
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([
'account' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'sourceChain' => 'eip155:8453',
'token' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'amount' => '1000000000000000000',
'owner' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'signature' => '0x1234abcd',
'kind' => 'erc3009',
'nonce' => '0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f',
'validAfter' => '1000000000000000000',
'validBefore' => '1000000000000000000'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/deposits/permit"
payload := strings.NewReader("{\n \"account\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sourceChain\": \"eip155:8453\",\n \"token\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"amount\": \"1000000000000000000\",\n \"owner\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"signature\": \"0x1234abcd\",\n \"kind\": \"erc3009\",\n \"nonce\": \"0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f\",\n \"validAfter\": \"1000000000000000000\",\n \"validBefore\": \"1000000000000000000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/deposits/permit")
.header("Content-Type", "application/json")
.body("{\n \"account\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sourceChain\": \"eip155:8453\",\n \"token\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"amount\": \"1000000000000000000\",\n \"owner\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"signature\": \"0x1234abcd\",\n \"kind\": \"erc3009\",\n \"nonce\": \"0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f\",\n \"validAfter\": \"1000000000000000000\",\n \"validBefore\": \"1000000000000000000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/deposit-processor/deposits/permit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"account\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sourceChain\": \"eip155:8453\",\n \"token\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"amount\": \"1000000000000000000\",\n \"owner\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"signature\": \"0x1234abcd\",\n \"kind\": \"erc3009\",\n \"nonce\": \"0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f\",\n \"validAfter\": \"1000000000000000000\",\n \"validBefore\": \"1000000000000000000\"\n}"
response = http.request(request)
puts response.read_body{
"depositId": "<string>",
"txHash": "0x1234abcd",
"status": "processing"
}{
"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>"
}
]
}{
"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 (omit when sending Authorization)
"your-api-key"
Bearer platform token (e.g. forwarded by user-service). Takes precedence over x-api-key when both are present.
"Bearer eyJhbGciOi..."
Body
- Option 1
- Option 2
- Option 3
Ethereum address (0x followed by 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
CAIP-2 chain identifier (e.g. "eip155:8453")
^[a-z0-9]+:[a-zA-Z0-9]+$"eip155:8453"
Ethereum address (0x followed by 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
Numeric string representing a bigint value
^\d+$"1000000000000000000"
Ethereum address (0x followed by 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
Hex-encoded string (0x followed by hex characters)
^0x[a-fA-F0-9]+$"0x1234abcd"
erc3009 ERC-3009 bytes32 authorization nonce
^0x[a-fA-F0-9]{64}$"0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f"
Numeric string representing a bigint value
^\d+$"1000000000000000000"
Numeric string representing a bigint value
^\d+$"1000000000000000000"
Was this page helpful?