getCustodianDetails
The getCustodianDetails
query allows you to fetch the public wallet addresses (BEP20, Solana, TON, USDT-TON) linked to your API key. This helps you confirm that your custodian wallets are correctly registered.
🔗 Endpoint
URL: https://argonpay.onrender.com/graphql
Method: POST
Content-Type: application/json
🔍 Query Structure
query GetCustodianDetails($apiKey: String!) {
getCustodianDetails(apiKey: $apiKey) {
code
message
custodian {
apiKey
bep20
solana
ton
usdtTon
}
}
}
📥 Parameters
Name
Type
Required
Description
apiKey
String
✅
Your issued API key
✅ Successful Response
{
"data": {
"getCustodianDetails": {
"code": 200,
"message": "Custodian details retrieved successfully.",
"custodian": {
"apiKey": "your-api-key",
"bep20": "0xYourBEP20Wallet",
"solana": "YourSolanaAddress",
"ton": "YourTONAddress",
"usdtTon": "YourJettonWallet"
}
}
}
}
🚫 Error Codes
Code
Description
200
Success
401
Invalid or expired API key
404
No custodian details found for the API key
500
Internal server error
🧪 Code Examples
Python Example
import requests
url = "https://argonpay.onrender.com/graphql"
headers = {"Content-Type": "application/json"}
query = """
query GetCustodianDetails($apiKey: String!) {
getCustodianDetails(apiKey: $apiKey) {
code
message
custodian {
apiKey
bep20
solana
ton
usdtTon
}
}
}
"""
variables = {
"apiKey": "your-api-key"
}
response = requests.post(url, json={"query": query, "variables": variables}, headers=headers)
print(response.json())
JavaScript Example
const fetch = require("node-fetch");
const query = `
query GetCustodianDetails($apiKey: String!) {
getCustodianDetails(apiKey: $apiKey) {
code
message
custodian {
apiKey
bep20
solana
ton
usdtTon
}
}
}`;
const variables = {
apiKey: "your-api-key"
};
fetch("https://argonpay.onrender.com/graphql", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ query, variables })
})
.then(res => res.json())
.then(data => console.log(data));
Last updated