Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.
/ web3data-py Public archive

A Python library for the amberdata.io API

License

Notifications You must be signed in to change notification settings

dmuhs/web3data-py

Folders and files

NameName
Last commit message
Last commit date
Feb 17, 2022
Jan 25, 2021
Apr 28, 2020
Jan 25, 2021
Feb 10, 2021
Mar 15, 2020
Mar 15, 2020
Mar 15, 2020
Mar 15, 2020
Mar 15, 2020
Feb 10, 2021
Mar 15, 2020
May 21, 2020
Jan 25, 2021
Mar 15, 2020
Nov 11, 2020
Feb 17, 2022
Nov 15, 2021
Feb 10, 2021
Feb 10, 2021

Repository files navigation

web3data-py Python API

Documentation Status Updates https://coveralls.io/repos/github/dmuhs/web3data-py/badge.svg?branch=master

Obtaining an API Key

Visit Amberdata.io and select the developer plan to get started! Pass your API key to the client instance, either has a hardcoded string, or through an environment variable:

from web3data import Web3Data
w3d = Web3Data("<your key>")

... and start querying!

Installation

To install web3data-py, run this command in your terminal:

$ pip install web3data

For alternative ways to install the package, check out the installation instructions

Usage

from web3data import Web3Data

w3d = Web3Data("<your key>")
print(w3d.eth.address.information("0x06012c8cf97bead5deae237070f9587f8e7a266d"))

This will print the raw response, such as:

{'status': 200,
 'title': 'OK',
 'description': 'Successful request',
 'payload': {'balance': '5296672643815245964',
  'balanceIn': '3.0894905437937322715551e+22',
  'balanceOut': '3.0889608765293507469587e+22',
  'addressType': 'contract',
  'changeInPrice': None,
  'contractTypes': ['ERC721'],
  'decimals': '0',
  'name': 'CryptoKitties',
  'numHolders': '84753',
  'numTokens': '1860119',
  'numTransfers': '2723659',
  'symbol': 'CK',
  'totalSupply': '1860119.0000000000000000',
  'totalValueUSD': None,
  'unitValueUSD': None}}

Development

Check out our contribution guidelines to see how to install the development version and run the test suite!

Don't have the time to contribute? Open up an issue and we'll get it fixed! Simply like the project? Tip me some BAT to sponsor development! :)

Resources

Credits

The initial version of this package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.