eth_getUserOperationReceipt
curl --request POST \
--url https://api.gelato.cloud/rpc/{chainId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <x-api-key>' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getUserOperationReceipt",
"params": [
"0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9"
]
}
'import requests
url = "https://api.gelato.cloud/rpc/{chainId}"
payload = {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getUserOperationReceipt",
"params": ["0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9"]
}
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({
id: 1,
jsonrpc: '2.0',
method: 'eth_getUserOperationReceipt',
params: ['0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9']
})
};
fetch('https://api.gelato.cloud/rpc/{chainId}', 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.gelato.cloud/rpc/{chainId}",
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([
'id' => 1,
'jsonrpc' => '2.0',
'method' => 'eth_getUserOperationReceipt',
'params' => [
'0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9'
]
]),
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://api.gelato.cloud/rpc/{chainId}"
payload := strings.NewReader("{\n \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUserOperationReceipt\",\n \"params\": [\n \"0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9\"\n ]\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://api.gelato.cloud/rpc/{chainId}")
.header("X-API-Key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUserOperationReceipt\",\n \"params\": [\n \"0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gelato.cloud/rpc/{chainId}")
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 \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUserOperationReceipt\",\n \"params\": [\n \"0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 1,
"jsonrpc": "2.0",
"result": {
"userOpHash": "0x13574b2256b73bdc33fb121052f64b3803161e5ec602a6dc9e56177ba387e700",
"entryPoint": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"sender": "0x023fEF87894773DF227587d9B29af8D17b4dBB5A",
"nonce": "0x1",
"paymaster": null,
"actualGasCost": "0x6f75ef8d",
"actualGasUsed": "0x329af",
"success": true,
"reason": "",
"logs": [
{
"address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"topics": [
"0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972"
],
"data": "0x",
"blockNumber": "0x27fb22e",
"transactionHash": "0x0f9b0e5868beaf345d8d55895c8037ae85adb91c422c00badcdcae8a0bf247a1",
"transactionIndex": "0x4",
"blockHash": "0x965e08190b1093c078bde81f67362203834784e34cf499d516f1a7b9c7a7b29e",
"logIndex": "0x13",
"removed": false
}
],
"receipt": {
"blockHash": "0x965e08190b1093c078bde81f67362203834784e34cf499d516f1a7b9c7a7b29e",
"blockNumber": "0x27fb22e",
"from": "0x425d190ef5F561aFc8728593cA13EAf2FD9E3380",
"to": "0x25aD59adbe00C2d80c86d01e2E05e1294DA84823",
"cumulativeGasUsed": "0xe13e1",
"gasUsed": "0x329af",
"contractAddress": null,
"logs": [
{
"address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"topics": [
"0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972"
],
"data": "0x",
"blockNumber": "0x27fb22e",
"transactionHash": "0x0f9b0e5868beaf345d8d55895c8037ae85adb91c422c00badcdcae8a0bf247a1",
"transactionIndex": "0x4",
"blockHash": "0x965e08190b1093c078bde81f67362203834784e34cf499d516f1a7b9c7a7b29e",
"logIndex": "0x13",
"removed": false
}
],
"logsBloom": "0x000000010000000000000000800000000000000000000008000000000200000000080000020000020002080100010000001080000000000000100210000000000000000000000008000000000000808010000000000000000001000000000000000000000e000000000000000000080000002200000000408880000000000040000020000000000001000000080000002040000000040000000000000008000020000000000100000040000000000000000000000000000000000220000000400000000000000000000100000010000044000000800020000a100000010020000000000040000081000000000000000000000000000000400000000000100000",
"status": 1,
"type": "0x2",
"transactionHash": "0x0f9b0e5868beaf345d8d55895c8037ae85adb91c422c00badcdcae8a0bf247a1",
"transactionIndex": "0x4",
"effectiveGasPrice": "0x6f75ef8d"
}
}
}{
"message": "<string>"
}Bundler API Endpoints
eth_getUserOperationReceipt
Returns a UserOperationReceipt given a userOpHash.
POST
/
rpc
/
{chainId}
eth_getUserOperationReceipt
curl --request POST \
--url https://api.gelato.cloud/rpc/{chainId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <x-api-key>' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getUserOperationReceipt",
"params": [
"0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9"
]
}
'import requests
url = "https://api.gelato.cloud/rpc/{chainId}"
payload = {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getUserOperationReceipt",
"params": ["0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9"]
}
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({
id: 1,
jsonrpc: '2.0',
method: 'eth_getUserOperationReceipt',
params: ['0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9']
})
};
fetch('https://api.gelato.cloud/rpc/{chainId}', 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.gelato.cloud/rpc/{chainId}",
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([
'id' => 1,
'jsonrpc' => '2.0',
'method' => 'eth_getUserOperationReceipt',
'params' => [
'0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9'
]
]),
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://api.gelato.cloud/rpc/{chainId}"
payload := strings.NewReader("{\n \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUserOperationReceipt\",\n \"params\": [\n \"0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9\"\n ]\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://api.gelato.cloud/rpc/{chainId}")
.header("X-API-Key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUserOperationReceipt\",\n \"params\": [\n \"0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gelato.cloud/rpc/{chainId}")
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 \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUserOperationReceipt\",\n \"params\": [\n \"0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 1,
"jsonrpc": "2.0",
"result": {
"userOpHash": "0x13574b2256b73bdc33fb121052f64b3803161e5ec602a6dc9e56177ba387e700",
"entryPoint": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"sender": "0x023fEF87894773DF227587d9B29af8D17b4dBB5A",
"nonce": "0x1",
"paymaster": null,
"actualGasCost": "0x6f75ef8d",
"actualGasUsed": "0x329af",
"success": true,
"reason": "",
"logs": [
{
"address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"topics": [
"0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972"
],
"data": "0x",
"blockNumber": "0x27fb22e",
"transactionHash": "0x0f9b0e5868beaf345d8d55895c8037ae85adb91c422c00badcdcae8a0bf247a1",
"transactionIndex": "0x4",
"blockHash": "0x965e08190b1093c078bde81f67362203834784e34cf499d516f1a7b9c7a7b29e",
"logIndex": "0x13",
"removed": false
}
],
"receipt": {
"blockHash": "0x965e08190b1093c078bde81f67362203834784e34cf499d516f1a7b9c7a7b29e",
"blockNumber": "0x27fb22e",
"from": "0x425d190ef5F561aFc8728593cA13EAf2FD9E3380",
"to": "0x25aD59adbe00C2d80c86d01e2E05e1294DA84823",
"cumulativeGasUsed": "0xe13e1",
"gasUsed": "0x329af",
"contractAddress": null,
"logs": [
{
"address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"topics": [
"0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972"
],
"data": "0x",
"blockNumber": "0x27fb22e",
"transactionHash": "0x0f9b0e5868beaf345d8d55895c8037ae85adb91c422c00badcdcae8a0bf247a1",
"transactionIndex": "0x4",
"blockHash": "0x965e08190b1093c078bde81f67362203834784e34cf499d516f1a7b9c7a7b29e",
"logIndex": "0x13",
"removed": false
}
],
"logsBloom": "0x000000010000000000000000800000000000000000000008000000000200000000080000020000020002080100010000001080000000000000100210000000000000000000000008000000000000808010000000000000000001000000000000000000000e000000000000000000080000002200000000408880000000000040000020000000000001000000080000002040000000040000000000000008000020000000000100000040000000000000000000000000000000000220000000400000000000000000000100000010000044000000800020000a100000010020000000000040000081000000000000000000000000000000400000000000100000",
"status": 1,
"type": "0x2",
"transactionHash": "0x0f9b0e5868beaf345d8d55895c8037ae85adb91c422c00badcdcae8a0bf247a1",
"transactionIndex": "0x4",
"effectiveGasPrice": "0x6f75ef8d"
}
}
}{
"message": "<string>"
}Headers
Gelato API key for higher rate limits. This must be provided if sponsoring off-chain via Gas Tank.
Path Parameters
Target network chain identifier.
Body
application/json
⌘I