Skip to main content

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


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.3.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file everpay-0.2.3.tar.gz.

File metadata

  • Download URL: everpay-0.2.3.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.6

File hashes

Hashes for everpay-0.2.3.tar.gz
Algorithm Hash digest
SHA256 847e138f798b8ca026afc3e11811ebd02b39f0cfbe2e53fb7f44c3fc59765f7b
MD5 b069eb044635d466ef801481433e6661
BLAKE2b-256 e3a4f55f56d52294f8c5d52a08a9bd1e7ddd35bf448abdff12e9aaa005a5867e

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