Relations Service

官方提供的关系网络API服务

您可以选择使用5Degrees官方提供的现有关系网络API服务,简单快速的接入关系网络到您的DApp产品中。

following list

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

查询某个地址的following的具体列表信息

Query Parameters

NameTypeDescription

address*

String

要查询的地址

chainId

number

对应网络ID

pageNum*

number

分页的页码

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

follower list

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

查询某个地址的followers具体列表

Query Parameters

NameTypeDescription

address*

String

要查询的地址

chainId

number

对应网络

pageNum*

number

分页的页码

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

返回的实体信息如下:

参数名类型描述

address

string

地址

chainId

number

网络ID

info

string

此地址对应的ProfileNFT信息

timestamp

number

用户最近更改NFT信息的时间戳,秒级

Last updated