Skip to main content

ape-tx: transact from the command line

Project description

ape-tx

Transact using the command line

Dependencies

  • python3 version 3.9 or greater, python3-dev

Installation

via pip

You can install the latest release via pip:

pip install ape-tx

via setuptools

You can clone the repository and use setuptools for the most up-to-date version:

git clone https://github.com/antazoey/ape-tx.git
cd ape-tx
python3 setup.py install

Quick Usage

Deploy contracts:

ape tx deploy MyContract arg0 arg1 --sender AccountAlias

Check balances:

ape tx bal AccountAlias --network ethereum:mainnet

Transfer money:

ape tx transfer --from AccountAlias --to 0x8656bDDC790dA239824eE2eA782d350c80AA2Cf4 --value "1 ETH"

View transaction traces:

ape tx trace 0x053cba5c12172654d894f66d5670bab6215517a94189a9ffc09bc40a589ec04d

Make calls:

ape tx call \
  --network "ethereum:mainnet:alchemy" \
   --contract 0x0A56d07a0B8Ba800358DdEEb20eb46a618BFBE27 \
   --method balanceOf \
   0x8656bDDC790dA239824eE2eA782d350c80AA2Cf4

Make transactions:

ape tx invoke \
  --network "ethereum:mainnet:alchemy" \
  --contract 0x0A56d07a0B8Ba800358DdEEb20eb46a618BFBE27 \
  --method transfer \
  --sender AccountAlias \
  0x8656bDDC790dA239824eE2eA782d350c80AA2Cf4 123

Development

This project is in development and should be considered a beta. Things might not be in their final state and breaking changes may occur. Comments, questions, criticisms and pull requests are welcomed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ape_tx-0.8.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ape_tx-0.8.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file ape_tx-0.8.0.tar.gz.

File metadata

  • Download URL: ape_tx-0.8.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.17

File hashes

Hashes for ape_tx-0.8.0.tar.gz
Algorithm Hash digest
SHA256 93acb4b8d1ff8ee98a6f80305635f7a6470189ab4daf43f6fc4d217ccc4bda87
MD5 e6784124b954fbe001fb2a4bc0c6b827
BLAKE2b-256 ab98e033628228051b4fc45aa43be78cf1a74e1a9edb2c5e88d608af05860cda

See more details on using hashes here.

File details

Details for the file ape_tx-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: ape_tx-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.17

File hashes

Hashes for ape_tx-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48f1318e476c62a04eb63c65870864f62114b7649a72f9c3cc6aaa25bccb28ce
MD5 83311409ae5e41bb06cd5bc6f59ffe3e
BLAKE2b-256 16ced9dd49a815cb7f398e6728439f2dc6f81a71e05d0f669362802a03cd4828

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page