https://github.com/circlefin/w3s-programmable-wallets-test-server
https://github.com/circlefin/w3s-programmable-wallets-test-server
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/circlefin/w3s-programmable-wallets-test-server
- Owner: circlefin
- License: apache-2.0
- Created: 2023-07-31T21:39:32.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-08T17:23:10.000Z (over 2 years ago)
- Last Synced: 2025-07-27T00:55:22.235Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 246 KB
- Stars: 13
- Watchers: 8
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Programmable Wallets Test Server
Here is a test server designed to help kickstart your journey with Circle's Programmable Wallets. Our server implementation efficiently simulates a sequence of API calls by consolidating three POST requests into a single call. This consolidated call conveniently provides your mobile app with the user token, secret key, and challenge ID. Additionally, we've also included a separate API to refresh the user token expiration.
## Getting Started
First, retrieve an API key from your [Circle Developer account](https://console.circle.com/).
Second, congifure your environment variables in the .env file located in the root directory. The CIRCLE_BASE_URL is https://api.circle.com/v1/w3s.
```bash
CIRCLE_API_KEY=""
CIRCLE_BASE_URL="https://api.circle.com/v1/w3s"
```
Third, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```