Skip to main content

Web3 Data Made Simple. Powerful APIs for accessing human-readable blockchain data at scale: from blocks and transactions to NFTs and tokens.

Project description

Transpose Banner

Welcome to the Transpose Python SDK

Deployment Tests PyPI version Installations

A modern python wrapper for the Transpose API Suite.

Getting an API Key

To obtain a free Open Alpha Transpose API key, sign up on our website. API Keys are rate limited to 1 request per second and 100,000 requests per month. If you need higher rate limits for your project or business, don't hesitate to reach out on our Discord!

Join our Discord to ask technical questions, share what you're building, and chat with others in the community.

Installation

Python 3.8 or higher is recommended

To install the python SDK, you can run the following command:

python3 -m pip install -U transpose-data

Simple Demo

To show just how powerful our data is, let's get the last ENS domain that expired. All we need is one API call.

from transpose import Transpose

api = Transpose('transpose_api_key')

# get the most recently expired ENS domain
last_expired = api.ens.records_by_date(type='expiration', order='desc', limit=1)

This returns an ENS Record as a TransposeAPIResponse, which includes data which you wouldn't be able to easily get from the ENS protocol.

[
  {
    "ens_name":"game-master-dit-gm.eth",
    "ens_node":"9BFFC8C1EDE1E51E4BAE137FA37A81CC0379FC08123C4AA00A931D0D983956B7",
    "contract_address":"0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85",
    "token_id":75929000750162030430773866845127925090084516346841580577625168871716954805188,
    "seq_id":407909,
    "owner":"0x2aC92629c4E0E5e4868588f87DC4356606a590b6",
    "resolver":"0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41",
    "resolved_address":"0x2aC92629c4E0E5e4868588f87DC4356606a590b6",
    "registration_timestamp":"2022-01-01T05:00:36Z",
    "expiration_timestamp":"2049-12-31T23:58:12Z",
    "grace_period_ends":"2050-03-31T23:58:12Z",
    "premium_period_ends":"2050-04-21T23:58:12Z",
    "in_grace_period":false,
    "in_premium_period":false,
    "is_expired":false,
    "last_refreshed":"2022-06-01T09:51:23Z"
  }
]

Links

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

transpose_data-1.0.1.tar.gz (23.4 kB view details)

Uploaded Source

File details

Details for the file transpose_data-1.0.1.tar.gz.

File metadata

  • Download URL: transpose_data-1.0.1.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.5

File hashes

Hashes for transpose_data-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8a6fcb23092ceb177bc576c84d4c4b2c5b29a1f4c7dce5bb5ad9a2d46254c949
MD5 e333f8fede6a434d5270b8292526e2de
BLAKE2b-256 2f79d759964457bb8d84a0e0c991ee3fe23260026fb64ee739891bc7af35f160

See more details on using hashes here.

Provenance

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