Skip to main content

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

NameTypeDescriptionRequired
transactionFullHashstringTransaction full hashYes
retrievebooleanRetrieve 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..."