https://github.com/soldapper/mcswap-api
Solana Pay & Receipts Server for McSwap Applications
https://github.com/soldapper/mcswap-api
api express solana solana-pay
Last synced: 5 days ago
JSON representation
Solana Pay & Receipts Server for McSwap Applications
- Host: GitHub
- URL: https://github.com/soldapper/mcswap-api
- Owner: SolDapper
- License: mit
- Created: 2025-03-29T08:17:17.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-04-19T21:56:14.000Z (3 months ago)
- Last Synced: 2025-06-10T00:03:23.223Z (about 1 month ago)
- Topics: api, express, solana, solana-pay
- Language: JavaScript
- Homepage: https://mcswap.xyz
- Size: 63.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# mcswap-api
The mcswap api package runs solana pay & email receipt endpoints for your mcswap application
## clone it
```html
git clone https://github.com/SolDapper/mcswap-api.git
```## .env
Create a .env file in your project directory with the following details
```html
RPC = https://staked.helius-rpc.com?api-key=YOUR_KEY_HERE
```## config
Open src/config.js and add your api details
```javascript
var host = "https://www.mcswap-pay.xyz"; // your live domain
// host = "http://localhost"; // uncomment to run on localhost
var treasury = "ACgZcmgmAnMDxXxZUo9Zwg2PS6WQLXy63JnnLmJFYxZZ"; // optional affiliate treasury
var fee = "0"; // optional affiliate fee
var cleanup = 30000; // temporary file cleanup every n miliseconds
var whitelist = [host]; // array of domains allowed to process receipts
```## run locally
```html
npm start
```
Open your browser to: http://localhost:3300