项目作者: xuhcc

项目描述 :
Ethereum transaction importer for Beancount
高级语言: Python
项目地址: git://github.com/xuhcc/beancount-ethereum-importer.git
创建时间: 2020-05-21T17:23:06Z
项目社区:https://github.com/xuhcc/beancount-ethereum-importer

开源协议:GNU General Public License v3.0

下载


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:

  1. pip install beancount-ethereum

To install from source:

  1. pip install -e .

Usage

Download transactions to file:

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

Add importer to import configuration (example):

  1. import beancount_ethereum
  2. CONFIG = [
  3. beancount_ethereum.importer.Importer(config_path='config.json'),
  4. ]

Check with bean-identify:

  1. bean-identify import_config.py downloads

Import transactions with bean-extract:

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

Deploy

Deploy beancount-ethereum:

  1. make deploy