Check wallet relay spending limits
curl --request GET \
--url https://api.httpayer.com/relay/limits/{address}import requests
url = "https://api.httpayer.com/relay/limits/{address}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.httpayer.com/relay/limits/{address}', 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.httpayer.com/relay/limits/{address}",
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://api.httpayer.com/relay/limits/{address}"
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://api.httpayer.com/relay/limits/{address}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.httpayer.com/relay/limits/{address}")
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{
"wallet_address": "<string>",
"mainnet": {
"wallet_limits": {
"daily_limit": 100,
"today_spent": 25.5,
"remaining": 74.5,
"percentage_used": "25.50"
},
"system_limits": {
"daily_limit": 1000,
"today_spent": 450.75,
"remaining": 549.25,
"percentage_used": "45.08"
},
"can_relay": true
},
"testnet": {
"wallet_limits": {
"daily_limit": 100,
"today_spent": 5,
"remaining": 95,
"percentage_used": "5.00"
},
"system_limits": {
"daily_limit": 1000,
"today_spent": 50,
"remaining": 950,
"percentage_used": "5.00"
},
"can_relay": true
},
"relay_fee_model": {
"percentage": 3,
"minimum_usd": 0.002,
"description": "3% with $0.002 minimum",
"formula": "Fee = max(percentage Ć target_amount, minimum_fee)"
},
"reset_time": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}Relay
Check wallet relay spending limits
Get daily relay spending limits and current usage for a specific wallet address (separate tracking for mainnet and testnet)
GET
/
relay
/
limits
/
{address}
Check wallet relay spending limits
curl --request GET \
--url https://api.httpayer.com/relay/limits/{address}import requests
url = "https://api.httpayer.com/relay/limits/{address}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.httpayer.com/relay/limits/{address}', 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.httpayer.com/relay/limits/{address}",
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://api.httpayer.com/relay/limits/{address}"
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://api.httpayer.com/relay/limits/{address}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.httpayer.com/relay/limits/{address}")
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{
"wallet_address": "<string>",
"mainnet": {
"wallet_limits": {
"daily_limit": 100,
"today_spent": 25.5,
"remaining": 74.5,
"percentage_used": "25.50"
},
"system_limits": {
"daily_limit": 1000,
"today_spent": 450.75,
"remaining": 549.25,
"percentage_used": "45.08"
},
"can_relay": true
},
"testnet": {
"wallet_limits": {
"daily_limit": 100,
"today_spent": 5,
"remaining": 95,
"percentage_used": "5.00"
},
"system_limits": {
"daily_limit": 1000,
"today_spent": 50,
"remaining": 950,
"percentage_used": "5.00"
},
"can_relay": true
},
"relay_fee_model": {
"percentage": 3,
"minimum_usd": 0.002,
"description": "3% with $0.002 minimum",
"formula": "Fee = max(percentage Ć target_amount, minimum_fee)"
},
"reset_time": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}Path Parameters
Wallet address (EVM or Solana)
Response
Spending limits retrieved successfully
Normalized wallet address
Mainnet spending limits and usage
Show child attributes
Show child attributes
Testnet spending limits and usage
Show child attributes
Show child attributes
HTTPayer relay fee model details
Show child attributes
Show child attributes
Time when daily limits reset (midnight UTC)
āI

