Zerowallet
  • What is Zerowallet
  • Why we built Zerowallet
  • How does Zerowallet work?
  • 🔧Installation
    • Setting up a gas tank
    • Setting up Postgres
    • Setting up Google Drive Recovery
  • Recovery
  • Running the docker service
  • Setting up the HTTPS server
  • Configuring the YAML file
  • Installing frontend NPM packages
  • 🤝Contribution
  • Open source
  • Grants
Powered by GitBook
On this page
  • 1 - Clone this repo and cd into it
  • 2 - Fill in the config.sample.yaml file with your own config and rename it to config.yaml
  • 3 - Build the docker image:
  • 4 - Then run the container:
  • Server endpoints

Running the docker service

PreviousRecoveryNextSetting up the HTTPS server

Last updated 2 years ago

This is the Zerowallet backend service that is responsible of and executing transactions on-chain.

1 - Clone this repo and cd into it

git clone https://github.com/questbook/zero-wallet-backend-service.git
cd zero-wallet-backend-service

2 - Fill in the config.sample.yaml file with your own config and rename it to config.yaml

Follow instructions in order to fill the config.yaml file.

3 - Build the docker image:

docker build . -t zero-wallet-backend-service

4 - Then run the container:

docker run --network=host zero-wallet-backend-service

Server endpoints

This service exposes several API endpoints to be used in the frontend part, note that you should only change <DOMAIN> to the domain where you're deploying the service.

nonceProvider : http://<DOMAIN>/api/auth/getNonce
nonceRefresher : http://<DOMAIN>/api/auth/refreshNonce
authorizer : http://<DOMAIN>/api/auth/authorize
gasStation : http://<DOMAIN>/api/tx/send
transactionBuilder : http://<DOMAIN>/api/tx/build
scwDeployer : http://<DOMAIN>/api/tx/deploy
here
Authentication