Skip to content

xuhcc/beancount-ethereum-importer

Repository files navigation

Ethereum transaction importer for Beancount

Configuration

Example of configuration file: config.json.

beancount-ethereum can load data from Etherscan or block explorers with similar API like Blockscout.

If you are using Etherscan, get your API key at https://etherscan.io/.

Install

Install beancount-ethereum:

pip install beancount-ethereum

To install from source:

pip install -e .

Usage

Download transactions to file:

beancount-ethereum --config=config.json --output-dir=downloads

Add importer to import configuration (example):

import beancount_ethereum

CONFIG = [
    beancount_ethereum.importer.Importer(config_path='config.json'),
]

Check with bean-identify:

bean-identify import_config.py downloads

Import transactions with bean-extract:

bean-extract -e test.beancount import_config.py downloads

Deploy

Deploy beancount-ethereum:

make deploy

About

Ethereum transaction importer for Beancount

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •