Get supported x402 payment kinds
curl --request GET \
--url https://api.circle.com/v1/facilitator/x402/supportedimport requests
url = "https://api.circle.com/v1/facilitator/x402/supported"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.circle.com/v1/facilitator/x402/supported', 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.circle.com/v1/facilitator/x402/supported",
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.circle.com/v1/facilitator/x402/supported"
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.circle.com/v1/facilitator/x402/supported")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.circle.com/v1/facilitator/x402/supported")
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{
"x402Version": 2,
"kinds": [
{
"x402Version": 2,
"scheme": "exact",
"network": "eip155:5042002",
"asset": "0x3600000000000000000000000000000000000000",
"decimals": 6,
"extra": {
"name": "USDC",
"version": "2"
}
},
{
"x402Version": 2,
"scheme": "upto",
"network": "eip155:5042002",
"asset": "0x3600000000000000000000000000000000000000",
"decimals": 6,
"extra": {
"name": "USDC",
"version": "2",
"assetTransferMethod": "permit2",
"facilitatorAddress": "0x2240278661b83f55d31b2506f77266f6ffd21d55"
}
},
{
"x402Version": 2,
"scheme": "exact",
"network": "eip155:84532",
"asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"decimals": 6,
"extra": {
"name": "USDC",
"version": "2"
}
}
],
"extensions": [
"payment-identifier",
"settlement-status",
"eip2612GasSponsoring"
],
"signers": {
"eip155:5042002": [
"0x2240278661b83f55d31b2506f77266f6ffd21d55"
]
}
}{
"code": 403,
"message": "Registration required to continue settling on this address",
"errors": [
{
"reason": "registration_required"
}
]
}Get supported x402 payment kinds
Returns the x402 payment kinds and extensions Facilitator Service accepts.
GET
/
v1
/
facilitator
/
x402
/
supported
Get supported x402 payment kinds
curl --request GET \
--url https://api.circle.com/v1/facilitator/x402/supportedimport requests
url = "https://api.circle.com/v1/facilitator/x402/supported"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.circle.com/v1/facilitator/x402/supported', 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.circle.com/v1/facilitator/x402/supported",
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.circle.com/v1/facilitator/x402/supported"
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.circle.com/v1/facilitator/x402/supported")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.circle.com/v1/facilitator/x402/supported")
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{
"x402Version": 2,
"kinds": [
{
"x402Version": 2,
"scheme": "exact",
"network": "eip155:5042002",
"asset": "0x3600000000000000000000000000000000000000",
"decimals": 6,
"extra": {
"name": "USDC",
"version": "2"
}
},
{
"x402Version": 2,
"scheme": "upto",
"network": "eip155:5042002",
"asset": "0x3600000000000000000000000000000000000000",
"decimals": 6,
"extra": {
"name": "USDC",
"version": "2",
"assetTransferMethod": "permit2",
"facilitatorAddress": "0x2240278661b83f55d31b2506f77266f6ffd21d55"
}
},
{
"x402Version": 2,
"scheme": "exact",
"network": "eip155:84532",
"asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"decimals": 6,
"extra": {
"name": "USDC",
"version": "2"
}
}
],
"extensions": [
"payment-identifier",
"settlement-status",
"eip2612GasSponsoring"
],
"signers": {
"eip155:5042002": [
"0x2240278661b83f55d31b2506f77266f6ffd21d55"
]
}
}{
"code": 403,
"message": "Registration required to continue settling on this address",
"errors": [
{
"reason": "registration_required"
}
]
}Response
Supported payment kinds and extensions
x402 protocol version.
Available options:
2 One profile per enabled (scheme, network, asset) triple. An upto kind appears only on networks where Facilitator Service settles upto.
Show child attributes
Show child attributes
Map of CAIP-2 network patterns to signer addresses. For networks that support upto, the key is the exact CAIP-2 network identifier and the value lists every facilitator wallet that can settle on that network.
Example:
{}
x402 extensions Facilitator Service honors: payment-identifier, settlement-status, and eip2612GasSponsoring. eip2612GasSponsoring applies only to upto payments, even though the list is the same for every network.
Example:
[
"payment-identifier",
"settlement-status",
"eip2612GasSponsoring"
]
Was this page helpful?