Relations Service

Relationship network AIP services provided by official

You can choose to use relationship network API service provided by 5Degrees, to integrate the social network to your DApp easily and quickly.

following list

GET https://openapi.5degrees.io/following

Query which address's followings list and Profile NFT info

Query Parameters

NameTypeDescription

address*

String

Account

chainId

number

Network ID of chain

pageNum*

number

PageNum of pages

{
    "result": 0,
    "message": "success",
    "data": {
        "pageNum": "1",
        "pageSize": 100,
        "list": [
            {
                "address": "",
                "chainId": 56,
                "info": "",
                "timestamp": 0
            }
        ]
    }
}

followers list

GET https://openapi.5degrees.io/followers

Query which address's followers list and Profile NFT info

Query Parameters

NameTypeDescription

address*

String

Account

chainId

number

Network ID of chain

pageNum*

number

PageNum of pages

{
    "result": 0,
    "message": "success",
    "data": {
        "pageNum": "1",
        "pageSize": 100,
        "list": [
            {
                "address": "",
                "chainId": 56,
                "info": "",
                "timestamp": 0
            }
        ]
    }
}

Returns entities information as below:

Parameter NameTypeDescription

address

string

account

chainId

number

Network ID

info

string

Profile NFT

timestamp

number

Timestamp of user's ProfileNFT modified, in seconds.

Last updated