- Node.js
- npm or yarn
- A .env file with necessary configurations
- Clone the repository:
git clone <repository-url> cd <repository-directory>
- Install dependencies:
npm install # or yarn install
- Create a .env file:
BUCKET=<your-public-bucket-url> ENV=<your-environment (e.g., 'devnet')> PORT=<your-port (default: 3000)> NODE_ENV=<your-node-env (e.g., 'development')> URL=<your-production-url>
- Start the server
npm run dev # or yarn dev
GET /blinks/deposit?token=<token>&ref=<referralCode>
POST /transactions/deposit?token=<token>&amount=<amount>&ref=<referralCode>
Content-Type: application/json
{
"account": "<account-public-key>"
}