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
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or SHAMWARI address | Yes |
contractName | string | Contract name filter | No |
includeContract | boolean | Include contract file data | No |
firstIndex | int | Pagination start | No |
lastIndex | int | Pagination end | No |
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"