2021-10-30 12:34:14 -04:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home ](./index.md ) > [bitburner ](./bitburner.md ) > [CodingContract ](./bitburner.codingcontract.md ) > [getData ](./bitburner.codingcontract.getdata.md )
## CodingContract.getData() method
2021-11-03 00:27:21 -04:00
Get the input data.
2021-10-30 12:34:14 -04:00
< b > Signature:< / b >
```typescript
2022-08-17 08:50:05 -04:00
getData(filename: string, host?: string): CodingContractData;
2021-10-30 12:34:14 -04:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2021-11-22 11:36:13 -05:00
| filename | string | Filename of the contract. |
2021-11-03 00:27:21 -04:00
| host | string | Host of the server containing the contract. Optional. Defaults to current server if not provided. |
2021-10-30 12:34:14 -04:00
< b > Returns:< / b >
2022-08-17 08:50:05 -04:00
[CodingContractData ](./bitburner.codingcontractdata.md )
2021-10-30 12:34:14 -04:00
2022-09-23 15:03:38 -04:00
The specified contract’ s data, data type depends on contract type.
2021-10-30 12:34:14 -04:00
## Remarks
2021-10-30 15:46:34 -04:00
RAM cost: 5 GB
2021-10-30 12:34:14 -04:00
2022-09-23 15:03:38 -04:00
Get the data associated with the specific Coding Contract. Note that this is not the same as the contract’ s description. This is just the data that the contract wants you to act on in order to solve the contract.
2021-11-03 00:27:21 -04:00