Get wallet approvals
curl --request GET \
--url https://api.copilot.markets/data/v2/approvalsimport requests
url = "https://api.copilot.markets/data/v2/approvals"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.copilot.markets/data/v2/approvals', 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.copilot.markets/data/v2/approvals",
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.copilot.markets/data/v2/approvals"
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.copilot.markets/data/v2/approvals")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.copilot.markets/data/v2/approvals")
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{
"data": {
"address": "<string>",
"chain_id": 123,
"checked_at": "<string>",
"contracts": [
{
"approved": true,
"feature": "<string>",
"id": "<string>",
"spender": "<string>",
"standard": "<string>",
"token": "<string>",
"amount": "<string>"
}
]
}
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}Get wallet approvals
Polygon token/operator approval state for one wallet.
?user= must be an EVM address. The complete served catalog is returned in
canonical order under { data }; this endpoint is not paginated.
GET
/
v2
/
approvals
Get wallet approvals
curl --request GET \
--url https://api.copilot.markets/data/v2/approvalsimport requests
url = "https://api.copilot.markets/data/v2/approvals"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.copilot.markets/data/v2/approvals', 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.copilot.markets/data/v2/approvals",
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.copilot.markets/data/v2/approvals"
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.copilot.markets/data/v2/approvals")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.copilot.markets/data/v2/approvals")
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{
"data": {
"address": "<string>",
"chain_id": 123,
"checked_at": "<string>",
"contracts": [
{
"approved": true,
"feature": "<string>",
"id": "<string>",
"spender": "<string>",
"standard": "<string>",
"token": "<string>",
"amount": "<string>"
}
]
}
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}Query Parameters
The proxy wallet whose approval state to return. Required EVM address.
Response
Approval state for the wallet
{ "data": T }; the envelope for endpoints that don't paginate.
There is no pagination key: an aggregate or bounded list has no next page.
Paginated feeds return a *Page shape ({ data, pagination }) instead.
Non-paginated approval snapshot for one Polygon proxy wallet.
Show child attributes
Show child attributes
Was this page helpful?