Filter Contracts

This service returns contracts with pagination

Filter Contracts

GET {{server-url}}/contracts/filter

It returns list of contracts with pagination

Query Parameters

Name
Type
Description

page

Number

Represents page number. Default 0

id

Number

Represents contract's identifier.

orderDirection

String

Represents order direction. It can be ASC or DESC. Default DESC

size

Number

Represents content size. Default 10

address

String

Represents contract's deployed address

artifactName

String

Represents contract's name

type

String

Represents contract's type, it can be ERC721, ERC1155 or MARKETPLACE

Headers

Name
Type
Description

Authorization*

String

UUID formatted access token

PROJECT-ID*

String

UUID formatted project's identifier

{
    // Response
}

Example Response Body

{
    "data": {
        "content": [
            {
                "id": 539,
                "address": "0x1ac7a0A23648CB31Ff2117369b0Ab42331D06120",
                "artifactName": "QafMarketplace",
                "type": "MARKETPLACE",
                "projectId": "b2e5ab50-f3d5-43ed-8761-eeba5913a72c"
            },
            {
                "id": 536,
                "address": "0xd39077cfB4FBa3f373045AEF798E41f10c59e88c",
                "artifactName": "Qaf1155",
                "type": "ERC1155",
                "projectId": "b2e5ab50-f3d5-43ed-8761-eeba5913a72c"
            },
            {
                "id": 533,
                "address": "0xe93cc426001eA2b5972Bd36F6b9744E9B4885b16",
                "artifactName": "Qaf721",
                "type": "ERC721",
                "projectId": "b2e5ab50-f3d5-43ed-8761-eeba5913a72c"
            }
        ],
        "pageable": {
            "sort": {
                "unsorted": false,
                "sorted": true,
                "empty": false
            },
            "pageNumber": 0,
            "pageSize": 10,
            "offset": 0,
            "paged": true,
            "unpaged": false
        },
        "totalPages": 1,
        "totalElements": 3,
        "last": true,
        "numberOfElements": 3,
        "number": 0,
        "sort": {
            "unsorted": false,
            "sorted": true,
            "empty": false
        },
        "first": true,
        "size": 10,
        "empty": false
    },
    "message": null,
    "code": 0,
    "error": false
}

Response Fields

Key
Type
Description

id

Number

Represents contract's identifier.

address

String

Represents contract's address

artifactName

String

Represents contract's name

type

String

Represents contract's type, it can be ERC721, ERC1155 or MARKETPLACE

projectId

String

UUID formatted project identifier

Last updated