curl --request POST \
--url https://api.pods.finance/aa/send-user-operation \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"chainId": 137,
"userOperation": {
"sender": "0x1111111111111111111111111111111111111111",
"nonce": "0",
"initCode": "0x",
"callData": "0x...",
"callGasLimit": "200000",
"verificationGasLimit": "150000",
"preVerificationGas": "50000",
"maxFeePerGas": "1000000000",
"maxPriorityFeePerGas": "1000000000",
"paymasterAndData": "0x",
"signature": "0x..."
},
"entryPoint": "0xb794F5eA0ba39494cE839613fffBA74279579268"
}
'import requests
url = "https://api.pods.finance/aa/send-user-operation"
payload = {
"chainId": 137,
"userOperation": {
"sender": "0x1111111111111111111111111111111111111111",
"nonce": "0",
"initCode": "0x",
"callData": "0x...",
"callGasLimit": "200000",
"verificationGasLimit": "150000",
"preVerificationGas": "50000",
"maxFeePerGas": "1000000000",
"maxPriorityFeePerGas": "1000000000",
"paymasterAndData": "0x",
"signature": "0x..."
},
"entryPoint": "0xb794F5eA0ba39494cE839613fffBA74279579268"
}
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({
chainId: 137,
userOperation: {
sender: '0x1111111111111111111111111111111111111111',
nonce: '0',
initCode: '0x',
callData: '0x...',
callGasLimit: '200000',
verificationGasLimit: '150000',
preVerificationGas: '50000',
maxFeePerGas: '1000000000',
maxPriorityFeePerGas: '1000000000',
paymasterAndData: '0x',
signature: '0x...'
},
entryPoint: '0xb794F5eA0ba39494cE839613fffBA74279579268'
})
};
fetch('https://api.pods.finance/aa/send-user-operation', 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.pods.finance/aa/send-user-operation",
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' => 137,
'userOperation' => [
'sender' => '0x1111111111111111111111111111111111111111',
'nonce' => '0',
'initCode' => '0x',
'callData' => '0x...',
'callGasLimit' => '200000',
'verificationGasLimit' => '150000',
'preVerificationGas' => '50000',
'maxFeePerGas' => '1000000000',
'maxPriorityFeePerGas' => '1000000000',
'paymasterAndData' => '0x',
'signature' => '0x...'
],
'entryPoint' => '0xb794F5eA0ba39494cE839613fffBA74279579268'
]),
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.pods.finance/aa/send-user-operation"
payload := strings.NewReader("{\n \"chainId\": 137,\n \"userOperation\": {\n \"sender\": \"0x1111111111111111111111111111111111111111\",\n \"nonce\": \"0\",\n \"initCode\": \"0x\",\n \"callData\": \"0x...\",\n \"callGasLimit\": \"200000\",\n \"verificationGasLimit\": \"150000\",\n \"preVerificationGas\": \"50000\",\n \"maxFeePerGas\": \"1000000000\",\n \"maxPriorityFeePerGas\": \"1000000000\",\n \"paymasterAndData\": \"0x\",\n \"signature\": \"0x...\"\n },\n \"entryPoint\": \"0xb794F5eA0ba39494cE839613fffBA74279579268\"\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.pods.finance/aa/send-user-operation")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chainId\": 137,\n \"userOperation\": {\n \"sender\": \"0x1111111111111111111111111111111111111111\",\n \"nonce\": \"0\",\n \"initCode\": \"0x\",\n \"callData\": \"0x...\",\n \"callGasLimit\": \"200000\",\n \"verificationGasLimit\": \"150000\",\n \"preVerificationGas\": \"50000\",\n \"maxFeePerGas\": \"1000000000\",\n \"maxPriorityFeePerGas\": \"1000000000\",\n \"paymasterAndData\": \"0x\",\n \"signature\": \"0x...\"\n },\n \"entryPoint\": \"0xb794F5eA0ba39494cE839613fffBA74279579268\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pods.finance/aa/send-user-operation")
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 \"chainId\": 137,\n \"userOperation\": {\n \"sender\": \"0x1111111111111111111111111111111111111111\",\n \"nonce\": \"0\",\n \"initCode\": \"0x\",\n \"callData\": \"0x...\",\n \"callGasLimit\": \"200000\",\n \"verificationGasLimit\": \"150000\",\n \"preVerificationGas\": \"50000\",\n \"maxFeePerGas\": \"1000000000\",\n \"maxPriorityFeePerGas\": \"1000000000\",\n \"paymasterAndData\": \"0x\",\n \"signature\": \"0x...\"\n },\n \"entryPoint\": \"0xb794F5eA0ba39494cE839613fffBA74279579268\"\n}"
response = http.request(request)
puts response.read_body{
"userOpHash": "0xabc123..."
}{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}Send user operation
Submit a signed ERC-4337 v0.6 user operation to the bundler. Request the user operation payload from GET /v2/swap/quote or GET /strategies/:id/bytecode with output=userOperation, sign it, then send it here. Returns the bundler userOpHash. Only the v0.6 EntryPoint is supported.
curl --request POST \
--url https://api.pods.finance/aa/send-user-operation \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"chainId": 137,
"userOperation": {
"sender": "0x1111111111111111111111111111111111111111",
"nonce": "0",
"initCode": "0x",
"callData": "0x...",
"callGasLimit": "200000",
"verificationGasLimit": "150000",
"preVerificationGas": "50000",
"maxFeePerGas": "1000000000",
"maxPriorityFeePerGas": "1000000000",
"paymasterAndData": "0x",
"signature": "0x..."
},
"entryPoint": "0xb794F5eA0ba39494cE839613fffBA74279579268"
}
'import requests
url = "https://api.pods.finance/aa/send-user-operation"
payload = {
"chainId": 137,
"userOperation": {
"sender": "0x1111111111111111111111111111111111111111",
"nonce": "0",
"initCode": "0x",
"callData": "0x...",
"callGasLimit": "200000",
"verificationGasLimit": "150000",
"preVerificationGas": "50000",
"maxFeePerGas": "1000000000",
"maxPriorityFeePerGas": "1000000000",
"paymasterAndData": "0x",
"signature": "0x..."
},
"entryPoint": "0xb794F5eA0ba39494cE839613fffBA74279579268"
}
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({
chainId: 137,
userOperation: {
sender: '0x1111111111111111111111111111111111111111',
nonce: '0',
initCode: '0x',
callData: '0x...',
callGasLimit: '200000',
verificationGasLimit: '150000',
preVerificationGas: '50000',
maxFeePerGas: '1000000000',
maxPriorityFeePerGas: '1000000000',
paymasterAndData: '0x',
signature: '0x...'
},
entryPoint: '0xb794F5eA0ba39494cE839613fffBA74279579268'
})
};
fetch('https://api.pods.finance/aa/send-user-operation', 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.pods.finance/aa/send-user-operation",
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' => 137,
'userOperation' => [
'sender' => '0x1111111111111111111111111111111111111111',
'nonce' => '0',
'initCode' => '0x',
'callData' => '0x...',
'callGasLimit' => '200000',
'verificationGasLimit' => '150000',
'preVerificationGas' => '50000',
'maxFeePerGas' => '1000000000',
'maxPriorityFeePerGas' => '1000000000',
'paymasterAndData' => '0x',
'signature' => '0x...'
],
'entryPoint' => '0xb794F5eA0ba39494cE839613fffBA74279579268'
]),
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.pods.finance/aa/send-user-operation"
payload := strings.NewReader("{\n \"chainId\": 137,\n \"userOperation\": {\n \"sender\": \"0x1111111111111111111111111111111111111111\",\n \"nonce\": \"0\",\n \"initCode\": \"0x\",\n \"callData\": \"0x...\",\n \"callGasLimit\": \"200000\",\n \"verificationGasLimit\": \"150000\",\n \"preVerificationGas\": \"50000\",\n \"maxFeePerGas\": \"1000000000\",\n \"maxPriorityFeePerGas\": \"1000000000\",\n \"paymasterAndData\": \"0x\",\n \"signature\": \"0x...\"\n },\n \"entryPoint\": \"0xb794F5eA0ba39494cE839613fffBA74279579268\"\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.pods.finance/aa/send-user-operation")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chainId\": 137,\n \"userOperation\": {\n \"sender\": \"0x1111111111111111111111111111111111111111\",\n \"nonce\": \"0\",\n \"initCode\": \"0x\",\n \"callData\": \"0x...\",\n \"callGasLimit\": \"200000\",\n \"verificationGasLimit\": \"150000\",\n \"preVerificationGas\": \"50000\",\n \"maxFeePerGas\": \"1000000000\",\n \"maxPriorityFeePerGas\": \"1000000000\",\n \"paymasterAndData\": \"0x\",\n \"signature\": \"0x...\"\n },\n \"entryPoint\": \"0xb794F5eA0ba39494cE839613fffBA74279579268\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pods.finance/aa/send-user-operation")
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 \"chainId\": 137,\n \"userOperation\": {\n \"sender\": \"0x1111111111111111111111111111111111111111\",\n \"nonce\": \"0\",\n \"initCode\": \"0x\",\n \"callData\": \"0x...\",\n \"callGasLimit\": \"200000\",\n \"verificationGasLimit\": \"150000\",\n \"preVerificationGas\": \"50000\",\n \"maxFeePerGas\": \"1000000000\",\n \"maxPriorityFeePerGas\": \"1000000000\",\n \"paymasterAndData\": \"0x\",\n \"signature\": \"0x...\"\n },\n \"entryPoint\": \"0xb794F5eA0ba39494cE839613fffBA74279579268\"\n}"
response = http.request(request)
puts response.read_body{
"userOpHash": "0xabc123..."
}{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}Authorizations
API key for authentication. Obtain from your Pods dashboard.
Body
Target chain ID for the user operation
137
Signed ERC-4337 v0.6 user operation. Numeric fields may be decimal or 0x-hex strings; the endpoint normalizes them. Send the fields exactly as returned by the bytecode/quote step, with the signature attached.
Show child attributes
Show child attributes
Optional ERC-4337 EntryPoint. Only the v0.6 EntryPoint (0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789) is supported; a mismatch returns UNSUPPORTED_ENTRYPOINT.
"0xb794F5eA0ba39494cE839613fffBA74279579268"
Response
User operation accepted by the bundler
Bundler user operation hash
"0xabc123..."
Was this page helpful?