Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit b7e00db

Browse files
authored
Merge pull request #153 from ankg/main
Add withMetadata and title to getContractsForOwner
2 parents 878fdcd + f5000f9 commit b7e00db

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

nft/nfts.yaml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,7 @@ paths:
988988
- $ref: '#/components/schemas/owner'
989989
- $ref: '#/components/schemas/pageKey'
990990
- $ref: '#/components/schemas/pageSize'
991+
- $ref: '#/components/schemas/withMetadata'
991992
- $ref: '#/components/schemas/includeFilters'
992993
- $ref: '#/components/schemas/excludeFilters'
993994
- $ref: '#/components/schemas/orderBy'
@@ -1014,6 +1015,11 @@ paths:
10141015
totalCount:
10151016
type: string
10161017
description: 'String - Total number of NFT contracts held by the given address.'
1018+
examples:
1019+
withoutMetadata:
1020+
$ref: '#/components/schemas/withoutMetadataGetContractsForOwner_response'
1021+
withMetadata:
1022+
$ref: '#/components/schemas/withMetadataGetContractsForOwner_response'
10171023
operationId: getContractsForOwner
10181024
'/{apiKey}/reportSpam':
10191025
get:
@@ -1355,6 +1361,9 @@ components:
13551361
name:
13561362
description: 'The name of the contract, i.e. "Bored Ape Yacht Club".'
13571363
type: string
1364+
title:
1365+
description: 'The title of the token held by the owner i.e. "Something #22".'
1366+
type: string
13581367
symbol:
13591368
description: 'The symbol of the contract, i.e. BAYC.'
13601369
type: string
@@ -1642,6 +1651,72 @@ components:
16421651
"totalCount": 6,
16431652
"blockHash": "0xf9a2a4e15116680e22b160c734529f62d89d54cde0759daf5135672fad0ecebc"
16441653
}
1654+
withoutMetadataGetContractsForOwner_response:
1655+
summary: 'Response (withMetadata = false)'
1656+
value: >
1657+
{
1658+
"contracts": [
1659+
{
1660+
"address": "0x000386e3f7559d9b6a2f5c46b4ad1a9587d59dc3",
1661+
"totalBalance": 912,
1662+
"numDistinctTokensOwned": 80,
1663+
"isSpam": true,
1664+
"tokenId": "0x0000000000000000000000000000000000000000000000000000000000000001"
1665+
},
1666+
{
1667+
"address": "0x0015f391949f25c3211063104ad4afc99210f85c",
1668+
"totalBalance": 17,
1669+
"numDistinctTokensOwned": 6,
1670+
"isSpam": true,
1671+
"tokenId": "0x0000000000000000000000000000000000000000000000000000000000000002"
1672+
},
1673+
{
1674+
"address": "0x005b92d71a934dbe48e985b6469881cf4b0308fc",
1675+
"totalBalance": 1,
1676+
"numDistinctTokensOwned": 1,
1677+
"isSpam": true,
1678+
"tokenId": "0x0000000000000000000000000000000000000000000000000000000000000003"
1679+
}
1680+
],
1681+
"totalCount": 2120,
1682+
"pageKey": "20ef9df5-0d81-42e5-b741-140f595a407b"
1683+
}
1684+
withMetadataGetContractsForOwner_response:
1685+
summary: 'Response (withMetadata = true)'
1686+
value: >
1687+
{
1688+
"contracts": [
1689+
{
1690+
"address": "0x000386e3f7559d9b6a2f5c46b4ad1a9587d59dc3",
1691+
"totalBalance": 912,
1692+
"numDistinctTokensOwned": 80,
1693+
"isSpam": true,
1694+
"tokenId": "0x0000000000000000000000000000000000000000000000000000000000000001",
1695+
"name": "Bored Ape Nike Club",
1696+
"title": "",
1697+
"symbol": "BANC",
1698+
"tokenType": "ERC721",
1699+
"contractDeployer": "0x51d7d428041e23ef51422e110dfeff906e821cfe",
1700+
"deployedBlockNumber": 14276343,
1701+
"opensea": {
1702+
"collectionName": "BoredApeNikeClub",
1703+
"safelistRequestStatus": "not_requested",
1704+
"imageUrl": "https://i.seadn.io/gae/yJ9DgXqjRwgdCkrQmHj7krCbixM8fPVAyYJWJ5NHXap1L0c3QL5MPvrNT0QDINIStGOK857lOvab8MpNQS9X4pkHPktmhVmN82qoVw?w=500&auto=format",
1705+
"description": "COUNTDOWN OVER. MINTING LIVE.\n\n[Mint on the website.](https://nikemetaverse.xyz)\n",
1706+
"externalUrl": "https://nikemetaverse.xyz",
1707+
"lastIngestedAt": "2023-02-06T14:36:57.000Z"
1708+
},
1709+
"media": [
1710+
{
1711+
"raw": "",
1712+
"gateway": ""
1713+
}
1714+
]
1715+
}
1716+
],
1717+
"totalCount": 2120,
1718+
"pageKey": "03949322-9b2c-4fdd-aab6-1369e29fa5b2"
1719+
}
16451720
withContractFiltering_response:
16461721
summary: 'Response (with contract filtering)'
16471722
value: >

0 commit comments

Comments
 (0)