Skip to main content

Collection of API services to fetch information from several blockchains.

Project description

book.io / fetchfox

Collection of API services to fetch information from several blockchains.

Supported Blockchains

Algorand

import os
from fetchfox.blockchains import Algorand

algorand = Algorand(
    nftexplorerapp_api_key=os.getenv("NFTEXPLORER_API_KEY"),
)

# Brave New World
creator_address = "6WII6ES4H6UW7G7T7RJX63CUNPKJEPEGQ3PTYVVU3JHJ652W34GCJV5OVY"

for asset in algorand.get_assets(creator_address):
    print(asset)

Services

Cardano

import os
from fetchfox.blockchains import Cardano

cardano = Cardano(
    blockfrostio_project_id=os.getenv("BLOCKFROST_PROJECT_ID"),
)

# Gutenberg Bible
policy_id = "477cec772adb1466b301fb8161f505aa66ed1ee8d69d3e7984256a43"

for asset in cardano.get_collection_assets(policy_id):
    print(asset)

Services

EVM (Ethereum and Polygon)

import os
from fetchfox.blockchains import Ethereum, Polygon

ethereum = Ethereum(
    geckodriver_path=os.getenv("GECKODRIVER_PATH"),
    moralisio_api_key=os.getenv("MORALIS_API_KEY"),
    openseaio_api_key=os.getenv("OPENSEA_API_KEY"),
)

polygon = Polygon(
    geckodriver_path=os.getenv("GECKODRIVER_PATH"),
    moralisio_api_key=os.getenv("MORALIS_API_KEY"),
    openseaio_api_key=os.getenv("OPENSEA_API_KEY"),
)


# Alice in Wonderland
contract_address = "0x919da7fef646226f88f70305201de392ff365059"

for asset in ethereum.get_assets(contract_address):
    print(asset)

# Art of War
contract_address = "0xb56010e0500e4f163758881603b8083996ae47ec"

for asset in polygon.get_assets(contract_address):
    print(asset)

Services

¹ nftexplorer.app services require an api key.

² blockfrost.io services require a project id.

³ moralis.io services require an api key.

opensea.io some services also require an api key.


fetch, the fox

fetch, the fox

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

bookio_fetchfox-2.4.6.tar.gz (88.3 kB view hashes)

Uploaded Source

Built Distribution

bookio_fetchfox-2.4.6-py3-none-any.whl (108.6 kB view hashes)

Uploaded Python 3

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