bitburner-src/markdown/bitburner.codingcontract.getdata.md

34 lines
950 B
Markdown
Raw Normal View History

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