curl --request GET \
--url https://gateway.molpha.io/v1/infoconst options = {method: 'GET'};
fetch('https://gateway.molpha.io/v1/info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway.molpha.io/v1/info"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.molpha.io/v1/info"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "ok",
"data": {
"gatewayAuthority": "6y8h8UJ8sVYvF7bDkAEHmZnNa2PfXrQkHBTqz1w9yQ7E",
"gatewayPda": "4Nd1mYQzS5mQd9a8o3Yw2fGzLZk1h9dJ7R2sZb6xT3Vk",
"programId": "MoLPhaXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX",
"requestAuthWindowSeconds": 60,
"roundTimeoutSeconds": 30,
"maxInflightRounds": 200,
"network": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
"sessionAuth": false,
"publicOrigin": "",
"sessionTtlSeconds": 0,
"sessionMaxTtlSeconds": 0,
"sessionChallengeTtlSeconds": 0
}
}Get gateway identity
Gateway authority, Gateway PDA, program ID, the RequestAuth window, the round timeout, the concurrency limit, the network and the sign-in session settings.
curl --request GET \
--url https://gateway.molpha.io/v1/infoconst options = {method: 'GET'};
fetch('https://gateway.molpha.io/v1/info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway.molpha.io/v1/info"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.molpha.io/v1/info"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "ok",
"data": {
"gatewayAuthority": "6y8h8UJ8sVYvF7bDkAEHmZnNa2PfXrQkHBTqz1w9yQ7E",
"gatewayPda": "4Nd1mYQzS5mQd9a8o3Yw2fGzLZk1h9dJ7R2sZb6xT3Vk",
"programId": "MoLPhaXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX",
"requestAuthWindowSeconds": 60,
"roundTimeoutSeconds": 30,
"maxInflightRounds": 200,
"network": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
"sessionAuth": false,
"publicOrigin": "",
"sessionTtlSeconds": 0,
"sessionMaxTtlSeconds": 0,
"sessionChallengeTtlSeconds": 0
}
}Response
Gateway identity
"ok"
Hide child attributes
Hide child attributes
Base58 pubkey of the gateway's signing authority. The Gateway PDA that RequestAuth binds derives from it.
"6y8h8UJ8sVYvF7bDkAEHmZnNa2PfXrQkHBTqz1w9yQ7E"
Gateway account, seeds ["molpha_gateway", gatewayAuthority] under programId.
"4Nd1mYQzS5mQd9a8o3Yw2fGzLZk1h9dJ7R2sZb6xT3Vk"
Molpha program the gateway settles against. Must match the client's program ID.
"MoLPhaXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX"
How far, in seconds and either direction, a RequestAuth authTimestamp may differ from the gateway clock.
60
The longest the gateway waits for a round. A client's request timeout should exceed it.
30
Rounds the gateway runs at once; further requests wait briefly in a queue and then get 503 with Retry-After. Zero means unlimited.
200
CAIP-2 id of the Solana cluster this gateway serves, the network of an x402 payment and the chain of a sign-in message.
"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
Whether sign-in sessions are enabled. When false, the /v1/session routes are not served and RequestAuth is the only authentication.
true
Origin a sign-in message must be signed for; empty when sessions are disabled.
"https://gateway.molpha.io"
A session's default lifetime in seconds; zero when sessions are disabled.
1800
The longest session lifetime a client may request, in seconds; zero when sessions are disabled.
3600
How long a sign-in message may be exchanged after it was issued, in seconds; zero when sessions are disabled.
300