GetAccountContractFiles
Lists all contract files uploaded by a specific account.
Request
GET /nxt?requestType=getAccountContractFiles
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or SHAMWARI address | Yes |
firstIndex | int | Pagination start | No |
lastIndex | int | Pagination end | No |
includeData | boolean | Include file data (default false) | No |
Response
{
"files": [
{
"transactionFullHash": "abc123...",
"name": "mycontract",
"description": "Smart contract",
"type": "text/plain",
"group": "default",
"isText": true,
"filename": "contract.wasm",
"timestamp": 1700000000
}
],
"errorCode": 0,
"errorDescription": ""
}
Example
curl "http://localhost:22024/nxt?requestType=getAccountContractFiles&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"