https://github.com/bh2smith/gbc-claim
Portable singular withdraw claim for Gnosis Chain validator withdrawals
https://github.com/bh2smith/gbc-claim
Last synced: over 1 year ago
JSON representation
Portable singular withdraw claim for Gnosis Chain validator withdrawals
- Host: GitHub
- URL: https://github.com/bh2smith/gbc-claim
- Owner: bh2smith
- Created: 2023-08-05T06:51:40.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-17T22:01:39.000Z (over 1 year ago)
- Last Synced: 2025-04-24T03:13:28.672Z (over 1 year ago)
- Language: Python
- Size: 14.6 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gbc-claim
Portable singular withdraw claim for Gnosis Chain validator withdrawals
## Run Claimer
```shell
usage: Script Arguments [-h] --account ACCOUNT [--threshold THRESHOLD]
options:
-h, --help show this help message and exit
--account ACCOUNT Ethereum Address to claim withdraw for
--threshold THRESHOLD
minimum amount to claim (default is 1 GNO)
```
### Docker Remote
```shell
docker run -e PK=$PK ghcr.io/bh2smith/gbc-claim --account=$ETH1_WITHDRAWAL_ADDRESS --threshold=$MIN_WITHDRAW
```
where
- `PK` is any private key with at least 0.01 (i.e. sufficient) xdai.
- `ETH1_WITHDRAWAL_ADDRESS` is the wallet you want to withdraw rewards for
- [optional] `MIN_WITHDRAW` (in WEI) is the minimum amount worth withdrawing (default is 1 GNO)
### Locally
```shell
cp .env.sample .env <-- fill out your credentials!
python -m src.claim_withdrawal --account=$ETH1_WITHDRAWAL_ADDRESS --threshold=$MIN_WITHDRAW
```
### Local Docker
```shell
docker build -t gbc-claim
docker run -e PK=$PK gbc-claim --account=$ETH1_WITHDRWAW_ADDRESS --threshold=$MIN_WITHDRAW
```