policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest
curl --request GET \
--url https://rpc.etherspot.io/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latestimport requests
url = "https://rpc.etherspot.io/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://rpc.etherspot.io/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest', 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/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://rpc.etherspot.io/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://rpc.etherspot.io/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest")
.asString();require 'uri'
require 'net/http'
url = URI("https://rpc.etherspot.io/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"id": 123,
"walletAddress": "<string>",
"name": "<string>",
"description": "<string>",
"isPublic": true,
"isEnabled": true,
"isApplicableToAllNetworks": true,
"enabledChains": [
123
],
"supportedEPVersions": [
"<string>"
],
"isPerpetual": true,
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"globalMaximumApplicable": true,
"globalMaximumUsd": "<string>",
"globalMaximumNative": "<string>",
"globalMaximumOpCount": 123,
"perUserMaximumApplicable": true,
"perUserMaximumUsd": "<string>",
"perUserMaximumNative": "<string>",
"perUserMaximumOpCount": 123,
"perOpMaximumApplicable": true,
"perOpMaximumUsd": "<string>",
"perOpMaximumNative": "<string>",
"addressAllowList": [
"<string>"
],
"addressBlockList": [
"<string>"
]
}{
"error": "Invalid data"
}{
"error": "Sponsorship policy not found"
}{
"error": "Failed to query sponsorship policy"
}Arka API calls
policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest
Retrieves the latest sponsorship policy for a given wallet address, EP version, and chain ID.
GET
/
policy
/
walletAddress
/
{walletAddress}
/
epVersion
/
{epVersion}
/
chainId
/
{chainId}
/
latest
policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest
curl --request GET \
--url https://rpc.etherspot.io/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latestimport requests
url = "https://rpc.etherspot.io/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://rpc.etherspot.io/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest', 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/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://rpc.etherspot.io/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://rpc.etherspot.io/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest")
.asString();require 'uri'
require 'net/http'
url = URI("https://rpc.etherspot.io/paymaster/policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}/latest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"id": 123,
"walletAddress": "<string>",
"name": "<string>",
"description": "<string>",
"isPublic": true,
"isEnabled": true,
"isApplicableToAllNetworks": true,
"enabledChains": [
123
],
"supportedEPVersions": [
"<string>"
],
"isPerpetual": true,
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"globalMaximumApplicable": true,
"globalMaximumUsd": "<string>",
"globalMaximumNative": "<string>",
"globalMaximumOpCount": 123,
"perUserMaximumApplicable": true,
"perUserMaximumUsd": "<string>",
"perUserMaximumNative": "<string>",
"perUserMaximumOpCount": 123,
"perOpMaximumApplicable": true,
"perOpMaximumUsd": "<string>",
"perOpMaximumNative": "<string>",
"addressAllowList": [
"<string>"
],
"addressBlockList": [
"<string>"
]
}{
"error": "Invalid data"
}{
"error": "Sponsorship policy not found"
}{
"error": "Failed to query sponsorship policy"
}Example values you can use to demo the API:
Example response:
{
"pathVariables": {
"walletAddress": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
"epVersion": "EPV_06",
"chainId": 80002
}
}
{
"id": 2,
"walletAddress": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
"name": "Sample Policy",
"description": "This is a sample policy",
"isPublic": true,
"isEnabled": true,
"isApplicableToAllNetworks": false,
"enabledChains": [
80002
],
"supportedEPVersions": [
"EPV_06",
"EPV_07"
],
"isPerpetual": false,
"startTime": "2024-06-24T00:40:00.000Z",
"endTime": "2024-06-25T23:59:59.999Z",
"globalMaximumApplicable": true,
"globalMaximumUsd": "5000.0000",
"globalMaximumNative": "1000.000000000000000000",
"globalMaximumOpCount": 1000,
"perUserMaximumApplicable": true,
"perUserMaximumUsd": "100.0000",
"perUserMaximumNative": "200.000000000000000000",
"perUserMaximumOpCount": 50,
"perOpMaximumApplicable": true,
"perOpMaximumUsd": "10.0000",
"perOpMaximumNative": "20.000000000000000000",
"addressAllowList": null,
"addressBlockList": null,
"createdAt": "2024-06-26T19:50:09.475Z",
"updatedAt": "2024-06-26T19:50:09.475Z"
}
Path Parameters
The wallet address to find the policy for.
The EP version to find the policy for.
The chain ID to find the policy for.
Query Parameters
Arka API key
Response
Successful operation

