GET /api/v1/catalog/contracts
Parameters
| Name | Location | Details |
|---|---|---|
packageId | query / optional | string
|
category | query / optional | string
|
chainId | query / optional | integer
|
deployedOnly | query / optional | boolean |
executableOnly | query / optional | boolean |
offset | query / optional | integer |
limit | query / optional | integer |
Response 200
| Field | Type | Details | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
protocolVersion | integer required | Values: | ||||||||||||||||||||||||||||||||||||||||||||||||
provenance | object required | |||||||||||||||||||||||||||||||||||||||||||||||||
packages | array required | |||||||||||||||||||||||||||||||||||||||||||||||||
exclusions | array required | Fields
| ||||||||||||||||||||||||||||||||||||||||||||||||
items | array required | Fields
| ||||||||||||||||||||||||||||||||||||||||||||||||
total | integer required | |||||||||||||||||||||||||||||||||||||||||||||||||
nextOffset | one of required |
JSON schema
{
"type": "object",
"properties": {
"protocolVersion": {
"$ref": "#/components/schemas/ProtocolVersion"
},
"provenance": {
"type": "object",
"additionalProperties": true
},
"packages": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"exclusions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"path",
"reason"
],
"additionalProperties": false
}
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"packageId": {
"type": "string"
},
"category": {
"type": "string"
},
"executable": {
"type": "boolean"
},
"methodCounts": {
"type": "object",
"properties": {
"read": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"write": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"read",
"write"
],
"additionalProperties": false
},
"chains": {
"type": "array",
"items": {
"type": "object",
"properties": {
"chainId": {
"$ref": "#/components/schemas/ChainId"
},
"status": {
"type": "string",
"enum": [
"published",
"missing"
]
},
"addresses": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Address"
}
},
"instances": {
"type": "array",
"items": {
"type": "object",
"properties": {
"address": {
"$ref": "#/components/schemas/Address"
},
"retired": {
"type": "boolean",
"description": "Historical artifact retained for decoding; not a default destination."
},
"generation": {
"type": "string",
"enum": [
"current",
"previous",
"v1"
],
"description": "Router/buyback release generation, independent of chain or project migration."
}
},
"required": [
"address",
"retired"
],
"additionalProperties": false
}
}
},
"required": [
"chainId",
"status",
"addresses",
"instances"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"name",
"packageId",
"category",
"executable",
"methodCounts",
"chains"
],
"additionalProperties": false
}
},
"total": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"nextOffset": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"protocolVersion",
"provenance",
"packages",
"exclusions",
"items",
"total",
"nextOffset"
],
"additionalProperties": false
}