POSTGet NFT Contracts by Account

Data APIhttps://web3.nodit.io/v1/ethereum/mainnet/nft/getNftContractsByAccount

Retrieves NFTs held by a specific account, grouped by contract. Results include the quantity of NFTs per contract and contract metadata.

Path Parameters
chainstring (enum)required

Parameter to specify the target chain for the query.

networkstring (enum)required

Parameter to specify the network of the target chain. Supported networks may vary depending on the chain.

Request Body
accountAddressstringrequired

Parameter specifying the account address to query. Can be entered as a 40-character hexadecimal string starting with 0x.

contractAddressesstring[]

Parameter specifying an array of contract addresses to query. Contract addresses can be entered as 40-character hexadecimal strings starting with 0x.

pageinteger

The page parameter specifies the data page to query. It accepts values up to 100; for pages exceeding 100, use the cursor pagination method.

The page and cursor parameters cannot be used together. If both page and cursor are empty, cursor pagination is used.

rppinteger

rpp stands for results per page and specifies the page size. You can specify a number greater than 0 and up to 100.

cursorstring

The cursor parameter supports pagination and data navigation between pages. Provide the cursor value from the previous page in the next request to load the next page of data.

The page and cursor parameters cannot be used together. If both page and cursor are empty, cursor pagination is used.

withCountboolean

Parameter specifying whether to include the count field in the response. The count field indicates the total number of requested data items. When set to true, the count field is included and response speed may be slower.

Responses
pageinteger

Field representing the page number specified in the page parameter. This field is only included in the response when a value greater than 0 is specified for the page parameter.

rppinteger

Field representing the number of results per page specified in the rpp parameter.

cursorstring

A field for cursor pagination. This value must be provided in the next request to load the next page of data.

countinteger

Field representing the total count of requested data. This field is only included in the response when true is set for the withCount parameter.

totalBalancestringrequired

Returns the sum of all balance quantities for the contract.

[Note] The quantity calculation method may vary depending on the contract type. For ERC721, it equals uniqueBalance; for ERC1155, it returns the sum of all quantities.

(Example) ERC721: Returns 3 if holding #100, #200, #300 ERC1155: Returns 600 if holding 100 of #1, 200 each of #200 and #300

uniqueBalancestringrequired

Returns the number of distinct token IDs among the NFTs held by the contract.

[Note] The quantity calculation method may vary depending on the contract type. For ERC721, it equals totalBalance; for ERC1155, it returns the number of unique token IDs.

(Example) ERC721: Returns 3 if holding #100, #200, #300 ERC1155: Returns 3 if holding 100 of #1, 200 each of #200 and #300

contractobject
addressstringrequired

A field representing the contract address.

deployedTransactionHashstringrequired

A field representing the hash of the transaction in which the contract was deployed.

deployedAtstringrequired

A field representing the time when the contract was deployed. This field is provided in ISO 8601 date and time format.

deployerAddressstringrequired

A field representing the address that deployed the contract.

logoUrlstringrequired

A field representing the logo URL of the contract. This URL can be used to visually identify the contract.

[Note] Not all contracts have logo images available. If a contract has no logo, this field is provided as null.

typestringrequired

A field representing the type of the contract. Contract types are denoted by standard specification names (e.g., ERC721, ERC1155, ERC20, ERC721, ERC1155, ERC20).

namestringrequired

A field representing the name of the contract. Returns an empty string if the contract does not follow the standard or if name was not provided at contract creation.

symbolstringrequired

A field representing the symbol of the contract. Returns an empty string if the contract does not follow the standard or if symbol was not provided at contract creation.

totalSupplystring

A field representing the total supply of the contract. This value indicates the total token supply and is provided as a decimal string. Included in the response only when the contract type is ERC20.

decimalsinteger

A field representing the decimal places of the contract. Included in the response only when the contract type is ERC20 or ERC1155.

X-API-KEY
RequestCU150
cURL
curl -X POST "https://web3.nodit.io/v1/ethereum/mainnet/nft/getNftContractsByAccount" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "accountAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
  "page": 1,
  "rpp": 10
}'
Response
Example · 200
{
  "page": 0,
  "rpp": 0,
  "cursor": "string",
  "count": 0,
  "items": [
    {
      "totalBalance": "string",
      "uniqueBalance": "string",
      "contract": {
        "address": "string",
        "deployedTransactionHash": "string",
        "deployedAt": "string",
        "deployerAddress": "string",
        "logoUrl": "string",
        "type": "string",
        "name": "string",
        "symbol": "string",
        "totalSupply": "string",
        "decimals": 0
      }
    }
  ]
}