API Reference

Recharge API key

Purchase additional query units by signing a BEP20 USDT transfer.

POSThttps://api.argonpay.app/graphqlrechargeApiKey

Adds query units to your API key after an on-chain USDT (BEP20) payment signed with your wallet private key. Does not debit queries; it increases queriesLeft.

Pricing: 1 unit = 0.05 USDT (BEP20).

Endpoint

POST https://api.argonpay.app/graphql

Mutation

GraphQL
mutation RechargeApiKey($apiKey: String!, $privateKey: String!, $unit: Int!) {
rechargeApiKey(apiKey: $apiKey, privateKey: $privateKey, unit: $unit) {
code
message
newBalance
apiKey {
key
queriesLeft
wallet
}
}
}

Arguments

NameTypeRequiredDescription
apiKeyString!YesYour API key
privateKeyString!YesWallet private key used to sign the USDT transfer
unitInt!YesNumber of query units to purchase

Example variables

JSON
{
"apiKey": "YOUR_API_KEY",
"privateKey": "0xYOUR_WALLET_PRIVATE_KEY",
"unit": 100
}