DownloadContractFile
Downloads a contract file from the Shamwari Network by transaction full hash. Returns the raw file bytes with appropriate content type.
Request
GET /nxt?requestType=downloadContractFile
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
transactionFullHash | string | Transaction full hash | Yes |
retrieve | boolean | Retrieve pruned data (default false) | No |
Response
Returns the raw file bytes as an attachment with Content-Disposition header.
Example
curl -o contract.wasm "http://localhost:22024/nxt?requestType=downloadContractFile&transactionFullHash=abc123..."