Authentication

The entire Transpose API suite can be accessed with any API key. If you're API key is unable to access a certain endpoint or API, please let us know.

To authenticate, simply include the case-insensitive X-API-KEY request header with your API key as the value. It's that easy!

Postman

To use your API key in Postman, select "Headers" and insert X-API-KEY as the "Key" and your API key as the "Value" as follows:

cURL

To use your API key in the command line, use the -H flag in a cURL request as follows:

curl \
> -H 'X-API-KEY: x3cXibyAoi3bj73SFgTQr6f8ceVvhP0f3xftXHs2' \
> -R 'https://api.transpose.io/v0/block/accounts-by-address?account_addresses=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2'

Python

To use your API key in a Python program, use the requests package as follows:

import requests

url = 'https://api.transpose.io/v0/block/accounts-by-address?account_addresses=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2'

headers = {
  'X-API-KEY': 'x3cXibyAoi3bj73SFgTQr6f8ceVvhP0f3xftXHs2'
}

response = requests.get(url, headers=headers)
print(response.json())