https://github.com/soldapper/mcswap-api
https://github.com/soldapper/mcswap-api
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/soldapper/mcswap-api
- Owner: SolDapper
- License: mit
- Created: 2025-03-29T08:17:17.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2025-03-31T03:59:08.000Z (about 2 months ago)
- Last Synced: 2025-03-31T04:28:08.499Z (about 2 months ago)
- Language: JavaScript
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mcswap-api
The mcswap api package runs solana pay 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
```## run locally
```html
npm start
```
Open your browser to: http://localhost:3300