Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nftscan-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nftscan-api

Python 3 wrapper for the NFTScan API

  • 0.1.4
  • Source
  • PyPI
  • Socket score

Maintainers
1

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))

If looking to also use pro api endpoints:

from nftscan import NftScanAPI
nftScanPro = NftScanProAPI(
    apiKey=<key>,
    apiSecret=<secret>)
test_wallet = "0x3becf83939f34311b6bee143197872d877501b11"
test_nft = "0xffe572aee5cded696f617125aa66b9746960f4ec"

print(nftScanPro.getGroupByNftContract(erc="erc721", user_address=test_wallet))
print(nftScanPro.getNftByContract(nft_address=test_nft))

Write json encoded response to a file:

nftScan.getGroupByNftContract(erc="erc721", user_address=test_wallet, export_file_name='out.txt'))

0.1.4 (2022-04-14)

Partial support for pro API Fixed missing dependencies and bad formatting for requirements.dev.stxt

0.1.3 (2022-03-31)

Moved source repo to main NFTScan github org - https://github.com/nftscan2022/nftscan-api-python-sdk

0.1.2 (2022-03-31)

Bugfixes:

  • page_index should start at 1
  • removed spurious "walletType" argument accidentally sent to "getAllNftByUserAddress" endpoint

0.1.1 (2022-03-31)

  • Fixed a corner case for dumping response data to file

0.1.0 (2022-03-30)

  • Created

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc