Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key

Get NFT trades by wallet

GEThttps://deep-index.moralis.io/api/v2.2/wallets/:address/nfts/trades

Get trades of NFTs for a given wallet.

PATH PARAMS
addressstringrequired
The owner wallet address
QUERY PARAMS
chainstring
The chain to query
from_blocknumber

The minimum block number from which to get the transfers

  • Provide the param 'from_block' or 'from_date'
  • If 'from_date' and 'from_block' are provided, 'from_block' will be used.
to_blockstring
The block number to get the trades from
from_datestring

The start date from which to get the transfers (format in seconds or datestring accepted by momentjs)

  • Provide the param 'from_block' or 'from_date'
  • If 'from_date' and 'from_block' are provided, 'from_block' will be used.
to_datestring

The end date from which to get the transfers (format in seconds or datestring accepted by momentjs)

  • Provide the param 'to_block' or 'to_date'
  • If 'to_date' and 'to_block' are provided, 'to_block' will be used.
cursorstring
The cursor returned in the previous response (used for getting the next page).
limitnumber
The desired page size of the result.
nft_metadataboolean
Should NFT metadata be included in the result?
Responses
200Returns a paginated collection of NFT transactions
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request GET \
--url 'https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/nfts/trades?chain=eth&limit=25&nft_metadata=true' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
Response Example
{
"page": 2,
"page_size": 100,
"cursor": "string",
"result": [
{
"transaction_hash": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e",
"transaction_index": "string",
"token_ids": [
"15"
],
"seller_address": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e",
"buyer_address": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e",
"token_address": "0x4ad3785ec7eed7589fa86538244a4530f962434f",
"marketplace_address": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e",
"price_token_address": "0x60e4d786628fea6478f785a6d7e704777c86a7c6",
"price": "1000000000000000",
"block_timestamp": "2021-06-04T16:00:15",
"block_number": "13680123",
"block_hash": "0x4a7c916ca4a970358b9df90051008f729685ff05e9724a9dddba32630c37cb96"
}
]
}