Python wrappers for everpay.io api
Project description
everpay.py
Python wrappers for everpay.io api.
Install with
pip install everpay
v0.1.x
v0.1.x version api example v0.1.x
Examples
- query
import everpay
api_server = 'https://api-dev.everpay.io'
c = everpay.Client(api_server)
print(c.get_info())
print(c.get_token_list())
print(c.get_support_tokens())
c.get_balance('0x61EbF673c200646236B2c53465bcA0699455d5FA', 'eth')
c.get_balance('0x61EbF673c200646236B2c53465bcA0699455d5FA', 'ar')
- transfer
import everpay
api_server = 'https://api-dev.everpay.io'
pk = ''
#eth account
signer = everpay.ETHSigner(pk)
#ar account
#signer = everpay.ARSigner('arweave-keyfile-xxx.json')
account = everpay.Account(api_server, signer)
t, result = account.transfer('usdt', '0x911F42b0229c15bBB38D648B7Aa7CA480eD977d6', 10**6)
print(t.ever_hash)
print(result)
- bundle
see example/bundle_tx.py
todo
- [] deposit/withdraw
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
everpay-0.2.1.tar.gz
(7.4 kB
view details)
File details
Details for the file everpay-0.2.1.tar.gz
.
File metadata
- Download URL: everpay-0.2.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfeb410b0ce116d440016eda2e8c7ce7e7e904ea8bebb5e0b715a92580e6d0d0 |
|
MD5 | 3a8aa0cbd9390c09bd4b2ccbcc24f97a |
|
BLAKE2b-256 | 542ce41faf5a7f06de554aff485b22f36b46de17727549a163e89045bed0676f |