/pay
The /pay endpoint on ArgonPay provides a REST interface for initiating blockchain payments. It wraps internal GraphQL mutations (startBSCPayment, startSOLPayment, startTONPayment) and allows payment flow to begin using just a simple GET request.
This is especially useful for browser redirects, mobile integrations, or platforms where GraphQL isn't ideal.
π URL
GET https://argonpay.onrender.com/pay?txnid=TRANSACTION_ID&network=NETWORKπ₯ Query Parameters
txnid
String
β
The unique transaction ID from the payment mutation
network
String
β
One of bep20, bsc, sol, or ton
β
bscis automatically interpreted asbep20.
β
Successful Response
{
"code": 200,
"message": "TON payment started. Monitoring wallet...",
"transaction": {
"transactionId": "10054",
"amount": 20,
"amountInToken": 25.738,
"network": "ton",
"payAddress": "EQC_tempWallet",
"recipientAddress": "EQC_custodianWallet",
"status": "started",
"adminTransferred": false
}
}π« Error Responses
400
Missing txnid or network
400
Unsupported network
500
Server error during network initialization
βοΈ Notes
This endpoint uses the same infrastructure as your GraphQL mutations.
All transactions triggered here will be monitored for 15 minutes.
Supported networks:
bep20(orbsc)solton
Last updated