NFTs by contract retriever

[apis/nftport/v0/NFTs by contract retriever]


Returns all NFTs for a given contract address, using the NFTPort API. Supports Ethereum & Polygon. Retrieve contract NFTs: https://docs.nftport.xyz/docs/nftport/?search=retrieve-contract-nf-ts


Keywords: web3, blockchain, crypto, nft, contract, ethereum, polygon,

Input ports

  • query:

    {
      "contract_address": string,
      optional "include": ("default" or "metadata" or "all"),
      optional "page_number": number,
      optional "page_size": number,
      optional "refresh_metadata": boolean
    }

    Receives search query. Rerefence: https://docs.nftport.xyz/docs/nftport/?search=retrieve-contract-nf-ts#Request

  • params:

    {"api_key": string, "chain": ("ethereum" or "polygon" or "rinkeby")}

    Rerefence: https://docs.nftport.xyz/docs/nftport/?search=retrieve-contract-nf-ts#Request Default chain value: "ethereum"

Output ports

  • data:

    {
      "response": "OK",
      "nft": {
        "chain": ("ethereum" or "polygon" or "rinkeby"),
        "contract_address": string,
        "token_id": string,
        "metadata_url": string,
        "metadata": {string: any},
        "file_information": {"height": number, "width": number, "file_size": number},
        "file_url": string,
        "animation_url": string,
        "cached_file_url": string,
        "cached_animation_url": string,
        "mint_date": string,
        "updated_date": string
      },
      "owner": string,
      "contract": {"name": string, "symbol": string, "type": ("ERC721" or "ERC1155")},
      optional "status": string,
      optional "status_message": string
    }

    Sends the query response. Reference: https://docs.nftport.xyz/docs/nftport/?search=retrieve-contract-nf-ts#Responses

  • response:

    {"status": number, "headers": {string: any}, "body": string}

    Sends the original response.

  • error: {"error": string, "details": any}

    Sends the error, if any

Last updated