go-wallet-watcher

module
v0.0.0-...-e513e0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: MIT

README

Go Wallet Watcher

A service built with Golang to watch crypto balance from public wallets (has private key shared publicly) and automate transfers to another wallet, also expose an API endpoint to query wallet info.

Table of contents

Getting Started

To run this service you must provide ETH network (BSC/POLYGON will be implemented soon) wallets address with their respective secret keys.

Also, if you want to record the automated transactions result into BetterStack Log management service you must provide a source token.

Stack used
  • Golang with concurrency
  • Gin web framework
  • Go-Ethereum lib

Deploying the App

You can easily deploy this service to Digital Ocean using their App Platform just clicking in this button.

Deploy to DigitalOcean

Using this button disables the ability to automatically re-deploy your app when pushing to a branch or tag in your repository as you are using this repo directly.

If you want to automatically re-deploy your app, fork the GitHub repository to your account so that you have a copy of it stored to the cloud. Click the Fork button in the GitHub repository and follow the on-screen instructions.

Also, you can build a Docker image and push it to Digital Ocean Container Registry.

Note: Deploy will fail, after you have to configure environment variables to make this service run correctly, check the env var required at .env.example

Running Locally

If you want to run this service locally, just rename .env.example and fill with your data, open terminal in root project and run:

go run cmd/server/main.go

Support

DigitalOcean Referral Badge

Directories

Path Synopsis
cmd
internal
pkg
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL