Objects

Get a list of all packages on the Sui Network. Packages are smart contracts on Sui that execute custom logic.

get/v1/packages

Request

  • Base URL
    https://api.blockberry.one/sui
  • URL
    https://api.blockberry.one/sui/v1/packages
  • Auth
    API key in header x-api-key

Query parameters

pageinteger required

Queried API page.

sizeinteger required

Number of queried entries.

orderBy'ASC' | 'DESC' required

Sorting method: from the lowest element to the highest (ASC) or from the highest element to the lowest (DESC).

sortBy'AGE' | 'MODULES' | 'TRANSACTIONS' required

Select sorting parameter.

isVerifiedSourcesboolean

Flag showing that the source code of the queried package is verified

Flag showing that the queried package is verified, and the publisher provided its source code.

Response

OK

totalPagesinteger
totalElementsinteger
sizeinteger
numberinteger
numberOfElementsinteger
firstboolean
lastboolean
emptyboolean

Changes

    • warning

      deleted the query request parameter isListedInDirectory

    • warning

      deleted the query request parameter searchStr

    • info

      added the new optional query request parameter isVerifiedSources

    • info

      for the query request parameter size, the max was increased from 50.00 to 100.00