startTONPayment
The startTONPayment mutation generates a TON wallet to receive user deposits, converts the USD amount to TON using a live exchange rate, and monitors the wallet for 15 minutes. If the expected deposit is received, the system forwards the funds to the custodian wallet.
π Endpoint
URL: https://argonpay.onrender.com/graphql
Method: POST
Content-Type: application/json
π§Ύ Mutation Structure
mutation StartTONPayment($transactionId: String!) {
startTONPayment(transactionId: $transactionId) {
code
message
transaction {
transactionId
amount
amountInToken
network
payAddress
recipientAddress
status
adminTransferred
}
}
}π₯ Parameters
transactionId
String
β
ID from the payment mutation
β
Successful Response
π« Error Codes
200
Monitoring started
404
Transaction not found or already processed
500
Internal server error
π Monitoring Behavior
A TON wallet is generated for the customer.
The system checks TON/USDT Live Price.
The user sends funds to the wallet.
If the TON deposit is sufficient:
Funds are auto-forwarded to your custodian wallet.
The transaction is marked completed.
If the timeout (15 minutes) is reached with no deposit:
The transaction is marked expired.
π§ͺ Code
Python
JavaScript
Last updated