Skip to main content

command line tool and python library for sending steem engine tokens

Project description

# steemengine Python tools for obtaining and processing steem engine tokens

[![Build Status](https://travis-ci.org/holgern/steemengine.svg?branch=master)](https://travis-ci.org/holgern/steemengine)

## Installation ` pip install steemengine `

## Commands Get the latest block of the sidechain ` from steemengine.api import Api api = Api() print(api.get_latest_block_info()) `

Get the block with the specified block number of the sidechain ` from steemengine.api import Api api = Api() print(api.get_block_info(1910)) `

Retrieve the specified transaction info of the sidechain ` from steemengine.api import Api api = Api() print(api.get_transaction_info("e6c7f351b3743d1ed3d66eb9c6f2c102020aaa5d")) `

Get the contract specified from the database ` from steemengine.api import Api api = Api() print(api.get_contract("tokens")) `

Get an array of objects that match the query from the table of the specified contract ` from steemengine.api import Api api = Api() print(api.find("tokens", "tokens")) `

Get the object that matches the query from the table of the specified contract ` from steemengine.api import Api api = Api() print(api.find_one("tokens", "tokens")) `

Get the transaction history for an account and a token ` from steemengine.api import Api api = Api() print(api.get_history("holger80", "NINJA")) ` ## Token transfer ` from beem import Steem from steemengine.wallet import Wallet stm = Steem(keys=["5xx"]) wallet = Wallet("test_user", steem_instance=stm) wallet.transfer("test1",1,"TST", memo="This is a test") ` ## Buy/Sell ### Create a buy order ` from beem import Steem from steemengine.market import Market stm = Steem(keys=["5xx"]) m=Market(steem_instance=stm) m.buy("test_user", 1, "TST", 9.99) ` ### Create a sell order

` from beem import Steem from steemengine.market import Market stm = Steem(keys=["5xx"]) m=Market(steem_instance=stm) m.sell("test_user", 1, "TST", 9.99) ` ### Cancel a buy order ` from beem import Steem from steemengine.market import Market stm = Steem(keys=["5xx"]) m=Market(steem_instance=stm) open_buy_orders = m.get_buy_book("TST", "test_user") m.cancel("test_user", "buy", open_buy_orders[0]["$loki"]) ` ### Cancel a sell order ` from beem import Steem from steemengine.market import Market stm = Steem(keys=["5xx"]) m=Market(steem_instance=stm) open_sell_orders = m.get_sell_book("TST", "test_user") m.cancel("test_user", "sell", open_sell_orders[0]["$loki"]) ` ### Deposit Steem ` from beem import Steem from steemengine.market import Market stm = Steem(keys=["5xx"]) m=Market(steem_instance=stm) m.deposit("test_user", 10) ` ### Withdrawal ` from beem import Steem from steemengine.market import Market stm = Steem(keys=["5xx"]) m=Market(steem_instance=stm) m.withdraw("test_user", 10) `

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

steemengine-0.5.3.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

steemengine-0.5.3-py2.py3-none-any.whl (18.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file steemengine-0.5.3.tar.gz.

File metadata

  • Download URL: steemengine-0.5.3.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for steemengine-0.5.3.tar.gz
Algorithm Hash digest
SHA256 1c7e28334967a5e3c0f94030c570a4d42c1ae7249607ccd9e55d249c05ee371f
MD5 dc0d3b7a0bf7401f284e4a87c60c260a
BLAKE2b-256 6249439a7ad767625fa65e8d6e2b103fa1d3e5a5ebe5a1675dd4f544656c3333

See more details on using hashes here.

File details

Details for the file steemengine-0.5.3-py2.py3-none-any.whl.

File metadata

  • Download URL: steemengine-0.5.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for steemengine-0.5.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 db92df4882100852e7a721c6ac510fbd5109e535a6ec74a4b95725312a5469eb
MD5 4665e7e0dbdf77bf04e2c534ebf818c0
BLAKE2b-256 6fd0ce99db89089e8f28ef9a90896d768b9ed74c4c0a7a719e212eec7506c4ac

See more details on using hashes here.

Supported by

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