Contracts
/api/contracts provides endpoints for gathering, outputting, and importing Smart Contract data to and from the database.
List all available contracts. Uses pagination and filtering.
Query parameters
pageNumnumberOptional
itemsPerPagenumberOptional
titlestringOptional
userstringOptional
blockchainstringOptional
contractAddressstringOptional
diamondstringOptional
creationDatestringOptional
transactionHashstringOptional
lastSyncedBlockstringOptional
externalbooleanOptional
singleMetadatabooleanOptional
metadataURIstringOptional
importedBystringOptional
blockSyncbooleanOptional
blockViewbooleanOptional
Responses
200
OK
get
GET /api/contracts HTTP/1.1
Host: api.rair.market
Accept: */*
200
OK
No content
Update display and sync flags of contract. Super admin access required.
Path parameters
idstringRequired
Body
blockSyncbooleanRequiredExample:
true
blockViewbooleanRequiredExample:
true
Responses
200
OK
404
Contract not found
patch
PATCH /api/contracts/{id} HTTP/1.1
Host: api.rair.market
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"blockSync": true,
"blockView": true
}
No content
Was this helpful?