Create APIKey
π API Documentation: createApiKey Mutation
createApiKey Mutationπ§ Overview
The createApiKey A mutation allows you to generate a unique API key for accessing protected endpoints. It requires a private key from a USDT wallet. Upon successful wallet verification and transfer, a new API key is issued. It costs 20 USDT to create an API key with an opening balance of 500 queries.
π Endpoint
URL: https://argonpay.onrender.com/graphql
Method: POST
Content-Type: application/json
π§Ύ Mutation Structure
graphqlCopyEditmutation CreateApiKey(
$firstName: String!,
$lastName: String!,
$email: String!,
$password: String!,
$privateKey: String!
) {
createApiKey(
firstName: $firstName,
lastName: $lastName,
email: $email,
password: $password,
privateKey: $privateKey
) {
key
wallet
queriesLeft
}
}π₯ Required Parameters
firstName
String
Your first name
lastName
String
Your last name
email
String
Your valid email address
password
String
Your secure password
privateKey
String
Private key of your USDTBEPP20-compatible wallet (must start with 0x)
β
Response Format
π§ͺ Code Examples
Python Example (Using requests)
requests)JavaScript Example (Using fetch)
fetch)π Error Handling
You may receive errors like:
"Invalid private key format." β The private key must start with
0x."Something went wrong while creating API key." β Indicates blockchain/network errors during wallet verification or transaction.
Last updated