Python 3 wrapper for the NFTScan API
Project description
NFTScan NFT API Python 3 wrapper
A library providing Python 3 bindings for the NFTScan API
This library is in Alpha / Early Alpha state, and is untested / provided as is. Feel free to open PRs or bug reports for issues, features or extensions
Installation:
pip install nftscan-api
Usage:
Get a key and secret. Then, check out the api endpoints listed, eg (getGroupByNftContract)[https://developer.nftscan.com/doc/#operation/getAllNftByUserAddressUsingPOST] - and try to use them
from nftscan import NftScanAPI
nftScan = NftScanAPI(
apiKey=<key>,
apiSecret=<secret>)
test_wallet = "0x3becf83939f34311b6bee143197872d877501b11"
print(nftScan.getGroupByNftContract(erc="erc721", user_address=test_wallet))
Write json encoded response to a file:
nftScan.getGroupByNftContract(erc="erc721", user_address=test_wallet, export_file_name='out.txt'))
0.1.1 (2022-03-31)
- Fixed a corner case for dumping response data to file
0.1.0 (2022-03-30)
- Created
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
nftscan-api-0.1.1.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for nftscan_api-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1765e870ef796b633da1dc34f2d72df89d3faa09d7717a03bea2926421396564 |
|
MD5 | 68fe48442f8bb7177d3303f5bb01d9e2 |
|
BLAKE2b-256 | 42969d4ce8453b32387e872f183597d76455e5d74f9408003b8115d1d47e60fe |