Retrieve Account Collections

Changed on

Returns all NFT collections held by an account.

get/sui/nft/accountCollection

Request

  • Base URL
    https://api.blockvision.org/v2
  • URL
    https://api.blockvision.org/v2/sui/nft/accountCollection
  • Auth
    API key in header x-api-key

Query parameters

ownerstring required

string - a 32 byte address with '0x' as prefix. The address to search for the collections.

pageIndexinteger

integer - the index of the page to retrieve. The first page is typically indexed as 1, and subsequent pages are numbered incrementally.

pageSizeinteger

integer - the number of records showing on each page. 20 by default and up to 50.

Response

200

codeinteger
messagestring

Example response

{
  "code": 200,
  "message": "Success",
  "result": {
    "data": [
      {
        "objectType": "0x69ff80e24a30ed8da6948741e1f042414368207d090b36e289ee3e2ea9050d70::my_hero::Hero",
        "package": "0x69ff80e24a30ed8da6948741e1f042414368207d090b36e289ee3e2ea9050d70",
        "name": "Sui Ticket",
        "imageURL": "https://sui-ticket.netlify.app//image/claim2.png",
        "quantity": 1
      }
    ],
    "nextPageIndex": 1,
    "total": 5
  }
}

Changes