POW Cards API enables you to create digital wallet cards authenticated with Solana wallets. The API provides a simple way to verify wallet ownership and generate passes that can be added to Apple Wallet and Google Wallet.
- Solana Wallet Authentication - Securely verify wallet ownership
- Digital Wallet Passes - Generate passes compatible with Apple Wallet and Google Pay
- Rate Limiting - Built-in rate limiting for API protection
- TypeScript Support - Full TypeScript support for type safety
- Node.js (v19 or higher)
- npm or yarn
- Environment variables configured (see Configuration section)
- Clone the repository:
git clone https://github.com/PassEntry/POW-Cards-API.git
cd POW-Cards-API
- Install dependencies:
npm install
-
Create a
.env
file in the root directory (see Configuration section) -
Start the development server:
npm run dev
npm start
- Start the production servernpm run dev
- Start the development server with hot reloadnpm run build
- Build the TypeScript projectnpm test
- Run tests
Create a .env
file in the root directory with the following variables:
PORT=3001
PASSENTRY_API_KEY=""
GET /health
GET /api/v1/claim/init?publicKey={solanaPublicKey}
POST /api/v1/claim/wallet-pass
For detailed API documentation, visit our API Reference.
The API uses standard HTTP status codes and returns detailed error messages in the following format:
{
"error": "Error message",
"details": "Detailed error description"
}
- 100 requests per 15 minutes for claim endpoints
- Standard rate limits for health check endpoints
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'feat: add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Need help? Contact us:
- Email: info@passentry.com
- GitHub Issues: Report issues