metadata
curl --request GET \
--url https://rpc.etherspot.io/paymaster/metadataimport requests
url = "https://rpc.etherspot.io/paymaster/metadata"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://rpc.etherspot.io/paymaster/metadata', 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/metadata",
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/metadata"
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/metadata")
.asString();require 'uri'
require 'net/http'
url = URI("https://rpc.etherspot.io/paymaster/metadata")
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_bodyArka (Paymaster) API calls
metadata
Return paymaster Metadata for EP6
GET
/
metadata
metadata
curl --request GET \
--url https://rpc.etherspot.io/paymaster/metadataimport requests
url = "https://rpc.etherspot.io/paymaster/metadata"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://rpc.etherspot.io/paymaster/metadata', 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/metadata",
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/metadata"
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/metadata")
.asString();require 'uri'
require 'net/http'
url = URI("https://rpc.etherspot.io/paymaster/metadata")
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_bodyExample values you can use to demo the API:
Example response:
{
"apiKey": "etherspot_public_key",
"chainId": "11155111",
}
{
"sponsorAddress": "0xaeAF09795d8C0e6fA4bB5f89dc9c15EC02021567",
"sponsorWalletBalance": { "type": "BigNumber", "hex": "0x1ed81fac4b400e4d" },
"chainsSupported": [
5, 114,
420, 84532,
84531, 421613,
534351, 11155111,
],
"tokenPaymasters": {
"1": { "USDC": "0x0000000000fABFA8079AB313D1D14Dcf4D15582a" },
"10": { "USDC": "0x0000000000fce6614d3c6f679e48c9cdd09aa634" },
"56": { "USDC": "0x0000000000db7995889f54d72dac9d36a9f7f467" },
}
}
⌘I

