Schemas

Single Schema

GET / index / schemas / { id };

Retrieve the data of a schema by providing a schema ID.

Query Parameters:

Key
Value
Type

id

onchain_evm_80001_0x1

string

* Optional parameter.

Response:

{
  "success": true,
  "statusCode": 200,
  "data": {
    "id": "onchain_evm_80001_0x1",
    "mode": "onchain",
    "chainType": "evm",
    "chainId": "80001",
    "schemaId": "0x1",
    "transactionHash": "0x97e69df2e65e97001da22953a4376233d792c50810cf3bff0fff1a14e7374b60",
    "name": "xxx",
    "description": "",
    "revocable": true,
    "maxValidFor": "0",
    "resolver": "0x0000000000000000000000000000000000000000",
    "registerTimestamp": "1705387959",
    "registrant": "0x9854E76134e6D729A633CED51042fF653f04f4C5",
    "data": [
      {
        "name": "name",
        "type": "string"
      }
    ]
  },
  "message": "ok"
}

Schema Info

Get the data of a schema by providing the schema ID.

Query Parameters:

id

onchain_evm_80001_0x2

string

* Optional parameters.

Response:

Filtered Schemas

Query for a list of schemas using one or more filtering parameters. Results can be paginated with customizable page sizes.

Query Parameters:

Key
Value
Type

id*

onchain_evm_7001_0x7

string

page*

1

number

registrant*

0xDfc4FbbDd9C47c7976fEBb14B1D37C7f85FE299D

string

size*

100

number

mode*

onchain

"onchain"/"offchain"

* Optional parameter.

Response:

Top 10 Schemas

Get the current top 10 schemas from the attestation backend.

Query Parameters:

None

Response:

Get the top trending schemas from the attestation backend.

Query Parameters:

None

Response:

Latest 10 Schemas

Get the most recently created 10 schemas from the attestation backend.

Query Parameters:

None

Response:

Paged Schemas

Query schemas by providing a keyword. Results may be paged if the query returns many results.

Query Parameters:

Key
Value
Type

page*

1

number

keyword*

0x1

string

* Optional parameter.

Response:

Address Schemas

Get a list of schemas that a given address has created.

Query Parameters:

Key
Value
Type

address

0x059e6B8008d34aC26581fD3ED8378AA93c7941EE

string

* Optional parameter.

Response:

Last updated

Was this helpful?