x402 payment destination and quote
curl --request GET \
--url https://gateway.molpha.io/v1/x402/statusconst options = {method: 'GET'};
fetch('https://gateway.molpha.io/v1/x402/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway.molpha.io/v1/x402/status"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.molpha.io/v1/x402/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"gateway": "GwPDA1111111111111111111111111111111111111",
"authority": "GwAuthority11111111111111111111111111111111",
"payTo": "ProtocolConfigPDA111111111111111111111111111",
"treasuryAta": "TreasuryAta111111111111111111111111111111",
"quotedNextPrice": "1030",
"pendingTickets": 1
}{
"error": "validation failed"
}{
"error": "validation failed"
}{
"error": "validation failed"
}Rounds
x402 payment destination and quote
The protocol treasury every x402 payment pays, the next round price, and the gateway’s pending tickets.
GET
/
v1
/
x402
/
status
x402 payment destination and quote
curl --request GET \
--url https://gateway.molpha.io/v1/x402/statusconst options = {method: 'GET'};
fetch('https://gateway.molpha.io/v1/x402/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway.molpha.io/v1/x402/status"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.molpha.io/v1/x402/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"gateway": "GwPDA1111111111111111111111111111111111111",
"authority": "GwAuthority11111111111111111111111111111111",
"payTo": "ProtocolConfigPDA111111111111111111111111111",
"treasuryAta": "TreasuryAta111111111111111111111111111111",
"quotedNextPrice": "1030",
"pendingTickets": 1
}{
"error": "validation failed"
}{
"error": "validation failed"
}{
"error": "validation failed"
}Query Parameters
Response
x402 payment destination and quote
Where x402 payments go and what the next round costs.