Get file contents
Last updated
Last updated
A query to get the contents of a file. Queries do not change the state of the file or require network consensus. The information is returned from a single node processing the query.
Query Signing Requirements
The client operator private key is required to sign the query request
Query Fees
Please see the transaction and query fees table for the base transaction fee
Please use the Hedera fee estimator to estimate your query fee cost
Constructor | Description |
---|---|
Method | Type | Description |
---|---|---|
Method | Type | Description |
---|---|---|
new FileContentsQuery()
Initializes a FileContentsQuery object
setFileId(<fileId>)
FileId
The ID of the file to get contents for (x.z.y)
getFileId()
FileId
The ID of the file to get contents for (x.z.y)