GetContractFile
Retrieves contract file metadata by transaction full hash, with optional file data.
Request
GET /nxt?requestType=getContractFile
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
transactionFullHash | string | Transaction full hash | Yes |
includeData | boolean | Include file data (default true) | No |
retrieve | boolean | Retrieve pruned data (default false) | No |
Response
{
"transactionFullHash": "abc123...",
"name": "mycontract",
"description": "Smart contract",
"keywords": "contract, wasm",
"type": "text/plain",
"group": "default",
"isText": true,
"filename": "contract.wasm",
"timestamp": 1700000000,
"errorCode": 0,
"errorDescription": ""
}
Example
curl "http://localhost:22024/nxt?requestType=getContractFile&transactionFullHash=abc123..."