cURL
curl --request GET \
--url https://api.jiffyscan.xyz/v0/getUserOpMetadata \
--header 'x-api-key: <api-key>'import requests
url = "https://api.jiffyscan.xyz/v0/getUserOpMetadata"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.jiffyscan.xyz/v0/getUserOpMetadata', 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.jiffyscan.xyz/v0/getUserOpMetadata",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.jiffyscan.xyz/v0/getUserOpMetadata"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.jiffyscan.xyz/v0/getUserOpMetadata")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jiffyscan.xyz/v0/getUserOpMetadata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"erc20Transfers": [
{
"invoked": "ETH Transfer",
"from": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"to": "0x25df024637d4e56c1ae9563987bf3e92c9f534c0",
"value": "0x2014d32b380580",
"name": "ETH"
}
],
"executionTrace": {
"traceData": {
"from": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"to": "0x8abb13360b87be5eeb1b98647a016add927a136c",
"input": "0xb61d27f6000000000000000000000000d386847ca253a122b483bffde2e3424a1af070c4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000",
"type": "DELEGATECALL",
"gas": "0xfd2c",
"gasUsed": "0x6c4",
"output": "0x",
"executionCall": true
},
"next": [
{
"traceData": {
"from": "0x8abb13360b87be5eeb1b98647a016add927a136c",
"to": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"input": "0x",
"type": "CALL",
"value": "0x0",
"gas": "0xf4af",
"gasUsed": "0x1ba",
"output": "0x"
},
"next": []
}
]
},
"userOpParams": [
"0xd386847Ca253a122B483BFfde2E3424A1aF070c4",
{
"type": "BigNumber",
"hex": "0x00"
},
"0x9406cc6185a346906296840746125a0e449764545fbfb9cf000000000000000000000000f4d69e0a356e652fd8dae476589777ae7f67f9ec0000000000000000000000000000000000000000000000000000000000000000",
"0xb61d27f6000000000000000000000000d386847ca253a122b483bffde2e3424a1af070c4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000",
{
"type": "BigNumber",
"hex": "0x010298"
},
{
"type": "BigNumber",
"hex": "0x0b6b30"
},
{
"type": "BigNumber",
"hex": "0xbd28"
},
{
"type": "BigNumber",
"hex": "0x0a7bf57394"
},
{
"type": "BigNumber",
"hex": "0x06bc3e40"
},
"0xe93eca6595fe94091dc1af46aac2a8b5d79907700000000000000000000000000000000000000000000000000000000064731383000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f657e39179505d8ac4b7b039ce9047c83c9f4b171e0f7d633a4a68c472f41d684606eb5981cf958ee2f0ce623f02875c8462aa828aeb537151257aa7cac99d9b1c",
"0x40879b9e6dd9df341fb240d2c973ab8b54044d00cec1ecf875f9d96bd64b4da3378c818380584f3474fba9b2c8254118a32c53f1c5da789c399c501cb2699c2c1c"
],
"logs": [
{
"name": "",
"anonymous": false,
"inputs": null,
"raw": {
"address": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"topics": [
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
"0x0000000000000000000000008abb13360b87be5eeb1b98647a016add927a136c"
],
"data": "0x"
}
},
{
"name": "",
"anonymous": false,
"inputs": null,
"raw": {
"address": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"topics": [
"0x47e55c76e7a6f1fd8996a1da8008c1ea29699cca35e7bcd057f2dec313b6e5de",
"0x0000000000000000000000005ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"0x000000000000000000000000f4d69e0a356e652fd8dae476589777ae7f67f9ec"
],
"data": "0x"
}
},
{
"name": "",
"anonymous": false,
"inputs": null,
"raw": {
"address": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"topics": [
"0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000001"
}
},
{
"name": "AccountDeployed",
"anonymous": false,
"inputs": [
{
"value": "0xf703da51c323c4ac4dce82b7091e0c4f2dea27dd8b2e39c63242bd7b1cf9db26",
"type": "bytes32",
"name": "userOpHash"
},
{
"value": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"type": "address",
"name": "sender"
},
{
"value": "0x9406cc6185a346906296840746125a0e44976454",
"type": "address",
"name": "factory"
},
{
"value": "0xe93eca6595fe94091dc1af46aac2a8b5d7990770",
"type": "address",
"name": "paymaster"
}
],
"raw": {
"address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"topics": [
"0xd51a9c61267aa6196961883ecf5ff2da6619c37dac0fa92122513fb32c032d2d",
"0xf703da51c323c4ac4dce82b7091e0c4f2dea27dd8b2e39c63242bd7b1cf9db26",
"0x000000000000000000000000d386847ca253a122b483bffde2e3424a1af070c4"
],
"data": "0x0000000000000000000000009406cc6185a346906296840746125a0e44976454000000000000000000000000e93eca6595fe94091dc1af46aac2a8b5d7990770"
}
},
{
"name": "BeforeExecution",
"anonymous": false,
"inputs": null,
"raw": {
"address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"topics": [
"0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972"
],
"data": "0x"
}
},
{
"name": "UserOperationEvent",
"anonymous": false,
"inputs": [
{
"value": "0xf703da51c323c4ac4dce82b7091e0c4f2dea27dd8b2e39c63242bd7b1cf9db26",
"type": "bytes32",
"name": "userOpHash"
},
{
"value": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"type": "address",
"name": "sender"
},
{
"value": "0xe93eca6595fe94091dc1af46aac2a8b5d7990770",
"type": "address",
"name": "paymaster"
},
{
"value": "0",
"type": "uint256",
"name": "nonce"
},
{
"value": true,
"type": "bool",
"name": "success"
},
{
"value": "9030096450487680",
"type": "uint256",
"name": "actualGasCost"
},
{
"value": "404476",
"type": "uint256",
"name": "actualGasUsed"
}
],
"raw": {
"address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"topics": [
"0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f",
"0xf703da51c323c4ac4dce82b7091e0c4f2dea27dd8b2e39c63242bd7b1cf9db26",
"0x000000000000000000000000d386847ca253a122b483bffde2e3424a1af070c4",
"0x000000000000000000000000e93eca6595fe94091dc1af46aac2a8b5d7990770"
],
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000002014d32b3805800000000000000000000000000000000000000000000000000000000000062bfc"
}
}
]
}User Operations
Get UserOp MetaData
GET
/
getUserOpMetadata
cURL
curl --request GET \
--url https://api.jiffyscan.xyz/v0/getUserOpMetadata \
--header 'x-api-key: <api-key>'import requests
url = "https://api.jiffyscan.xyz/v0/getUserOpMetadata"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.jiffyscan.xyz/v0/getUserOpMetadata', 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.jiffyscan.xyz/v0/getUserOpMetadata",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.jiffyscan.xyz/v0/getUserOpMetadata"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.jiffyscan.xyz/v0/getUserOpMetadata")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jiffyscan.xyz/v0/getUserOpMetadata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"erc20Transfers": [
{
"invoked": "ETH Transfer",
"from": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"to": "0x25df024637d4e56c1ae9563987bf3e92c9f534c0",
"value": "0x2014d32b380580",
"name": "ETH"
}
],
"executionTrace": {
"traceData": {
"from": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"to": "0x8abb13360b87be5eeb1b98647a016add927a136c",
"input": "0xb61d27f6000000000000000000000000d386847ca253a122b483bffde2e3424a1af070c4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000",
"type": "DELEGATECALL",
"gas": "0xfd2c",
"gasUsed": "0x6c4",
"output": "0x",
"executionCall": true
},
"next": [
{
"traceData": {
"from": "0x8abb13360b87be5eeb1b98647a016add927a136c",
"to": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"input": "0x",
"type": "CALL",
"value": "0x0",
"gas": "0xf4af",
"gasUsed": "0x1ba",
"output": "0x"
},
"next": []
}
]
},
"userOpParams": [
"0xd386847Ca253a122B483BFfde2E3424A1aF070c4",
{
"type": "BigNumber",
"hex": "0x00"
},
"0x9406cc6185a346906296840746125a0e449764545fbfb9cf000000000000000000000000f4d69e0a356e652fd8dae476589777ae7f67f9ec0000000000000000000000000000000000000000000000000000000000000000",
"0xb61d27f6000000000000000000000000d386847ca253a122b483bffde2e3424a1af070c4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000",
{
"type": "BigNumber",
"hex": "0x010298"
},
{
"type": "BigNumber",
"hex": "0x0b6b30"
},
{
"type": "BigNumber",
"hex": "0xbd28"
},
{
"type": "BigNumber",
"hex": "0x0a7bf57394"
},
{
"type": "BigNumber",
"hex": "0x06bc3e40"
},
"0xe93eca6595fe94091dc1af46aac2a8b5d79907700000000000000000000000000000000000000000000000000000000064731383000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f657e39179505d8ac4b7b039ce9047c83c9f4b171e0f7d633a4a68c472f41d684606eb5981cf958ee2f0ce623f02875c8462aa828aeb537151257aa7cac99d9b1c",
"0x40879b9e6dd9df341fb240d2c973ab8b54044d00cec1ecf875f9d96bd64b4da3378c818380584f3474fba9b2c8254118a32c53f1c5da789c399c501cb2699c2c1c"
],
"logs": [
{
"name": "",
"anonymous": false,
"inputs": null,
"raw": {
"address": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"topics": [
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
"0x0000000000000000000000008abb13360b87be5eeb1b98647a016add927a136c"
],
"data": "0x"
}
},
{
"name": "",
"anonymous": false,
"inputs": null,
"raw": {
"address": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"topics": [
"0x47e55c76e7a6f1fd8996a1da8008c1ea29699cca35e7bcd057f2dec313b6e5de",
"0x0000000000000000000000005ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"0x000000000000000000000000f4d69e0a356e652fd8dae476589777ae7f67f9ec"
],
"data": "0x"
}
},
{
"name": "",
"anonymous": false,
"inputs": null,
"raw": {
"address": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"topics": [
"0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000001"
}
},
{
"name": "AccountDeployed",
"anonymous": false,
"inputs": [
{
"value": "0xf703da51c323c4ac4dce82b7091e0c4f2dea27dd8b2e39c63242bd7b1cf9db26",
"type": "bytes32",
"name": "userOpHash"
},
{
"value": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"type": "address",
"name": "sender"
},
{
"value": "0x9406cc6185a346906296840746125a0e44976454",
"type": "address",
"name": "factory"
},
{
"value": "0xe93eca6595fe94091dc1af46aac2a8b5d7990770",
"type": "address",
"name": "paymaster"
}
],
"raw": {
"address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"topics": [
"0xd51a9c61267aa6196961883ecf5ff2da6619c37dac0fa92122513fb32c032d2d",
"0xf703da51c323c4ac4dce82b7091e0c4f2dea27dd8b2e39c63242bd7b1cf9db26",
"0x000000000000000000000000d386847ca253a122b483bffde2e3424a1af070c4"
],
"data": "0x0000000000000000000000009406cc6185a346906296840746125a0e44976454000000000000000000000000e93eca6595fe94091dc1af46aac2a8b5d7990770"
}
},
{
"name": "BeforeExecution",
"anonymous": false,
"inputs": null,
"raw": {
"address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"topics": [
"0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972"
],
"data": "0x"
}
},
{
"name": "UserOperationEvent",
"anonymous": false,
"inputs": [
{
"value": "0xf703da51c323c4ac4dce82b7091e0c4f2dea27dd8b2e39c63242bd7b1cf9db26",
"type": "bytes32",
"name": "userOpHash"
},
{
"value": "0xd386847ca253a122b483bffde2e3424a1af070c4",
"type": "address",
"name": "sender"
},
{
"value": "0xe93eca6595fe94091dc1af46aac2a8b5d7990770",
"type": "address",
"name": "paymaster"
},
{
"value": "0",
"type": "uint256",
"name": "nonce"
},
{
"value": true,
"type": "bool",
"name": "success"
},
{
"value": "9030096450487680",
"type": "uint256",
"name": "actualGasCost"
},
{
"value": "404476",
"type": "uint256",
"name": "actualGasUsed"
}
],
"raw": {
"address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"topics": [
"0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f",
"0xf703da51c323c4ac4dce82b7091e0c4f2dea27dd8b2e39c63242bd7b1cf9db26",
"0x000000000000000000000000d386847ca253a122b483bffde2e3424a1af070c4",
"0x000000000000000000000000e93eca6595fe94091dc1af46aac2a8b5d7990770"
],
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000002014d32b3805800000000000000000000000000000000000000000000000000000000000062bfc"
}
}
]
}⌘I