checkTONBalance
The checkTONBalance query fetches the current balance of a TON wallet assigned to a specific transaction. This is useful for checking whether a user has completed a deposit before automatic transfer triggers.
π Endpoint
URL: https://argonpay.onrender.com/graphql
Method: POST
Content-Type: application/json
π Query Structure
query CheckTONBalance($apiKey: String!, $transactionId: String!) {
checkTONBalance(apiKey: $apiKey, transactionId: $transactionId) {
code
message
balance
}
}π₯ Parameters
Name
Type
Required
Description
apiKey
String
β
Your ArgonPay API key
transactionId
String
β
The TON-based transaction ID to check
β
Successful Response
π« Error Codes
Code
Description
200
TON wallet balance retrieved successfully
401
Invalid or unauthorized API key
404
Transaction not found or not a TON wallet transaction
500
Server or TON RPC error
π§ͺ Code Examples
Python Example
JavaScript Example
Last updated