a simple, high-level and lightweight eosio sdk write by python
Project description
eosapi
A simple, high-level and lightweight eosio sdk write by python.
What is it?
eosapi is a python library to interact with EOSIO blockchains.
its main focus are bot applications on the blockchain.
Install
$ pip install eosapi
Using
from eosapi import EosApi
api = EosApi(rpc_host="https://jungle3.greymass.com")
api.import_key("consumer1111", "5KWxgG4rPEXzHnRBaiVRCCE6WAfnqkRpTu1uHzJoQRzixqBB1k3")
trx = {
"actions": [{
"account": "eosio.token",
"name": "transfer",
"authorization": [
{
"actor": "consumer1111",
"permission": "active",
},
],
"data": {
"from": "consumer1111",
"to": "consumer2222",
"quantity": "0.0001 EOS",
"memo": "by eosapi",
},
}]
}
resp = api.push_transaction(trx)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file eosapi-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: eosapi-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e05bf47b83bc1323263e24c3d626d955556cd14e6f27434488c50c8f986d7b30 |
|
MD5 | fadf1103cb9c896cf287546ab0a0fd63 |
|
BLAKE2b-256 | a6daa43f0d34153423bc925b0528dcb627e86eb610f37915e6fe1a760906e69c |