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()
# Brave New World
creator_address = "6WII6ES4H6UW7G7T7RJX63CUNPKJEPEGQ3PTYVVU3JHJ652W34GCJV5OVY"
for asset in algorand.get_collection_assets(collection_id=creator_address):
print(asset)
Cardano
import os
from fetchfox.blockchains import Cardano
gomaestroorg_api_key = os.getenv("GOMAESTROORG_API_KEY")
cardano = Cardano(
gomaestroorg_api_key=gomaestroorg_api_key,
)
# Gutenberg Bible
policy_id = "477cec772adb1466b301fb8161f505aa66ed1ee8d69d3e7984256a43"
for asset in cardano.get_collection_assets(collection_id=policy_id):
print(asset)
API Keys
EVM (Coinbase, Ethereum and Polygon)
import os
from fetchfox.blockchains import Coinbase, Ethereum, Polygon
moralisio_api_key = os.getenv("MORALIS_API_KEY")
openseaio_api_key = os.getenv("OPENSEA_API_KEY")
# Coinbase
coinbase = Coinbase(
moralisio_api_key=moralisio_api_key,
openseaio_api_key=openseaio_api_key,
)
# Artificial Intelligence for Dummies
contract_address = "0x8c1f34bcb76449cebf042cfe8293cd8265ae6802"
for asset in coinbase.get_collection_assets(collection_id=contract_address):
print(asset)
# Ethereum
ethereum = Ethereum(
moralisio_api_key=moralisio_api_key,
openseaio_api_key=openseaio_api_key,
)
# Alice in Wonderland
contract_address = "0x919da7fef646226f88f70305201de392ff365059"
for asset in ethereum.get_collection_assets(collection_id=contract_address):
print(asset)
# Polygon
polygon = Polygon(
moralisio_api_key=moralisio_api_key,
openseaio_api_key=openseaio_api_key,
)
# Art of War
contract_address = "0xb56010e0500e4f163758881603b8083996ae47ec"
for asset in polygon.get_collection_assets(collection_id=contract_address):
print(asset)
API Keys
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-6.0.1.tar.gz
(96.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bookio_fetchfox-6.0.1.tar.gz.
File metadata
- Download URL: bookio_fetchfox-6.0.1.tar.gz
- Upload date:
- Size: 96.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.23 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5b1e948846b5d51e0bf88f17235bbe8aca2d709c2456c721a76d63967cd8160
|
|
| MD5 |
51d6ef279793a1f836cd6aac3c7139eb
|
|
| BLAKE2b-256 |
55b4ab2fe5e8a943b0565a5cdba73e1e6485d0a54a10d90a1f06c9a54d53c079
|
File details
Details for the file bookio_fetchfox-6.0.1-py3-none-any.whl.
File metadata
- Download URL: bookio_fetchfox-6.0.1-py3-none-any.whl
- Upload date:
- Size: 134.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.23 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4076c4686b5e51f3d52d86deb27d4ba8168c73a4a704ff9823db4ade6a275af
|
|
| MD5 |
0ae0087bdf7fce48d93717c39b3f0dc0
|
|
| BLAKE2b-256 |
23ca4ec2388995db7407a4e79e0ad4ca4d54a9b18795101929b99cef2be8c2f8
|