eth_getUserOperationByHash
curl --request POST \
--url https://rpc.etherspot.io/v1/137/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"method": "<string>",
"params": [
"<string>"
]
}
'import requests
url = "https://rpc.etherspot.io/v1/137/"
payload = {
"id": 123,
"method": "<string>",
"params": ["<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({id: 123, method: '<string>', params: ['<string>']})
};
fetch('https://rpc.etherspot.io/v1/137/', 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://rpc.etherspot.io/v1/137/",
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' => 123,
'method' => '<string>',
'params' => [
'<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://rpc.etherspot.io/v1/137/"
payload := strings.NewReader("{\n \"id\": 123,\n \"method\": \"<string>\",\n \"params\": [\n \"<string>\"\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://rpc.etherspot.io/v1/137/")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"method\": \"<string>\",\n \"params\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rpc.etherspot.io/v1/137/")
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 \"id\": 123,\n \"method\": \"<string>\",\n \"params\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_bodySkandha (Bundler) API calls
eth_getUserOperationByHash
Get UserOp by hash
POST
/
eth_getUserOperationByHash
curl --request POST \
--url https://rpc.etherspot.io/v1/137/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"method": "<string>",
"params": [
"<string>"
]
}
'import requests
url = "https://rpc.etherspot.io/v1/137/"
payload = {
"id": 123,
"method": "<string>",
"params": ["<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({id: 123, method: '<string>', params: ['<string>']})
};
fetch('https://rpc.etherspot.io/v1/137/', 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://rpc.etherspot.io/v1/137/",
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' => 123,
'method' => '<string>',
'params' => [
'<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://rpc.etherspot.io/v1/137/"
payload := strings.NewReader("{\n \"id\": 123,\n \"method\": \"<string>\",\n \"params\": [\n \"<string>\"\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://rpc.etherspot.io/v1/137/")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"method\": \"<string>\",\n \"params\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rpc.etherspot.io/v1/137/")
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 \"id\": 123,\n \"method\": \"<string>\",\n \"params\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_bodyExample values you use to demo the API:
Example response:
{
"id": 3,
"method": "eth_getUserOperationByHash",
"params": [
"0xd5925a6e45370570e10d134b904817b4cf0b82346bdf066ae4f13aecbbc36789"
]
}
{
"id": 3,
"result": {
"userOperation": {
"sender": "0x86df74bC5afE17743A9d54E7ebd1171A7F7C958c",
"nonce": "0x1e",
"initCode": "0x",
"callData": "0x9e5d4c49000000000000000000000000163f88becdf706499023d4364fd9c4fe51a032830000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001e4f62ded810000000000000000000000000dfca6af8663914e6923d4eba5fca7ffcdd5b24300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000418161ccb46373a31b5a6d3f4434996bf41e0117d80b7c129424485982b0e59e4647d2ba17bfc8d1f8be04f75e8e57829d9f5045f1734da0ac4855ef9c4f4f893b1b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"callGasLimit": "0xc1bf",
"verificationGasLimit": "0x12580",
"preVerificationGas": "0x1108f",
"maxFeePerGas": "0xfa29e3f70",
"maxPriorityFeePerGas": "0x861c46800",
"paymasterAndData": "0x000031dd6d9d3a133e663660b959162870d755d40000000000000000000000003b03c8e69522d5d3caea3d321047dc213470053900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000041f4c091431612d7ab9462b7fb7b08a0825c9235dae5fb0de07f338b54f3c055ed231bcc16983e992d85ef624239546712172a7cd0c4f3cda20fedc507cc2107f11c00000000000000000000000000000000000000000000000000000000000000",
"signature": "0xcafda1635ebc64b157140d14c1bf81f138988dd12003f3b6daa56b760481c9a271819b1a82e95a2d8784469a0a96b16616665f033451b362ffee7161e5efb7091b"
},
"entryPoint": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"transactionHash": "0x337202cf2860b796728ed374035980ca39a151840d597b896e18e5e937bf645c",
"blockHash": "0x9ed5d4aa90f5b174e99deb7ea2bcc341f877ca78fb599ac36097568d9c35fead",
"blockNumber": "0x345eccc"
}
}
⌘I

