Submit an EIP-3009 authorization to be batched
curl --request POST \
--url https://gateway-api-testnet.circle.com/v1/batch/submit \
--header 'Content-Type: application/json' \
--data '
{
"token": "USDC",
"sendingDomain": 123,
"recipientDomain": 123,
"auth": {
"eip3009Auth": {
"from": "<string>",
"to": "<string>",
"value": "1000000",
"validAfter": "<string>",
"validBefore": "<string>",
"nonce": "<string>",
"signature": "<string>"
}
}
}
'import requests
url = "https://gateway-api-testnet.circle.com/v1/batch/submit"
payload = {
"token": "USDC",
"sendingDomain": 123,
"recipientDomain": 123,
"auth": { "eip3009Auth": {
"from": "<string>",
"to": "<string>",
"value": "1000000",
"validAfter": "<string>",
"validBefore": "<string>",
"nonce": "<string>",
"signature": "<string>"
} }
}
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({
token: 'USDC',
sendingDomain: 123,
recipientDomain: 123,
auth: {
eip3009Auth: {
from: '<string>',
to: '<string>',
value: '1000000',
validAfter: '<string>',
validBefore: '<string>',
nonce: '<string>',
signature: '<string>'
}
}
})
};
fetch('https://gateway-api-testnet.circle.com/v1/batch/submit', 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://gateway-api-testnet.circle.com/v1/batch/submit",
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([
'token' => 'USDC',
'sendingDomain' => 123,
'recipientDomain' => 123,
'auth' => [
'eip3009Auth' => [
'from' => '<string>',
'to' => '<string>',
'value' => '1000000',
'validAfter' => '<string>',
'validBefore' => '<string>',
'nonce' => '<string>',
'signature' => '<string>'
]
]
]),
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://gateway-api-testnet.circle.com/v1/batch/submit"
payload := strings.NewReader("{\n \"token\": \"USDC\",\n \"sendingDomain\": 123,\n \"recipientDomain\": 123,\n \"auth\": {\n \"eip3009Auth\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000\",\n \"validAfter\": \"<string>\",\n \"validBefore\": \"<string>\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n }\n }\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://gateway-api-testnet.circle.com/v1/batch/submit")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"USDC\",\n \"sendingDomain\": 123,\n \"recipientDomain\": 123,\n \"auth\": {\n \"eip3009Auth\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000\",\n \"validAfter\": \"<string>\",\n \"validBefore\": \"<string>\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway-api-testnet.circle.com/v1/batch/submit")
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 \"token\": \"USDC\",\n \"sendingDomain\": 123,\n \"recipientDomain\": 123,\n \"auth\": {\n \"eip3009Auth\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000\",\n \"validAfter\": \"<string>\",\n \"validBefore\": \"<string>\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Submit an EIP-3009 authorization to be batched
Submit a single-chain transfer authorization using EIP-3009 signature. The authorization will be verified, the sender’s balance locked, and the transaction queued for batch processing.
POST
/
v1
/
batch
/
submit
Submit an EIP-3009 authorization to be batched
curl --request POST \
--url https://gateway-api-testnet.circle.com/v1/batch/submit \
--header 'Content-Type: application/json' \
--data '
{
"token": "USDC",
"sendingDomain": 123,
"recipientDomain": 123,
"auth": {
"eip3009Auth": {
"from": "<string>",
"to": "<string>",
"value": "1000000",
"validAfter": "<string>",
"validBefore": "<string>",
"nonce": "<string>",
"signature": "<string>"
}
}
}
'import requests
url = "https://gateway-api-testnet.circle.com/v1/batch/submit"
payload = {
"token": "USDC",
"sendingDomain": 123,
"recipientDomain": 123,
"auth": { "eip3009Auth": {
"from": "<string>",
"to": "<string>",
"value": "1000000",
"validAfter": "<string>",
"validBefore": "<string>",
"nonce": "<string>",
"signature": "<string>"
} }
}
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({
token: 'USDC',
sendingDomain: 123,
recipientDomain: 123,
auth: {
eip3009Auth: {
from: '<string>',
to: '<string>',
value: '1000000',
validAfter: '<string>',
validBefore: '<string>',
nonce: '<string>',
signature: '<string>'
}
}
})
};
fetch('https://gateway-api-testnet.circle.com/v1/batch/submit', 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://gateway-api-testnet.circle.com/v1/batch/submit",
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([
'token' => 'USDC',
'sendingDomain' => 123,
'recipientDomain' => 123,
'auth' => [
'eip3009Auth' => [
'from' => '<string>',
'to' => '<string>',
'value' => '1000000',
'validAfter' => '<string>',
'validBefore' => '<string>',
'nonce' => '<string>',
'signature' => '<string>'
]
]
]),
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://gateway-api-testnet.circle.com/v1/batch/submit"
payload := strings.NewReader("{\n \"token\": \"USDC\",\n \"sendingDomain\": 123,\n \"recipientDomain\": 123,\n \"auth\": {\n \"eip3009Auth\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000\",\n \"validAfter\": \"<string>\",\n \"validBefore\": \"<string>\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n }\n }\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://gateway-api-testnet.circle.com/v1/batch/submit")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"USDC\",\n \"sendingDomain\": 123,\n \"recipientDomain\": 123,\n \"auth\": {\n \"eip3009Auth\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000\",\n \"validAfter\": \"<string>\",\n \"validBefore\": \"<string>\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway-api-testnet.circle.com/v1/batch/submit")
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 \"token\": \"USDC\",\n \"sendingDomain\": 123,\n \"recipientDomain\": 123,\n \"auth\": {\n \"eip3009Auth\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000\",\n \"validAfter\": \"<string>\",\n \"validBefore\": \"<string>\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Body
application/json
Token type for the transfer.
Available options:
USDC Source domain (must equal recipientDomain for same-chain transfers).
Destination domain (must equal sendingDomain for same-chain transfers).
Authorization data containing the EIP-3009 signature.
Show child attributes
Show child attributes
Response
Successfully submitted batch transaction
Unique identifier for the submitted batch transaction.
Was this page helpful?
⌘I