SDK for ETH Wallet(以太坊钱包)
Project description
基于以太坊的LDG币钱包
实现ERC-20代币LDG钱包功能:创建地址,代币交易,查询余额。
安装
pip install web3
pip install ethwallet-sdk
导入
from ethwlt_sdk import wallet
创建新账户
wallet.newaccount()-->[privateKey,address]
导入旧账户
wallet.inputaccount(privateKey)-->address
查询余额
wallet.get_balance(address)-->account
转账
wallet.transfer(privateKey,account_self,to_add,value)-->blockNumber
注意
本币在ropsten测试网络上
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 Distribution
ethwallet--sdk-0.0.2.tar.gz
(2.7 kB
view details)
File details
Details for the file ethwallet--sdk-0.0.2.tar.gz.
File metadata
- Download URL: ethwallet--sdk-0.0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c286b08e1dd71813568e8e41619f73d374098a0d335a1ecd800ec7fa3fc54ad
|
|
| MD5 |
acb0745594ea842bcc24095641103dc9
|
|
| BLAKE2b-256 |
1ef5c4d153e2decb6d9309492d6d868d90f4d3bc73b049a40a9bf48d8a531c1d
|