Muon Pay SDK is a powerful and easy-to-integrate solution for merchants looking to accept payments on the Radiant (RXD) blockchain. Built by ThinkDot Solutions, Muon Pay provides a streamlined way to handle transactions, deposits, and balance management through a RESTful API.
- Send & receive payments using Radiant (RXD) in photons.
- Generate new deposit addresses for seamless merchant transactions.
- Check balances and transaction statuses in real-time.
- Automated postback system to notify backend systems of payments.
- Admin panel for managing server settings.
- Node.js v21+ (required for smooth operation)
- ElectrumX Server for blockchain communication
- .env file for configuration
# Clone the repository
git clone https://github.com/RadiantRanger42/MuonPaySDK.git
cd MuonPaySDK
# Install dependencies
npm install
# Start the server
npm run serverAll API methods use POST requests.
Endpoint: /api/user/transaction/broadcast
{
"myAddress": "string",
"toAddress": "string",
"amount": "integer (in photons)"
}- Success:
{
"success": true,
"message": "Transaction broadcasted successfully",
"data": { "txId": "string" }
}- Error Cases:
{
"success": false,
"message": "Sender and receiver addresses are required"
}{
"success": false,
"message": "Insufficient funds for the transaction"
}Endpoint: /api/user/transaction/balance
- Success:
{
"success": true,
"message": "Balance Retrieved",
"confirmedBalance": "integer",
"unconfirmedBalance": "integer",
"totalBalance": "integer"
}- Error:
{
"success": false,
"message": "Radiant Address is required"
}Endpoint: /api/user/transaction/new/address
{
"userid": "integer",
"amountNeeded": "integer"
}- Success:
{
"success": true,
"message": "Address generated successfully",
"data": {
"addressId": "integer",
"userid": "integer",
"amount": "integer",
"fee": "integer",
"address": "string",
"time": "timestamp"
}
}- Error:
{
"success": false,
"message": "User ID / Unique Identifier is required"
}Endpoint: /api/user/transaction/check/deposit
{
"address": "string"
}- Success (Payment Found):
{
"success": true,
"found": true,
"message": "Payment was found",
"ReqAmount": "integer",
"amountReceived": "integer",
"amountFulfilled": "boolean",
"data": { "depositHistory": [] }
}- Success (No Payment Found):
{
"success": true,
"found": false,
"message": "No Payments found for this address",
"data": []
}- Error:
{
"success": false,
"message": "Address is required"
}Muon Pay SDK sends a POST request to the POSTBACK_URL (configured in .env) when a payment is received.
{
"success": true,
"id": "integer",
"message": "Payment was found",
"ReqAmount": "integer",
"amountReceived": "integer",
"amountFulfilled": "boolean",
"data": { "depositHistory": [] },
"method": "credit"
}Admins can access the control panel at:
/admin-user-panel
- View key metrics
- Change ElectrumX server (requires app restart)
- Update admin credentials (modify
server.js)
For integration help or custom development, contact RxddApps.
Muon Pay SDK is open-source under the MIT License.
Built with ❤️ by ThinkDot Solutions. 🚀