⚙️

Transactions

The Transactions API returns information regarding the transactions performed by a given address. The information returned is similar to results returned from a blockchain explorer.
The first API will return the number of transactions an address have performed per chain.
get
https://query.nansen.ai/api/portfolio
/txns/count/{address}
Returns the number of transactions an address performed on each chain
This is a multi-chain API call that will return the number of transactions an address have performed on each chain.
Parameters
Path
api_key*
The user's API key
Responses
200: OK
This API will return transaction level details for all transactions performed by an address.
get
https://query.nansen.ai/api/portfolio
/txns/history/{chain}/{address}
Returns transaction detail for all transactions performed by an address
Returns detailed information similar to a blockchain explorer.
Requires a chain and address parameter. Note that the schema returned per chain will be slightly different.
Parameters
Path
api_key*
The user's API key
Responses
200: OK
This API takes the raw transaction level details and normalize the transactions into human readable format.
get
https://query.nansen.ai/api/portfolio
/txns/history_readable/{chain}/{address}
Returns human readable transaction details for an address
Returns detailed information similar to a blockchain explorer.
Requires a chain and address parameter. Note that the schema returned per chain will be slightly different.
Parameters
Path
api_key*
The user's API key
isRefresh*
True to get the latest information. False to fetch from cache.
page*
Page parameter to return paginated results, starting at 1
Responses
200: OK
Please note for Readable Transaction History Endpoint, isRefresh and page parameters are required.

Supported Blockchains:

The following blockchains are supported for the above endpoints:
Supported Chains
Supported Chains
Ethereum
Harmony
BSC
Boba
Polygon
Cronos
Arbitrum
Aurora
Optimism
Moonbeam
Avalanche
Moonriver
Ronin
OKC
Fantom
DFK
Metis
Dogechain
Last modified 2mo ago