A FastAPI-based gateway service for web3 applications at Brave.
Documentation: gate3.bsg.brave.com/docs (requires Brave VPN)
- Python 3.13 or higher
- Poetry for dependency management
- Redis server
-
Clone the repository:
git clone https://github.com/brave/gate3.git cd gate3 -
Install dependencies using Poetry:
poetry install
-
Run unit tests
poetry run pytest
-
Run Redis server
redis-server
-
Run the development server using FastAPI:
poetry run fastapi dev
Deployments are managed using the generalized docker build pipeline. To create a new deployment, simply publish a new release on GitHub.
gate3 is currently deployed to the following environments:
| Environment | Access Control | URL |
|---|---|---|
| Production (internal) | Internal Brave VPN | gate3.bsg.brave.com |
| Production | Brave Services Key | gate3.wallet.brave.com |
| Staging | Brave Services Key | gate3.wallet.brave.software |