https://github.com/laalaguer/vechain-withdraw-vtho
Widthdraw the vtho stucked in a smart contract.
https://github.com/laalaguer/vechain-withdraw-vtho
python python3 vechain
Last synced: 16 days ago
JSON representation
Widthdraw the vtho stucked in a smart contract.
- Host: GitHub
- URL: https://github.com/laalaguer/vechain-withdraw-vtho
- Owner: laalaguer
- License: gpl-3.0
- Created: 2020-12-21T03:48:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-21T10:50:14.000Z (over 4 years ago)
- Last Synced: 2025-02-09T20:23:03.796Z (2 months ago)
- Topics: python, python3, vechain
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - [view
README
# Purpose
Widthdraw the vtho stucked in a smart contract.# Background
VeChain has a two-token system that enables an external address or a smart contract to hold VTHO.Less known to the public is that these VTHO stuck in a smart contract can be widthdrawn from it, by
the `master` of the smart contract who is, by defaut, the creator of the smart contract.So, with a `private key` of the creator, and the `address` of the smart contract, we can withdraw VTHO from it.
This tool provides a script to widthdraw it easily.
# Install
`pip3 install -r requirements.txt`
# Usage
Withdraw all VTHO from contract with private key:
`python3 withdraw.py drain {contract_address} --privatekey={private_key} `
Withdraw all VTHO from contract with mnemonic words:
`python3 withdraw.py drain {contract_address} --words="apple banana cat ..."`