Skip to main content

GetContractReferences

Lists contract references registered by an account, optionally filtered by contract name.

Request

GET /nxt?requestType=getContractReferences

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
accountstringAccount ID or SHAMWARI addressYes
contractNamestringContract name filterNo
includeContractbooleanInclude contract file dataNo
firstIndexintPagination startNo
lastIndexintPagination endNo

Response

{
"contractReferences": [
{
"contractName": "mycontract",
"contract": "abc123...",
"isValidator": true,
"timestamp": 1700000000
}
],
"account": "1234567890123456789",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"errorCode": 0,
"errorDescription": ""
}

Example

curl "http://localhost:22024/nxt?requestType=getContractReferences&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"